#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk #DEB_UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p') DEB_INSTALL_DOCS_ALL := INSTALL README LICENSE TODO # # License is used by nsis installers, so don't compress it. # DEB_COMPRESS_EXCLUDE := LICENSE DEB_DH_ALWAYS_EXCLUDE := .svn w32builddir = build/minx-shared w64builddir = build/minx-64-shared # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930492 w32pcdir = /usr/i686-w64-mingw32/lib/pkgconfig w64pcdir = /usr/x86_64-w64-mingw32/lib/pkgconfig INSTROOTDIR=$(shell /bin/pwd)/debian/tmp # do not strip any mingw library. # call 'strip' on a mingw lib*.a file causes the ranlib information to # be discarded rendering the libraries useless. #DEB_DH_STRIP_ARGS := -Xw64-mingw32 #%: # dh $@ # do not strip anything. # call 'strip' on a mingw lib*.a file causes the ranlib information to # be discarded rendering the libraries useless. #override_dh_strip: #override_dh_shlibdeps: #export DEB_CFLAGS_MAINT_SET = -O2 -Wall #export DEB_CXXFLAGS_MAINT_SET = -O2 -Wall #export DEB_LDFLAGS_MAINT_SET = build-indep: common-build-indep install-indep: common-install-indep INSTALL_PROGRAM = install common-build-indep:: rm -rf debian/tmp mkdir -p debian/tmp/usr/i686-w64-mingw32/bin mkdir -p debian/tmp/usr/i686-w64-mingw32/include mkdir -p debian/tmp/usr/i686-w64-mingw32/lib mkdir -p debian/tmp/usr/x86_64-w64-mingw32/bin mkdir -p debian/tmp/usr/x86_64-w64-mingw32/include mkdir -p debian/tmp/usr/x86_64-w64-mingw32/lib PKG_CONFIG_LIBDIR=$(w32pcdir) $(MAKE) -C $(w32builddir) COPT="-O2" install-devel DESTDIR=$(INSTROOTDIR) arch="i686-w64-mingw32" prefix="/usr/i686-w64-mingw32" EXTRA_INSTALL_RULES="install-po install-nsis" PKG_CONFIG_LIBDIR=$(w64pcdir) $(MAKE) -C $(w64builddir) COPT="-O2" install-devel DESTDIR=$(INSTROOTDIR) arch="x86_64-w64-mingw32" prefix="/usr/x86_64-w64-mingw32" EXTRA_INSTALL_RULES="install-po install-nsis" touch common-build-indep clean:: rm -f compile common-install-arch common-build-arch common-install-indep common-build-indep rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars cd $(w32builddir) && PKG_CONFIG_LIBDIR=$(w32pcdir) make arch="i686-w64-mingw32" dep=no distclean cd $(w64builddir) && PKG_CONFIG_LIBDIR=$(w64pcdir) make arch="x86_64-w64-mingw32" dep=no distclean