#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk package = mingw-w64-libboost target = x86_64-w64-mingw32 prefix = $(shell /bin/pwd)/debian/$(package)/usr docdir = debian/$(package)/usr/share/doc/$(package) builddir = build DESTDIR = $(shell /bin/pwd)/debian/$(package) package32 = mingw-w32-libboost target32 = i686-w64-mingw32 prefix32 = $(shell /bin/pwd)/debian/$(package32)/usr docdir32 = debian/$(package32)/usr/share/doc/$(package32) builddir32 = build32 DESTDIR32 = $(shell /bin/pwd)/debian/$(package32) 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-arch:: rm -rf $(builddir) mkdir $(builddir) echo "using gcc : : $(target)-g++ : $(target)-windres $(target)-ar ;" > $(builddir)/user-config.jam cd src/tools/build/v2/engine && ./build.sh cd src && NO_BZIP2=1 tools/build/v2/engine/bin.*/bjam --build-dir=../$(build) --ignore-site-config --user-config=../$(builddir)/user-config.jam target-os=windows variant=release link=shared threading=multi threadapi=win32 --layout=tagged --without-mpi --without-python --prefix=$(prefix)/$(target) --exec-prefix=$(prefix)/$(target)/bin --libdir=$(prefix)/$(target)/lib --includedir=$(prefix)/$(target)/include -sEXPAT_INCLUDE=$(prefix)/$(target)/include -sEXPAT_LIBPATH=$(prefix)/$(target)/lib stage install rm -rf $(builddir32) mkdir $(builddir32) echo "using gcc : : $(target32)-g++ : $(target32)-windres $(target32)-ar ;" > $(builddir32)/user-config.jam cd src/tools/build/v2/engine && ./build.sh cd src && NO_BZIP2=1 tools/build/v2/engine/bin.*/bjam --build-dir=../$(build32) --ignore-site-config --user-config=../$(builddir32)/user-config.jam target-os=windows variant=release link=shared threading=multi threadapi=win32 --layout=tagged --without-mpi --without-python --prefix=$(prefix32)/$(target32) --exec-prefix=$(prefix32)/$(target32)/bin --libdir=$(prefix32)/$(target32)/lib --includedir=$(prefix32)/$(target32)/include -sEXPAT_INCLUDE=$(prefix32)/$(target32)/include -sEXPAT_LIBPATH=$(prefix32)/$(target32)/lib stage install touch common-build-arch clean:: rm -f compile common-install-arch common-build-arch rm -rf *~ debian/$(package) debian/$(package32) debian/*~ debian/files* debian/substvars debian/compat rm -rf $(builddir) $(builddir32) # # info pages, locale data and static libraries may conflict with # already installed binutils packages. # common-install-arch:: mkdir $(prefix)/$(target)/lib/pkgconfig cp pkgconfig/libboost.pc $(prefix)/$(target)/lib/pkgconfig/ mkdir $(prefix32)/$(target32)/lib/pkgconfig cp pkgconfig32/libboost.pc $(prefix32)/$(target32)/lib/pkgconfig/ cd $(prefix)/$(target) && mkdir bin && mv ./lib/*.dll ./bin/ cd $(prefix32)/$(target32) && mkdir bin && mv ./lib/*.dll ./bin/ touch common-install-arch