#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs export DPKG_GENSYMBOLS_CHECK_LEVEL = 4 %: dh $@ override_dh_autoreconf: dh_autoreconf debian/autogen.sh DEB_CONFIGURE_EXTRA_FLAGS = \ --enable-pulse \ --enable-gstreamer \ --disable-gtk \ --enable-gtk-doc \ --with-builtin=dso # Linux-specific flags: ifeq ($(DEB_HOST_ARCH_OS), linux) DEB_CONFIGURE_EXTRA_FLAGS += --enable-alsa --disable-oss --enable-tdb else DEB_CONFIGURE_EXTRA_FLAGS += --disable-alsa --enable-oss --disable-tdb endif override_dh_auto_configure: dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS) override_dh_makeshlibs: dh_makeshlibs \ --exclude=usr/lib/$(DEB_HOST_MULTIARCH)/gtk-3.0/modules \ --exclude=usr/lib/$(DEB_HOST_MULTIARCH)/libcanberra-0.30 execute_before_dh_install: cp -a src/canberra-gtk-module.desktop \ debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk3-module.desktop mkdir -p debian/tmp/usr/lib/unity-settings-daemon-1.0/gtk-modules cp -a src/canberra-gtk-module.desktop \ debian/tmp/usr/lib/unity-settings-daemon-1.0/gtk-modules/canberra-gtk3-module.desktop find debian/tmp -name '*.la' -print -delete override_dh_missing: dh_missing --list-missing