Switch build-system to pd-lib-builder
IOhannes m zmölnig
4 years ago
5 | 5 |
IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>,
|
6 | 6 |
Build-Depends:
|
7 | 7 |
debhelper-compat (= 11),
|
8 | |
puredata-dev | puredata (>= 0.42.5-3),
|
|
8 |
pd-lib-builder,
|
9 | 9 |
Standards-Version: 4.1.3
|
10 | 10 |
Section: sound
|
11 | 11 |
Homepage: https://download.puredata.info/iemnet
|
9 | 9 |
%:
|
10 | 10 |
dh $@
|
11 | 11 |
|
12 | |
override_dh_auto_build:
|
13 | |
dh_auto_build -- \
|
14 | |
arch.flags="" \
|
15 | |
CPPFLAGS="$(CPPFLAGS)" \
|
16 | |
CFLAGS="$(CFLAGS)" \
|
17 | |
LDFLAGS="$(LDFLAGS) -Wl,-as-needed" \
|
18 | |
$(empty)
|
19 | |
|
20 | |
override_dh_auto_install:
|
21 | |
dh_auto_install -- prefix=/usr pkglibdir=$(pkglibdir)
|
|
12 |
override_dh_install:
|
|
13 |
dh_install
|
22 | 14 |
# fix permissions
|
23 | 15 |
find $(CURDIR)/debian/*/$(pkglibdir) -name "*.pd_linux" -exec \
|
24 | |
chmod 0664 {} +
|
|
16 |
chmod 0664 {} +
|
25 | 17 |
# remove license file so we can replace it with link to the Debian license file
|
26 | 18 |
rm -f -- $(CURDIR)/debian/*/$(pkglibdir)/*/LICENSE.txt
|
|
19 |
|
|
20 |
override_dh_auto_clean \
|
|
21 |
override_dh_auto_build \
|
|
22 |
override_dh_auto_test \
|
|
23 |
override_dh_auto_install:
|
|
24 |
$(patsubst override_%,%,$@) -- \
|
|
25 |
PDLIBBUILDER_DIR=/usr/share/pd-lib-builder/ \
|
|
26 |
prefix=/usr pkglibdir=$(pkglibdir) \
|
|
27 |
arch.flags="" \
|
|
28 |
CPPFLAGS="$(CPPFLAGS)" \
|
|
29 |
CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
|
|
30 |
LDFLAGS="$(LDFLAGS)" \
|
|
31 |
$(empty)
|
27 | 32 |
|
28 | 33 |
licensecheck:
|
29 | 34 |
licensecheck --deb-machine -r . \
|