File: rules

package info (click to toggle)
fontforge 1%3A20201107~dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 67,192 kB
  • sloc: ansic: 587,351; python: 4,932; perl: 315; sh: 266; cpp: 219; makefile: 55; xml: 11
file content (62 lines) | stat: -rwxr-xr-x 1,797 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1

export CONFIG_SHELL=/bin/bash
export DEB_BUILD_MAINT_OPTIONS := hardening=+all

# For cross-friendly CC variable
-include /usr/share/dpkg/buildtools.mk

# avoid libtool files in python3-fontforge or fonts in fontforge-common
export DH_OPTIONS = -X.la -X.ttf

# build with X11 into subdir, to ensure non-X11 build is not missed
export DH_OPTIONS += -O--builddirectory=build/x

# build with ninja (not make) per upstream recommendation
export DH_OPTIONS += -O--buildsystem=cmake+ninja

DEB_CONFIGURE_EXTRA_FLAGS = \
 -DENABLE_MAINTAINER_TOOLS=ON \
 -DENABLE_WRITE_PFM=ON \
 -DENABLE_TILE_PATH=ON \
 -DENABLE_DEBUG_RAW_POINTS=ON \
 -DENABLE_FONTFORGE_EXTRAS=ON

ifneq (_fontforge-doc,$(filter nodoc,$(DEB_BUILD_OPTIONS))_$(filter fontforge-doc,$(shell dh_listpackages)))
DEB_CONFIGURE_EXTRA_FLAGS += -DENABLE_DOCS=OFF
endif

override_dh_auto_configure:
	dh_auto_configure --builddirectory=build/nox -- \
		$(DEB_CONFIGURE_EXTRA_FLAGS) -DENABLE_GUI=OFF -DENABLE_DOCS=OFF
	dh_auto_configure -- \
		$(DEB_CONFIGURE_EXTRA_FLAGS)

execute_before_dh_auto_build:
	dh_auto_build --builddirectory=build/nox

override_dh_auto_install:
	dh_auto_install --builddirectory=build/nox --destdir=debian/tmp/nox
	dh_auto_install --destdir=debian/tmp/x

override_dh_install:
	dh_install --package=fontforge-nox --sourcedir=debian/tmp/nox
	dh_install --remaining-packages --sourcedir=debian/tmp/x

override_dh_installdocs:
	dh_installdocs --all -- README.md AUTHORS

override_dh_installman:
	dh_installman --sourcedir=debian/tmp/x

override_dh_missing-indep:
	dh_missing -i --list-missing

override_dh_strip:
	dh_strip --dbgsym-migration='fontforge-dbg (<< 1:20170731~dfsg-2~)'

# track symbols using pkgkde-symbolshelper
%:
	dh $@ --with pkgkde_symbolshelper