#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk srcname=openssl-0.9.8k package = mingw-w64-openssl target = x86_64-pc-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-pc-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-arch:: rm -rf $(builddir) tar xzf $(srcname).tar.gz && mv $(srcname) $(builddir) cd $(builddir) && patch -p0 < ../patches/openssl-0.9.8k-hide-global-mingw.patch cd $(builddir) && patch -p0 < ../patches/openssl-0.9.8k-pid-t-mingw.patch cd $(builddir) && patch -p0 < ../patches/openssl-0.9.8k-sha512-mingw64.patch cd $(builddir) && patch -p0 < ../patches/openssl-0.9.8k-mingw-w64-config.patch cd $(builddir) && ../scripts/build-x86_64-pc-mingw32.sh rm -rf $(builddir32) tar xzf $(srcname).tar.gz && mv $(srcname) $(builddir32) cd $(builddir32) && patch -p0 < ../patches/openssl-0.9.8k-hide-global-mingw.patch cd $(builddir32) && patch -p0 < ../patches/openssl-0.9.8k-pid-t-mingw.patch cd $(builddir32) && patch -p0 < ../patches/openssl-0.9.8k-mingw-w32-config.patch cd $(builddir32) && ../scripts/build-i686-pc-mingw32.sh 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) rm -rf $(builddir32) common-install-arch:: rm -rf debian/$(package) mkdir debian/$(package) cd $(builddir) && ../scripts/install-x86_64-pc-mingw32.sh $(DESTDIR)/usr rm -rf debian/$(package32) mkdir debian/$(package32) cd $(builddir32) && ../scripts/install-i686-pc-mingw32.sh $(DESTDIR32)/usr touch common-install-arch