#!/usr/bin/make -f # # $Id$ # # rules file for creating debian packages # DEB_UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p') DEB_DH_ALWAYS_EXCLUDE := .svn:debian-arch:debian-mingw package64 = fancyhttpd-mingw-8-w64 builddir64 = build/win64/release arch64=x86_64-w64-mingw32 # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930492 w64pcdir = /usr/x86_64-w64-mingw32/lib/pkgconfig #destdir=$(shell /bin/pwd)/debian/tmp PKGROOT=$(shell pwd)/debian #DEB_SHLIBDEPS_INCLUDE := DEB_INSTALL_DOCS_ALL := doc/LICENSE.txt doc/ReadMe.txt %: 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 common-build-indep:: cd $(builddir64) && PKG_CONFIG_LIBDIR=$(w64pcdir) $(MAKE) arch=$(arch64) touch common-build-indep clean:: rm -f common-install-indep common-build-indep cd $(builddir64) && PKG_CONFIG_LIBDIR=$(w64pcdir) $(MAKE) arch=$(arch64) clean #rm -rf debian/$(package64) #rm -rf *~ debian/*~ debian/files* debian/substvars debian/tmp rm -f common-build-indep rm -f common-install-indep common-install-indep:: echo "common-install-indep called" rm -rf debian/$(package64) cd $(builddir64) && PKG_CONFIG_LIBDIR=$(w64pcdir) $(MAKE) install DESTDIR=$(PKGROOT)/$(package64) arch=$(arch64) touch common-install-indep