File: rules

package info (click to toggle)
fontforge 1:20170731~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 67,252 kB
  • ctags: 42,582
  • sloc: ansic: 580,893; python: 5,476; sh: 3,081; makefile: 1,269; perl: 315; cpp: 176; ruby: 97; objc: 92; xml: 90; sed: 9
file content (79 lines) | stat: -rwxr-xr-x 2,592 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
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1

DEB_MAKE_FLAVORS = x nox
DEB_BUILDDIR = build
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

# (Re)create autotools
include /usr/share/cdbs/1/rules/autoreconf.mk
CDBS_BUILD_DEPENDS +=, gnulib, libltdl-dev, autoconf-archive
DEB_DH_AUTORECONF_ARGS += debian/autogen.sh
DEB_UPSTREAM_CRUFT_MOVE = m4/ax_check_compile_flag.m4 m4/ax_pthread.m4

stem = fontforge
major = 2
lib = lib$(stem)
libpkg =lib$(stem)$(major)
devpkg = lib$(stem)-dev

CDBS_BUILD_DEPENDS +=, autotools-dev, chrpath
CDBS_BUILD_DEPENDS +=, shared-mime-info, desktop-file-utils
CDBS_BUILD_DEPENDS +=, libreadline-dev, dh-python, python

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

dev-deps = cairo2 freetype6 gif jpeg pango1.0 png spiro tiff5
dev-deps += uninameslist xml2 xt glib2.0

CDBS_BUILD_DEPENDS +=, $(patsubst %,$(comma) lib%-dev,$(dev-deps))
CDBS_BUILD_DEPENDS +=, python, python-all-dev, uthash-dev
DEB_CONFIGURE_EXTRA_FLAGS = \
 --prefix=/usr \
 --libdir=\$${prefix}/lib \
 --mandir=\$${prefix}/share/man \
 --with-regular-link \
 --enable-devicetables \
 --enable-type3 \
 --with-freetype-src=$(CURDIR)/freetype \
 --with-freetype-bytecode

DEB_CONFIGURE_FLAGS_nox = --without-x --disable-pyextension

DEB_DH_INSTALL_SOURCEDIR = debian/tmp/x
binary-install/fontforge-nox:: DEB_DH_INSTALL_SOURCEDIR = debian/tmp/nox

binary-install/python-fontforge::
	find debian/python-fontforge -name "*.la" -delete
	dh_python2 -ppython-fontforge

binary-install/fontforge-common::
	find debian/fontforge-common/ -name "*.ttf" -delete

binary-fixup/python-fontforge::
	chmod -x \
		debian/python-fontforge/usr/share/fontforge/python/gdraw/*.py

CDBS_BUILD_DEPENDS +=, d-shlibs (>= 0.78~)
binary-post-install/$(libpkg) binary-post-install/$(devpkg):: debian/stamp-local-shlibs-$(lib)
debian/stamp-local-shlibs-$(lib): binary-install/$(libpkg) binary-install/$(devpkg)
	d-shlibmove --commit \
		--devunversioned \
		--exclude-la \
		--extralib debian/tmp/x/usr/lib/libgioftp.so \
		--extralib debian/tmp/x/usr/lib/libgunicode.so \
		--extralib debian/tmp/x/usr/lib/libgutils.so \
		--movedev "debian/tmp/x/usr/include/*" usr/include/ \
		--movedev "debian/tmp/x/usr/lib/pkgconfig/*.pc" usr/lib/pkgconfig \
		--override s/$(lib)$(major)-dev/$(lib)-dev/ \
		debian/tmp/x/usr/lib/$(lib).so
	touch $@
clean::
	rm -f debian/stamp-local-shlibs-$(lib)

# track symbols using pkgkde-symbolshelper
include /usr/share/pkg-kde-tools/makefiles/1/cdbs/symbolshelper.mk
CDBS_BUILD_DEPENDS +=, pkg-kde-tools