File: rules

package info (click to toggle)
jack-audio-connection-kit 1:0.125.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 3,368 kB
  • sloc: ansic: 40,493; cpp: 1,426; makefile: 678; python: 327; sh: 89
file content (44 lines) | stat: -rwxr-xr-x 1,247 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
41
42
43
44
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

ifneq (,$(filter stage1,$(DEB_BUILD_PROFILES)))
export DH_OPTIONS = -Njackd1-firewire
endif

DEB_CONFIGURE_EXTRA_FLAGS := \
	--enable-resize \
	--enable-timestamps \
	--disable-iec61883 \
	--with-oldtrans \
	--disable-ensure-mlock \
	--enable-static=yes \

ifneq (,$(filter doopt,$(DEB_BUILD_OPTIONS)))
# do optimization for the different architectures
  ifneq (,$(findstring i386,$(DEB_HOST_ARCH_CPU)))
    DEB_CONFIGURE_EXTRA_FLAGS += --enable-optimize --enable-sse --enable-mmx -enable-dynsimd
    OPTI_FLAGS := -D_REENTRANT -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -funroll-loops
    DEB_CXXFLAGS_MAINT_APPEND += $(OPTI_FLAGS)
    DEB_CFLAGS_MAINT_APPEND += $(OPTI_FLAGS)
  endif
endif

ifneq (,$(filter amd64,$(DEB_HOST_ARCH_CPU)))
DEB_CONFIGURE_EXTRA_FLAGS += --enable-dynsimd=yes
DEB_CFLAGS_MAINT_APPEND += -m3dnow -msse
endif

%:
	dh $@ --with bash-completion -Sautoconf

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)

# this target fetches the FAQ from the JACK homepage
.PHONY: faq
faq:
	dh_testdir
	w3m -dump http://jackaudio.org/faq > debian/FAQ.dltmp
	mv debian/FAQ.dltmp debian/FAQ
	dch -a "debian/FAQ: updated from webpage"