#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # Set debian version to check for Multi-arch export DEBVERSION:=$(shell cut -d. -f1 /etc/debian_version) %: dh $@ --with autoreconf # Don't add ldconfig to postinst/postrm for plug-ins. override_dh_makeshlibs: dh_makeshlibs -n # Override stripping binaries for the debug packages override_dh_strip: dh_strip -plcmaps-plugins-tracking-groupid \ --dbg-package=lcmaps-plugins-tracking-groupid-dbg # Override installdocs for debug packages, but still install standard # documentation for other packages override_dh_installdocs: dh_installdocs -plcmaps-plugins-tracking-groupid-dbg \ --link-doc=lcmaps-plugins-tracking-groupid dh_installdocs # Several overrides relating to Multi-Arch, for different releases ifeq ($(DEBVERSION),6) # squeeze # For squeezy remove multi-arch fields override_dh_gencontrol: $(info NOTE: Removing "Multi-Arch" field) dh_gencontrol -- -UMulti-Arch -UPre-Depends endif # if squeeze ifeq ($(DEBVERSION),7) # wheezy # For wheezy set multi-arch field to no, remove other multi-arch fields override_dh_gencontrol: $(info NOTE: Replacing "Multi-Arch: same" with "Multi-Arch: no") dh_gencontrol -- -DMulti-Arch=no -UPre-Depends # For wheezy override libdir override_dh_auto_configure: dh_auto_configure -- $(shell dpkg-buildflags --export=configure) --libdir=\$${prefix}/lib else # i.e. non-wheezy override_dh_auto_configure: dh_auto_configure -- $(shell dpkg-buildflags --export=configure) endif # if wheezy ifneq (,$(findstring $(DEBVERSION),6 7)) # Override install: needed for non-multiarch to remove the extra /*/ from # the install files. Do for squeeze and wheezy. Test for non-emptiness to handle # an empty DEBVERSION correctly override_dh_install: $(info NOTE: Patching .install files for non-multiarch platform) sed -i 's+lib/\*/+lib/+' debian/install dh_install endif