#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all # DEB_VERSION_EPOCH_UPSTREAM include /usr/share/dpkg/pkg-info.mk # DEB_HOST_* include /usr/share/dpkg/architecture.mk ifneq ($(DEB_HOST_ARCH_OS),linux) EXTRA_CONFIGURE_ARGS += -Denable-dbus=off endif %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ -DCMAKE_BUILD_TYPE=Release \ -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" \ -DFLUID_DAEMON_ENV_FILE=/etc/default/fluidsynth \ -DDEFAULT_SOUNDFONT=/usr/share/sounds/sf3/default-GM.sf3 \ -Denable-ladspa=on \ -Dosal=cpp11 -Denable-libinstpatch=0 \ $(EXTRA_CONFIGURE_ARGS) execute_after_dh_install: mv debian/fluidsynth/etc/default/fluidsynth.conf \ debian/fluidsynth/etc/default/fluidsynth sed -e "/SOUND_FONT\|OTHER_OPTS/s/^#//" \ -e "/OTHER_OPTS/s/'.*'/'-o synth.dynamic-sample-loading=1 -r 48000 -z 512'/" \ -i debian/fluidsynth/etc/default/fluidsynth mv debian/fluidsynth/usr/lib/tmpfiles.d/fluidsynth.tmpfiles \ debian/fluidsynth/usr/lib/tmpfiles.d/fluidsynth.conf execute_before_dh_makeshlibs: sed -e "s/#DEB_VERSION_EPOCH_UPSTREAM#/$(DEB_VERSION_EPOCH_UPSTREAM)/g" \ debian/libfluidsynth3.symbols.in > debian/libfluidsynth3.symbols override_dh_auto_test: