File: rules

package info (click to toggle)
freetype 2.13.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 25,384 kB
  • sloc: ansic: 153,848; cpp: 13,981; python: 5,909; sh: 4,486; xml: 1,439; makefile: 676; perl: 340; awk: 142; javascript: 82
file content (87 lines) | stat: -rwxr-xr-x 2,833 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/make -f
#
# This is free software; see the GNU General Public Licence
# version 2 or later for copying conditions.  There is NO warranty.

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Always abort if there are any problems with the symbols file.
DPKG_GENSYMBOLS_CHECK_LEVEL = 4
export DPKG_GENSYMBOLS_CHECK_LEVEL

dep_ver := $(shell echo $(DEB_VERSION_UPSTREAM) | cut -d '.' -f -2)

udeb_dir := debian/udeb
udeb_builddir := $(udeb_dir)/build
udeb_installdir := $(udeb_dir)/install
configure_flags := --without-harfbuzz
udeb_configure_flags := $(configure_flags) --without-brotli --without-bzip2 --without-librsvg
doc_dir := debian/freetype2-doc/usr/share/doc/libfreetype-dev

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

override_dh_auto_configure:
ifeq (,$(filter noudeb,$(DEB_BUILD_PROFILES)))
	dh_auto_configure --builddir=$(udeb_builddir) -- $(udeb_configure_flags)
endif
	dh_auto_configure -- $(configure_flags)

override_dh_auto_build:
ifeq (,$(filter noudeb,$(DEB_BUILD_PROFILES)))
	dh_auto_build --builddir=$(udeb_builddir)
endif
	dh_auto_build
ifeq (,$(filter pkg.freetype.nodemos,$(DEB_BUILD_PROFILES)))
	dh_auto_build --sourcedir=ft2demos -- TOP_DIR=$(CURDIR)
endif

override_dh_auto_install:
ifeq (,$(filter noudeb,$(DEB_BUILD_PROFILES)))
	dh_auto_install --builddir=$(udeb_builddir) --destdir=$(udeb_installdir)
endif
	dh_auto_install
ifeq (,$(filter pkg.freetype.nodemos,$(DEB_BUILD_PROFILES)))
	dh_auto_install --sourcedir=ft2demos -- TOP_DIR=$(CURDIR)
endif

override_dh_install:
ifeq (,$(filter noudeb,$(DEB_BUILD_PROFILES)))
	dh_install -p libfreetype6-udeb --sourcedir=$(udeb_installdir)
endif
	sed -i -e '/dependency_libs/s/'.*'//' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libfreetype.la
	dh_install --remaining-packages

override_dh_installdocs-indep:
	dh_installdocs -p freetype2-doc --doc-main-package=libfreetype-dev \
	    -Xreference/sitemap.xml.gz -Xreference/assets/images
	cp docs/CHANGES $(doc_dir)/NEWS
	cp src/pcf/README $(doc_dir)/pcf/
	sed -i 's@\.\./\.\./js@js@' \
	    $(doc_dir)/documentation.html \
	    $(doc_dir)/ft2faq.html \
	    $(doc_dir)/index.html \
	    $(doc_dir)/design/*.html \
	    $(doc_dir)/glyphs/*.html \
	    $(doc_dir)/tutorial/*.html
	sed -i '/gstatic/d' $(doc_dir)/reference/*.html
	sed -i '/googleapis/d' $(doc_dir)/reference/*.html
	sed -i '/assets\/javascripts/d' $(doc_dir)/reference/*.html

override_dh_installchangelogs:
	dh_installchangelogs -p freetype2-demos ft2demos/ChangeLog
	dh_installchangelogs --remaining-packages

override_dh_makeshlibs:
	dh_makeshlibs -V 'libfreetype6 (>= $(dep_ver))' --add-udeb=libfreetype6-udeb

override_dh_auto_clean:
	dh_auto_clean --sourcedir=ft2demos -- TOP_DIR=$(CURDIR)
	dh_auto_clean
	rm -rf $(udeb_dir) objs/.libs