debian swirl logo

Back to the packages list fontconfig

#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2002,2003 Colin Walters 

# 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/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/

Builds:

fontconfig-config
generic font configuration library - configuration
fontconfig
generic font configuration library - support binaries
fontconfig-udeb
generic font configuration library - minimal runtime
libfontconfig1-dbg
generic font configuration library - debugging symbols
libfontconfig1-dev
generic font configuration library - development
libfontconfig1
generic font configuration library - runtime