#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk prefix=/usr package = mingw-w64-pkg-config target = x86_64-pc-mingw32 script = $(target)-pkg-config docdir = debian/$(package)/usr/share/doc/$(package) DESTDIR = $(shell /bin/pwd)/debian/$(package) package32 = mingw-w32-pkg-config target32 = i686-pc-mingw32 script32 = $(target32)-pkg-config docdir32 = debian/$(package32)/usr/share/doc/$(package32) DESTDIR32 = $(shell /bin/pwd)/debian/$(package32) DEB_INSTALL_DOCS_ALL := src/README 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 clean:: rm -f compile common-install-arch rm -rf *~ debian/$(package) debian/$(package32) debian/*~ debian/files* debian/substvars debian/compat # # info pages, locale data and static libraries may conflict with # already installed binutils packages. # common-install-arch:: rm -rf debian/$(package) mkdir -p debian/$(package)/usr/bin mkdir -p debian/$(package)/usr/$(target)/bin install -m 755 src/$(script) debian/$(package)/usr/$(target)/bin/pkg-config cd debian/$(package)/usr/bin && ln -s /usr/$(target)/bin/pkg-config $(script) rm -rf debian/$(package32) mkdir -p debian/$(package32)/usr/bin mkdir -p debian/$(package32)/usr/$(target32)/bin install -m 755 src/$(script32) debian/$(package32)/usr/$(target32)/bin/pkg-config cd debian/$(package32)/usr/bin && ln -s /usr/$(target32)/bin/pkg-config $(script32) touch common-install-arch