File: rules

package info (click to toggle)
drumgizmo 0.9.19-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,512 kB
  • sloc: cpp: 44,248; sh: 4,347; makefile: 1,108; ansic: 658
file content (38 lines) | stat: -rwxr-xr-x 861 bytes parent folder | download | duplicates (3)
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

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Enable SSE only on amd64, since its part of the base architecture:
FLAGS=
CONFFLAGS=
ifeq ($(DEB_HOST_ARCH_CPU),$(filter $(DEB_HOST_ARCH_CPU),amd64))
	CONFFLAGS = --enable-sse=2
else
	CONFFLAGS = --enable-sse=no
endif
FLAGS += -ffast-math
CFLAGS += $(FLAGS)
CXXFLAGS += $(FLAGS)

%:
	dh $@

override_dh_auto_configure:
	# change --libdir to install lv2's .so where they correspond
	dh_auto_configure -- \
		--enable-lv2=yes \
		--enable-cli=yes \
		--enable-resampler \
		--with-test=yes \
		--libdir=/usr/lib/ \
		--enable-largefile \
		--disable-silent-rules \
		$(CONFFLAGS)

override_dh_auto_install:
	dh_auto_install
	# remove french manpages in the wrong place
	find debian/drumgizmo/usr/share/man -name '*fr.1*' -delete