File: rules

package info (click to toggle)
jackd2 1.9.19~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 6,552 kB
  • sloc: cpp: 49,692; ansic: 30,437; python: 12,471; sh: 270; makefile: 28
file content (39 lines) | stat: -rwxr-xr-x 996 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
39
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildtools.mk

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
else
NUMJOBS = 1
endif

CONFIGURE_OPTIONS = $(if $(filter linux,$(DEB_HOST_ARCH_OS)),--alsa --dbus)
CONFIGURE_OPTIONS += $(if $(filter amd64 i386 powerpc,$(DEB_HOST_ARCH)),--firewire)

%:
	dh $@

override_dh_auto_configure:
	python3 ./waf configure \
		--prefix=/usr --classic \
		--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
		$(CONFIGURE_OPTIONS) \
		CC='$(CC)' CXX='$(CXX)' PKGCONFIG='$(PKG_CONFIG)'

override_dh_auto_build:
	python3 ./waf -v build --jobs=$(NUMJOBS)

override_dh_auto_install:
	python3 ./waf -v install --destdir=debian/tmp

override_dh_auto_clean:
	test -s ./waf && python3 ./waf -v distclean || true
	find . -name "*.pyc" -delete

override_dh_makeshlibs:
	dh_makeshlibs -Xinprocess -Xjack_alsa -Xjack_dummy

override_dh_python3:
	dh_python3 -pjackd2