#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk prefix=/usr package = mingw-w64-zlib docdir = debian/$(package)/usr/share/doc/$(package) builddir = build/mingw-w64 DESTDIR = $(shell /bin/pwd)/debian/$(package) package32 = mingw-w32-zlib docdir32 = debian/$(package32)/usr/share/doc/$(package32) builddir32 = build/mingw-w32 DESTDIR32 = $(shell /bin/pwd)/debian/$(package32) DEB_INSTALL_DOCS_ALL := src/README 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:: cd $(builddir) && make all cd $(builddir32) && make all touch 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 cd $(builddir) && make clean cd $(builddir32) && make clean # # info pages, locale data and static libraries may conflict with # already installed binutils packages. # common-install-indep:: rm -rf debian/$(package) mkdir debian/$(package) cd $(builddir) && make DESTDIR=$(DESTDIR) install rm -rf debian/$(package32) mkdir debian/$(package32) cd $(builddir32) && make DESTDIR=$(DESTDIR32) install mkdir -p debian/$(package)/usr/x86_64-w64-mingw32/lib/pkgconfig sed -e 's/__VERSION__/$(DEB_UPSTREAM_VERSION)/' -e 's/__arch__/x86_64-w64-mingw32/' < pc/zlib.pc > debian/$(package)/usr/x86_64-w64-mingw32/lib/pkgconfig/zlib.pc mkdir -p debian/$(package32)/usr/i686-w64-mingw32/lib/pkgconfig sed -e 's/__VERSION__/$(DEB_UPSTREAM_VERSION)/' -e 's/__arch__/i686-w64-mingw32/' < pc/zlib.pc > debian/$(package32)/usr/i686-w64-mingw32/lib/pkgconfig/zlib.pc touch common-install-indep