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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --max-parallel=4
ifeq ($(DEB_BUILD_ARCH_OS),hurd)
OPTARGS:= --disable-alsa
endif
ifeq ($(DEB_BUILD_ARCH_OS),kfreebsd)
OPTARGS:= --disable-alsa
endif
override_dh_auto_configure:
./configure \
--datadir=/usr/share/residualvm \
--enable-release \
--enable-verbose-build \
--prefix=/usr $(OPTARGS)
FPATH=gui/themes/modern
override_dh_auto_build:
## replacing bundled fonts...
for F in $(FPATH)/Free*.ttf; do cp -v /usr/share/fonts/truetype/freefont/$$(basename $${F}) $(FPATH)/ ;done
## re-compressing "modern" theme...
cd $(FPATH) && zip -9 ../modern.zip -r .
## build executable(s)...
dh_auto_build
override_dh_auto_test:
-dh_auto_test
override_dh_installchangelogs:
dh_installchangelogs NEWS
override_dh_gencontrol:
dh_gencontrol -- -Vmy:Built-Using="$(foreach pkg,fonts-freefont-ttf,$(word 2,$(shell dpkg --status $(pkg) | grep Source)) (=$(word 2,$(shell dpkg --status $(pkg) | grep Version))),)"
|