#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk package = macosx-intel64-sdk package32 = macosx-intel32-sdk target = x86_64-apple-darwin10 target32 = i686-apple-darwin10 prefix = /usr/$(target) prefix32 = /usr/$(target32) docdir = debian/$(package)/usr/share/doc/$(package) DESTDIR = $(shell /bin/pwd)/debian/$(package) DESTDIR32 = $(shell /bin/pwd)/debian/$(package32) SDK=MacOSX10.6.sdk DEB_INSTALL_DOCS_ALL := DEB_SHLIBDEPS_INCLUDE := DEB_DH_ALWAYS_EXCLUDE := .svn # do not strip anything. # call 'strip' on a mingw lib*.a file causes the ranlib information to # be discarded rendering the libraries useless. DEB_DH_STRIP_ARGS := -Xlib INSTALL_PROGRAM = install common-build-indep:: clean:: rm -f compile common-install-indep common-build-indep rm -rf *~ debian/$(package) debian/$(package32) debian/*~ debian/files* debian/substvars debian/compat # # info pages, locale data and static libraries may conflict with # already installed binutils packages. # common-install-indep:: rm -rf debian/$(package) mkdir debian/$(package) mkdir debian/$(package)/usr mkdir debian/$(package)$(prefix) mkdir debian/$(package)/$(prefix)/SDKs cp -r $(SDK) debian/$(package)$(prefix)/SDKs (cd debian/$(package)$(prefix) && ln -s SDKs/$(SDK)/Developer) (cd debian/$(package)$(prefix) && ln -s SDKs/$(SDK)/Library) (cd debian/$(package)$(prefix) && ln -s SDKs/$(SDK)/System) (cd debian/$(package)$(prefix) && ln -s SDKs/$(SDK)/usr) (cd debian/$(package)$(prefix)/usr/local && ln -s ../lib/gcc/$(target)/4.2.1/include) rm -rf debian/$(package32) mkdir debian/$(package32) mkdir debian/$(package32)/usr mkdir debian/$(package32)$(prefix32) mkdir debian/$(package32)/$(prefix32)/SDKs cp -r $(SDK) debian/$(package32)$(prefix32)/SDKs (cd debian/$(package32)$(prefix32) && ln -s SDKs/$(SDK)/Developer) (cd debian/$(package32)$(prefix32) && ln -s SDKs/$(SDK)/Library) (cd debian/$(package32)$(prefix32) && ln -s SDKs/$(SDK)/System) (cd debian/$(package32)$(prefix32) && ln -s SDKs/$(SDK)/usr) (cd debian/$(package32)$(prefix32)/usr/local && ln -s ../lib/gcc/$(target32)/4.2.1/include) touch common-install-indep