File: rules

package info (click to toggle)
jsusfx 0.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,856 kB
  • sloc: ansic: 19,352; cpp: 9,312; php: 403; yacc: 338; python: 163; makefile: 124; lex: 113; sh: 6
file content (38 lines) | stat: -rwxr-xr-x 983 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
33
34
35
36
37
38
#!/usr/bin/make -f

#enable hardening
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
	^(\./\.git(/.*)?|\./debian(/.*)?|.*\.xcuserstate)$

ifeq (,$(findstring amd64,$(DEB_HOST_ARCH)))
	PORTABLE=ON
else
	PORTABLE=OFF
endif

%:
	dh $@ --sourcedirectory=pd

override_dh_auto_configure:
	ln -s /usr/share/cmake/pd.build pd/
	dh_auto_configure -- -DPORTABLE=$(PORTABLE)
override_dh_auto_clean:
	dh_auto_clean
	rm -rf pd/pd.build
	rm -f pd/*.pd_linux
	rm -rf src/CMakeFiles/ src/Makefile src/*.cmake
	find src/ "(" -name "*.o" -or -name "*.a" -or -name "*.asm" ")" -delete
override_dh_auto_install:
	# broken..., just use d/*.install instead
override_dh_fixperms:
	dh_fixperms
	find debian/*/usr/ -name '*.pd_linux' -exec \
		chmod 0644 {} +


licensecheck:
	licensecheck -i "$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)" --deb-machine -r . \
		> debian/copyright_newhints
	cmp debian/copyright_hints debian/copyright_newhints \
		&& rm debian/copyright_newhints