Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # Copyright © 2010 Hans-Christoph Steiner <[email protected]>
3 # Copyright © 2018 IOhannes m zmölnig <[email protected]>
4
5 #enable hardening
6 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
7
8 pkglibdir = /usr/lib/pd/extra
9
10 %:
11 dh $@
12
13 override_dh_auto_build:
14 dh_auto_build -- \
15 arch.flags="" \
16 CPPFLAGS="$(CPPFLAGS)" \
17 CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
18 LDFLAGS="$(LDFLAGS) -Wl,-as-needed" \
19 $(empty)
20
21 override_dh_auto_install:
22 dh_auto_install -- \
23 prefix=/usr pkglibdir=$(pkglibdir) \
24 STRIP="true" \
25 $(empty)
26 # fix permissions
27 find $(CURDIR)/debian/*/$(pkglibdir) -name "*.pd_linux" -exec \
28 chmod 0664 {} +
29 # remove license file so we can replace it with link to the Debian license file
30 rm -f -- $(CURDIR)/debian/*/$(pkglibdir)/*/LICENSE.txt
31
32 DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
33 debian/.*|examples/speaker\.gif
34 # licensecheck v1
35 .PHONY: licensecheck
36 licensecheck:
37 LANG=C.UTF-8 licensecheck \
38 -i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \
39 --check '.*' --recursive --deb-machine --lines 0 * \
40 > debian/copyright_newhints
41 cmp debian/copyright_hints debian/copyright_newhints \
42 && rm debian/copyright_newhints