File: rules

package info (click to toggle)
opus 1.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,860 kB
  • sloc: ansic: 592,652; sh: 4,541; asm: 723; makefile: 457; perl: 264; python: 77
file content (75 lines) | stat: -rwxr-xr-x 2,020 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/make -f
# © 2003-2018, Ron Lee
# © 2022-2023, IOhannes m zmölnig

#export DH_VERBOSE=1
export DH_OPTIONS


EXTRA_CONFIG_FLAGS = --enable-custom-modes

## We don't need to add this here either anymore, the upstream build system will
## also use -fstack-protector-strong where it is supported.
##
##ifneq (,$(filter-out alpha hppa arm, $(DEB_HOST_ARCH)))
##	HARD_CFLAGS += -fstack-protector --param ssp-buffer-size=4
##endif
#ifneq (,$(filter-out ia64 hppa avr32, $(DEB_HOST_ARCH)))
#	HARD_LDFLAGS += -Wl,-z,relro
#endif
#
## Keep dpkg-buildpackage the hell out of messing with our compile flags,
## we should trust upstream to know better than it what to use here.
## We explicitly re-add -g and -O2 here, since by explicitly overriding
## these variables, we otherwise disable autoconf adding them by default.
#CPPFLAGS = $(HARD_CPPFLAGS)
#CFLAGS   = $(HARD_CFLAGS) -g -O2
#CXXFLAGS = $(HARD_CFLAGS) -g -O2
#LDFLAGS  = $(HARD_LDFLAGS)
#
#
#ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
#	CFLAGS = -g -O0
#endif
#ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
#	INSTALL_PROGRAM += -s
#endif
#ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
#	BUILD_TARGET = check-opus
#else
#	BUILD_TARGET = opus
#endif


ifneq (,$(filter arm armel mips mipsel, $(DEB_HOST_ARCH)))
	EXTRA_CONFIG_FLAGS += --enable-fixed-point
endif

# DEEP_PLC FTBFS on armel
ifeq (,$(filter armel, $(DEB_HOST_ARCH)))
	EXTRA_CONFIG_FLAGS += --enable-deep-plc
	EXTRA_CONFIG_FLAGS += --enable-osce
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		$(EXTRA_CONFIG_FLAGS)

override_dh_strip:
	dh_strip --dbgsym-migration="libopus-dbg (<< 1.3.1-1~)"


DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
        debian/.*
# licensecheck v1
.PHONY: licensecheck
licensecheck:
	LANG=C.UTF-8 licensecheck \
		-i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \
		--check '.*' --recursive --deb-machine --lines 0 * \
		> debian/copyright_newhints
	cmp debian/copyright_hints debian/copyright_newhints \
		&& rm debian/copyright_newhints