File: rules

package info (click to toggle)
pd-ext13 0.17.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 392 kB
  • ctags: 638
  • sloc: ansic: 3,618; makefile: 251
file content (32 lines) | stat: -rwxr-xr-x 883 bytes parent folder | download
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
#!/usr/bin/make -f

LIBRARY_NAME = ext13
PACKAGE = pd-$(LIBRARY_NAME)
pkglibdir = /usr/lib/pd/extra

%:
	dh $@ --buildsystem=makefile

override_dh_auto_build:
	dh_auto_build -- \
		CFLAGS="-DPD -fPIC $(CFLAGS) $(CPPFLAGS) -I/usr/include/pd" \
                LDFLAGS="-Wl,--export-dynamic  -shared -fPIC $(LDFLAGS)"

override_dh_auto_install:
	dh_auto_install -- prefix=/usr pkglibdir=$(pkglibdir)
# replace license file with link to the Debian license file
	rm -f -- $(CURDIR)/debian/$(PACKAGE)/$(pkglibdir)/$(LIBRARY_NAME)/LICENSE.txt

override_dh_shlibdeps:
	find $(CURDIR)/debian/$(PACKAGE) -name "*.pd_linux" -exec \
		dpkg-shlibdeps \
			-T$(CURDIR)/debian/$(PACKAGE).substvars \
			{} +
override_dh_strip:
	dh_strip
	find $(CURDIR)/debian/$(PACKAGE) -name "*.pd_linux" -exec \
		strip \
			--remove-section=.comment \
			--remove-section=.note \
			--strip-unneeded \
			{} +