File: rules

package info (click to toggle)
freetype 2.9.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 20,504 kB
  • sloc: ansic: 144,107; python: 6,619; cpp: 4,286; sh: 3,731; xml: 1,132; makefile: 592; perl: 340; awk: 142; sed: 3
file content (47 lines) | stat: -rwxr-xr-x 1,501 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
38
39
40
41
42
43
44
45
46
47
#!/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/pkg-info.mk

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

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) | sed 's|\([0-9]\.[0-9]\).*|\1|')

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- --without-bzip2 --without-harfbuzz

override_dh_auto_build:
	sed -i '/^#[[:space:]]*define SIZEOF_LONG/s/[0-9]/__SIZEOF_LONG__/' builds/unix/ftconfig.h
	dh_auto_build
	dh_auto_build -D ft2demos -- TOP_DIR=$(CURDIR)

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp
	sed -i -e '/dependency_libs/s/'.*'//' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libfreetype.la

override_dh_install:
	dh_install -p freetype2-demos -XREADME
	dh_install --remaining-packages

override_dh_installdocs-indep:
	dh_installdocs -p freetype2-doc --doc-main-package=freetype2-doc \
	    -Xreference/README -Xjs/jquery-1.11.0.min.js
	cp docs/CHANGES debian/freetype2-doc/usr/share/doc/freetype2-doc/NEWS
	cp src/pcf/README debian/freetype2-doc/usr/share/doc/freetype2-doc/pcf/

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