#!/usr/bin/make -f # $Id$ DEB_UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p') DEB_SHLIBDEPS_INCLUDE := #debian/fancy3qt4/usr/lib/libfancy3qt4.so.1 DEB_DH_ALWAYS_EXCLUDE := .svn:debian-arch:debian-mingw package = mingw-8-w64-fancy3qt5 devpackage = mingw-8-w64-fancy3qt5-dev docdir = debian/tmp/usr/share/doc/$(package) builddir = build/minx64/release arch=x86_64-w64-mingw32 # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930492 w64pcdir = /usr/x86_64-w64-mingw32/lib/pkgconfig PKGROOT=$(shell pwd)/debian %: 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_LDFLAGS_MAINT_SET = #build-indep: common-build-indep #install-indep: common-install-indep INSTALL_PROGRAM = install override_dh_auto_build:: cd $(builddir) && PKG_CONFIG_LIBDIR=$(w64pcdir) $(MAKE) arch=$(arch) clean:: rm -rf debian/$(package) debian/$(devpackage) rm -rf *~ debian/*~ debian/files* debian/substvars debian/devhost.txt.gz debian/*.substvars and debian/*.debhelper.log $(MAKE) -C build/minx64/debug arch=$(arch) clean $(MAKE) -C build/minx64/release arch=$(arch) clean $(MAKE) -C build/unix/debug clean $(MAKE) -C build/unix/release clean override_dh_auto_install:: rm -rf debian/$(package) debian/$(devpackage) cd $(builddir) && PKG_CONFIG_LIBDIR=$(w64pcdir) $(MAKE) install-bin arch=$(arch) DESTDIR=$(PKGROOT)/$(package) cd $(builddir) && PKG_CONFIG_LIBDIR=$(w64pcdir) $(MAKE) install-dev arch=$(arch) DESTDIR=$(PKGROOT)/$(devpackage)