File: rules

package info (click to toggle)
scummvm 2.2.0%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 227,768 kB
  • sloc: cpp: 2,525,134; ansic: 144,108; asm: 28,422; sh: 9,109; python: 8,774; xml: 6,003; perl: 3,523; java: 1,547; makefile: 948; yacc: 720; lex: 437; javascript: 336; objc: 81; sed: 22; php: 1
file content (65 lines) | stat: -rwxr-xr-x 2,062 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# #827145:
# When building for i386 on an amd64 system/kernel, the host
# architecture is misdetected as x86_64, which causes USE_NASM to be
# unset and prevents the object files hq2x_i386.o and hq3x_i386.o from
# being built.
# This is fixed by passing the host architecture explicitely to
# configure.
include /usr/share/dpkg/architecture.mk

%:
	dh $@ --max-parallel=4

ifneq (,$(filter $(DEB_HOST_ARCH_OS),hurd kfreebsd))
OPTARGS:= --disable-alsa
endif

# Wintermute is disabled for licensing reasons
DISABLED_ENGINES := wintermute

# Ultima's tests fail on armhf, mips64el, s390x, etc.
ifneq (,$(filter $(DEB_HOST_ARCH),armhf mips64el s390x alpha hppa ia64 m68k powerpc ppc64 riscv64 sh4 sparc64))
DISABLED_ENGINES := $(DISABLED_ENGINES),ultima
endif

override_dh_auto_clean:
	##718164 "FTBFS: Makefile:87: *** You need to run ./configure before you can run make".
	[ -f config.mk ] || touch config.mk
	dh_auto_clean

override_dh_auto_configure:
	./configure \
            --host=$(DEB_HOST_GNU_TYPE) \
            --datadir=/usr/share/scummvm \
            --bindir=/usr/games \
            --disable-eventrecorder \
            --enable-release \
            --enable-verbose-build \
            --enable-opl2lpt \
            --prefix=/usr $(OPTARGS) \
	    --disable-engine=$(DISABLED_ENGINES)

override_dh_auto_build:
## replacing bundled fonts...
	for F in gui/themes/*/Free*.ttf; do cp -v /usr/share/fonts/truetype/freefont/$${F##*/} $${F%/*}; done
	for F in gui/themes/*/mplus*.ttf; do cp -v /usr/share/fonts/truetype/mplus/$${F##*/} $${F%/*}; done
## re-build themes
	cd gui/themes && python3 ./scummtheme.py makeall
## build executable(s)...
	dh_auto_build

override_dh_installchangelogs:
	dh_installchangelogs NEWS.md

override_dh_gencontrol:
	dh_gencontrol -- -Vmy:Built-Using="$(shell dpkg-query --show -f '$${source:Package} (=$${source:Version}),' fonts-freefont-ttf fonts-mplus)"

override_dh_dwz:
	-dh_dwz -v