File: rules

package info (click to toggle)
xvidcore 2:1.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,248 kB
  • sloc: ansic: 36,394; asm: 18,004; sh: 3,308; cpp: 2,161; pascal: 442; makefile: 290; python: 218; perl: 200
file content (27 lines) | stat: -rwxr-xr-x 883 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CFLAGS_MAINT_APPEND += $(shell dpkg-buildflags --get CPPFLAGS)
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,--no-undefined

export DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
export DEB_HOST_ARCH_OS  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

# Explicitely disable Altivec support on powerpc until we introduce flavours
ifeq ($(DEB_HOST_ARCH_CPU),powerpc)
	confflags += --disable-assembly
endif

# Explicitely disable yasm support on kfreebsd, it's broken on 64bit;
# see: http://www.freebsd.org/cgi/cvsweb.cgi/ports/multimedia/xvid/Makefile?rev=1.36
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
	confflags += --disable-assembly
endif

%:
	dh $@ --sourcedirectory=build/generic

override_dh_auto_configure:
	cd build/generic && autoconf
	dh_auto_configure -- $(confflags)