File: rules

package info (click to toggle)
libffado 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,616 kB
  • sloc: cpp: 77,154; python: 9,140; ansic: 2,951; sh: 1,429; xml: 855; makefile: 29
file content (37 lines) | stat: -rwxr-xr-x 868 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_CFLAGS_MAINT_APPEND=-fPIC

include /usr/share/dpkg/architecture.mk

FLAGS= \
			CUSTOM_ENV=True \
			PREFIX=/usr \
			DESTDIR=$(CURDIR)/debian/tmp \
			LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
			UDEVDIR=/usr/lib/udev/rules.d/ \
			SHAREDIR=/usr/share/libffado2/ \
			MANDIR=/usr/share/man/ \
			PYPKGDIR=/usr/share/ffado-mixer-qt4/ \
			PYTHON_INTERPRETER=/usr/bin/python3 \
			WILL_DEAL_WITH_XDG_MYSELF=1 \
			DETECT_USERSPACE_ENV=0 \
			ENABLE_OPTIMIZATION=no \
			DEBUG=0 \
			SERIALIZE_USE_EXPAT=1

%:
	dh $@

override_dh_auto_build:
	scons $(FLAGS) $(patsubst parallel=%,-j%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))

override_dh_auto_install:
	scons $(FLAGS) install

override_dh_auto_clean:
	scons $(FLAGS) --clean
	rm -rf cache
	rm -f .sconsign.dblite
	find . -name "*.pyc" -delete