#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk srcname=openssl-1.0.0e package = mingw-w64-openssl target = x86_64-w64-mingw32 prefix = /usr/$(target) docdir = debian/$(package)/usr/share/doc/$(package) builddir = build DESTDIR = $(shell /bin/pwd)/debian/$(package) package32 = mingw-w32-openssl target32 = i686-w64-mingw32 prefix32 = /usr/$(target32) docdir32 = debian/$(package32)/usr/share/doc/$(package32) builddir32 = build32 DESTDIR32 = $(shell /bin/pwd)/debian/$(package32) DEB_INSTALL_DOCS_ALL := build/README build/LICENSE 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:: rm -rf $(builddir) tar xzf $(srcname).tar.gz && mv $(srcname) $(builddir) cd $(builddir) && patch -p0 < ../patches/openssl-1.0.0e-mingw-w64-config.patch cd $(builddir) && ../scripts/build-x86_64-w64-mingw32.sh rm -rf $(builddir32) tar xzf $(srcname).tar.gz && mv $(srcname) $(builddir32) cd $(builddir32) && patch -p0 < ../patches/openssl-1.0.0e-mingw-w32-config.patch cd $(builddir32) && ../scripts/build-i686-w64-mingw32.sh 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 rm -rf $(builddir) rm -rf $(builddir32) common-install-indep:: rm -rf debian/$(package) mkdir debian/$(package) cd $(builddir) && ../scripts/install-x86_64-w64-mingw32.sh $(DESTDIR)/usr mkdir -p debian/$(package)/usr/$(target)/lib/pkgconfig cd pc; for file in *.pc; do sed -e 's/__VERSION__/$(DEB_UPSTREAM_VERSION)/' -e 's/__arch__/$(target)/' < $$file > ../debian/$(package)/usr/$(target)/lib/pkgconfig/$$file; done rm -rf debian/$(package32) mkdir debian/$(package32) cd $(builddir32) && ../scripts/install-i686-w64-mingw32.sh $(DESTDIR32)/usr mkdir -p debian/$(package32)/usr/$(target32)/lib/pkgconfig cd pc; for file in *.pc; do sed -e 's/__VERSION__/$(DEB_UPSTREAM_VERSION)/' -e 's/__arch__/$(target32)/' < $$file > ../debian/$(package32)/usr/$(target32)/lib/pkgconfig/$$file; done touch common-install-indep