#!/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) package32o = mingw-w32-i586-pkg-config target32o = i586-pc-mingw32 script32o = $(target32o)-pkg-config docdir32o = debian/$(package32o)/usr/share/doc/$(package32o) DESTDIR32o = $(shell /bin/pwd)/debian/$(package32o) 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/$(package32o) 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) rm -rf debian/$(package32o) mkdir -p debian/$(package32o)/usr/bin mkdir -p debian/$(package32o)/usr/$(target32o)/bin install -m 755 src/$(script32o) debian/$(package32o)/usr/$(target32o)/bin/pkg-config cd debian/$(package32o)/usr/bin && ln -s /usr/$(target32o)/bin/pkg-config $(script32o) touch common-install-arch