Section: libs
Priority: extra
Maintainer: Mark Wooding <mdw@distorted.org.uk>
-Build-Depends: debhelper (>= 8), python, libadns1-dev
+Build-Depends: debhelper (>= 9), python, libadns1-dev
Standards-Version: 3.1.1
Package: mlib2
Architecture: any
+Multi-Arch: same
Depends: ${shlibs:Depends}
+Pre-Depends: ${misc:Pre-Depends}
Conflicts: mlib2-adns
Description: A library of miscellaneous stuff
The mLib library provides various handy utilities, including
Package: mlib2-adns
Architecture: any
+Multi-Arch: same
Depends: ${shlibs:Depends}
Conflicts: mlib2
Description: A library of miscellaneous stuff
debian/tmp/usr/include
-debian/tmp/usr/lib/libmLib.a
-debian/tmp/usr/lib/libmLib.la
-debian/tmp/usr/lib/libmLib.so
-debian/tmp/usr/lib/pkgconfig
+debian/tmp/usr/lib/*/libmLib.a
+debian/tmp/usr/lib/*/libmLib.la
+debian/tmp/usr/lib/*/libmLib.so
+debian/tmp/usr/lib/*/pkgconfig
debian/tmp/usr/share/man/man3
## Override the build actions, and perform the relevant action for each
## flavour in turn.
-$(foreach t, $(DH_BUILD_OVERRIDES), override_dh_auto_$t):: \
- override_dh_auto_%:
+$(foreach t, $(DH_BUILD_OVERRIDES), dh-$t-hook):: %:; @:
+$(foreach t, $(DH_BUILD_OVERRIDES), override_dh_auto_$t): \
+ override_dh_auto_%: dh-%-hook
$(foreach f, $(FLAVOURS), $(call flavour-build-action,$*,$f))
## Configuration options.
DH_configure_OPTIONS_adns = --with-adns
## Cleaning options.
-override_dh_auto_clean::
+dh-clean-hook::
rm -rf debian/tmp-adns
## Installation options.
###--------------------------------------------------------------------------
### Additional tweaks.
+## Some of the install lists need to be generated. This is a little
+## annoying.
+GEN_INSTALL_PKGS = mlib2-adns
+GEN_INSTALL_FILES = $(foreach p, $(GEN_INSTALL_PKGS), debian/$p.install)
+$(GEN_INSTALL_FILES): debian/%.install: \
+ debian/%.install.in debian/changelog debian/rules
+ sed 's,@ARCH@,$a,g' $< >$@.new && mv $@.new $@
+dh-install-hook:: $(GEN_INSTALL_FILES); @:
+dh-clean-hook::
+ rm -f $(GEN_INSTALL_FILES)
+
## Override the shared-library dependency information to allow any flavour.
override_dh_makeshlibs:
dh_makeshlibs -V"mlib2 (>= $v) | mlib2-adns (>= $v)"