1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#!/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_installsystemduser:
dh_installsystemduser --no-enable
override_dh_auto_test:
|