File: rules

package info (click to toggle)
libtheora 1.2.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,544 kB
  • sloc: ansic: 35,055; sh: 4,550; asm: 3,039; makefile: 869; javascript: 279; perl: 252
file content (31 lines) | stat: -rwxr-xr-x 789 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Ensure texlive respects SOURCE_DATE_EPOCH
export FORCE_SOURCE_DATE=1

# Enable Telemetry debugging information (LP: #627854), see
# <URL: https://people.xiph.org/~xiphmont/demo/theora/demo2.html >
CONFIGURE_FLAGS = --enable-telemetry
ifneq (,$(filter $(DEB_HOST_ARCH), armel))
CONFIGURE_FLAGS += --disable-asm
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)

ifeq (,$(filter pkg.libtheora.nosdl,$(DEB_BUILD_PROFILES)))
execute_after_dh_install-arch:
	for i in debian/libtheora-bin/usr/bin/*; do \
		mv $$i debian/libtheora-bin/usr/bin/theora_`basename $$i`; \
	done
endif

override_dh_autoreconf:
	dh_autoreconf autoreconf -- -i -f -I m4