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 44 45 46 47 48 49 50 51 52 53 54
|
#!/usr/bin/make -f
# Copyright © 2025 IOhannes m zmölnig <umlaeute@debian.org>
#enable hardening
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
pd64ext:=$(shell /usr/share/puredata/debian/dekencpu $(DEB_HOST_ARCH))
FLAVORS = single double
builddir=debian/build/flavor-
CONFIG = \
-DVST2=ON -DVST2DIR=/usr/include \
-DVST3=ON -DVST3DIR=/usr/include/vst3sdk \
-DPD_INSTALLDIR=/usr/lib/pd/extra \
-DSC_INSTALLDIR=/usr/share/SuperCollider/Extensions/ \
-DSC_INCLUDEDIR=/usr/include/SuperCollider \
$(empty)
## per flavor configure options
CONFIG_single = -DSC=ON -DPD=ON
CONFIG_double = -DSC=OFF -DPD=ON -DPD_EXTENSION=linux-$(pd64ext)-64.so -DPD_FLOATSIZE=64
%:
dh $@
override_dh_auto_configure: $(patsubst %,configure_%,$(FLAVORS))
override_dh_auto_build-arch: $(patsubst %,build_%,$(FLAVORS))
override_dh_auto_install: $(patsubst %,install_%,$(FLAVORS))
mkdir -p $(CURDIR)/debian/tmp/usr/lib/SuperCollider/plugins
-mv $(CURDIR)/debian/tmp/usr/share/SuperCollider/Extensions/VSTPlugin/plugins $(CURDIR)/debian/tmp/usr/lib/SuperCollider/plugins/VSTPlugin
configure_%:
mkdir -p $(builddir)$*
dh_auto_configure --builddirectory=$(builddir)$* -- $(strip $(CONFIG) $(CONFIG_$*))
build_%:
dh_auto_build -a --builddirectory=$(builddir)$*
install_%:
dh_auto_install --builddirectory=$(builddir)$*
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
debian/.*|sc/HelpSource/Classes/[^/]*\.jpg|sc/HelpSource/Classes/noparams\.JPG|sc/icons/sc_cube\.ico
# licensecheck v1
.PHONY: licensecheck
licensecheck:
LANG=C.UTF-8 licensecheck \
-i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \
--check '.*' --recursive --deb-machine --lines 0 * \
> debian/copyright_newhints
cmp debian/copyright_hints debian/copyright_newhints \
&& rm debian/copyright_newhints
|