File: rules

package info (click to toggle)
fontconfig 2.11.0-6.7
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 14,344 kB
  • ctags: 2,449
  • sloc: ansic: 28,283; sh: 14,711; makefile: 1,017
file content (42 lines) | stat: -rwxr-xr-x 1,644 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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2002,2003 Colin Walters <walters@gnu.org>

# This ensures the fontconfig package is built after libfontconfig1
binary/fontconfig:: binary/libfontconfig1

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_MULTIARCH?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
WITHARCH=--with-arch=$(DEB_HOST_GNU_TYPE)
else
WITHARCH=
endif

DEB_CONFIGURE_EXTRA_FLAGS := $(WITHARCH) --enable-docs --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --with-add-fonts=/usr/X11R6/lib/X11/fonts,/usr/local/share/fonts

# tight versioning
DEB_DH_MAKESHLIBS_ARGS_libfontconfig1 := -V"libfontconfig1 (>= 2.11)" --add-udeb="fontconfig-udeb"

DEB_SHLIBDEPS_LIBRARY_fontconfig := libfontconfig1
DEB_SHLIBDEPS_INCLUDE_fontconfig := debian/libfontconfig1/usr/lib/$(DEB_HOST_MULTIARCH)

DEB_DH_STRIP_ARGS := --dbg-package=libfontconfig1-dbg

DEB_MAKE_ENVVARS := LC_ALL=C

clean::
	chmod +w debian/po/*.po
	debconf-updatepo
	rm -f config/Makedefs Makefile src/Makefile fontconfig/Makefile doc/Makefile doc/version.sgml
	rm -f fc-cache/Makefile fc-list/Makefile fontconfig-config fontconfig.pc config.h

# An empty file will do for enabling bitmaps
binary-post-install/fontconfig-config::
	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/