File: rules

package info (click to toggle)
fontconfig 2.15.0-2.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,040 kB
  • sloc: ansic: 33,007; sh: 5,570; makefile: 1,274; python: 706; sed: 16
file content (37 lines) | stat: -rwxr-xr-x 1,182 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4

ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
	BUILD_DOC := --disable-docs
else
	BUILD_DOC := --enable-docs
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-static $(BUILD_DOC) --with-add-fonts=/usr/local/share/fonts

override_dh_makeshlibs:
	dh_makeshlibs --add-udeb="fontconfig-udeb"

execute_after_dh_clean:
	chmod +w debian/po/*.po
	debconf-updatepo

execute_after_dh_install-arch:
	cd debian/fontconfig-config/usr/share/fontconfig/conf.avail && \
		mv 70-yes-bitmaps.conf 70-force-bitmaps.conf
	cp debian/70-yes-bitmaps.conf debian/fontconfig-config/usr/share/fontconfig/conf.avail/
	# Do not ship 10-hinting-slight.conf symlink by default, let debconf handle
	# that so the administrator can configure it. Still default to slight hinting.
	rm debian/fontconfig-config/etc/fonts/conf.d/10-hinting-slight.conf

# one of the tests makes sure that the uuid changes, so we have to run tests
# without SOURCE_DATE_EPOCH set
override_dh_auto_test:
	env --unset=SOURCE_DATE_EPOCH dh_auto_test