increase dvbapp PR.
[vuplus_openembedded] / recipes / fontconfig / fontconfig.inc
1 DESCRIPTION = "A library for configuring and customizing font access."
2 SECTION = "libs"
3 LICENSE = "BSD"
4 DEPENDS = "expat freetype freetype-native zlib"
5
6 PR = "r1"
7 # Work around past breakage in debian.bbclass
8 RPROVIDES_fontconfig-utils = "libfontconfig-utils"
9 RREPLACES_fontconfig-utils = "libfontconfig-utils"
10 RCONFLICTS_fontconfig-utils = "libfontconfig-utils"
11 DEBIAN_NOAUTONAME_fontconfig-utils = "1"
12
13 SRC_URI = "http://fontconfig.org/release/fontconfig-${PV}.tar.gz \
14            file://01fc-cache"
15
16 S = "${WORKDIR}/fontconfig-${PV}"
17
18 inherit autotools pkgconfig
19
20 export HASDOCBOOK="no"
21
22 EXTRA_OECONF = " --disable-docs --with-cache-dir=/var/lib/fontconfig"
23 EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname"
24
25 # The tarball has some of the patched files as read only, which
26 # patch doesn't like at all
27
28 fontconfig_do_unpack() {
29        chmod -R u+rw ${S}
30 }
31
32 python do_unpack () {
33        bb.build.exec_func('base_do_unpack', d)
34        bb.build.exec_func('fontconfig_do_unpack', d)
35 }
36
37 fontconfig-utils_do_install_prepend() {
38         install -m 0755 ${WORKDIR}/01fc-cache ${D}${sysconfdir}/update-fonts-common.d/
39 }
40
41 PACKAGES =+ "fontconfig-utils-dbg fontconfig-utils "
42 FILES_fontconfig-utils-dbg += "${bindir}/*.dbg"
43 FILES_fontconfig-utils = "${bindir}/*"