File: rules

package info (click to toggle)
synthv1 0.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,768 kB
  • ctags: 1,869
  • sloc: cpp: 12,257; makefile: 155; ansic: 66; xml: 48; sh: 1
file content (40 lines) | stat: -rwxr-xr-x 921 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
40
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

EXTRA_CONFIGURE_ARGS = \
 --enable-jack \
 --enable-jack-midi \
 --enable-jack-session \
 --enable-lv2

export QTDIR=/usr/share/qt5
export QT_SELECT=qt5

ifeq ($(DEB_HOST_ARCH_OS),linux)
EXTRA_CONFIGURE_ARGS += --enable-alsa-midi
else
EXTRA_CONFIGURE_ARGS += --disable-alsa-midi
endif

ifeq ($(DEB_HOST_ARCH_CPU),amd64)
EXTRA_CONFIGURE_ARGS += --enable-sse
endif

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- $(EXTRA_CONFIGURE_ARGS)

override_dh_auto_install:
	cp  $(CURDIR)/synthv1.1 $(CURDIR)/synthv1_jack.1
	dh_auto_install
	cp $(CURDIR)/debian/tmp/usr/share/mime/packages/synthv1.xml $(CURDIR)/debian/synthv1-common.sharedmimeinfo

override_dh_clean:
	dh_clean
	rm -f $(CURDIR)/debian/synthv1-common.sharedmimeinfo
	rm -f $(CURDIR)/synthv1_jack.1