diff options
Diffstat (limited to 'meta/recipes-graphics/fontconfig/fontconfig_2.15.0.bb')
-rw-r--r-- | meta/recipes-graphics/fontconfig/fontconfig_2.15.0.bb | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.15.0.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.15.0.bb new file mode 100644 index 0000000000..b737447e47 --- /dev/null +++ b/meta/recipes-graphics/fontconfig/fontconfig_2.15.0.bb | |||
@@ -0,0 +1,69 @@ | |||
1 | SUMMARY = "Generic font configuration library" | ||
2 | DESCRIPTION = "Fontconfig is a font configuration and customization library, which \ | ||
3 | does not depend on the X Window System. It is designed to locate \ | ||
4 | fonts within the system and select them according to requirements \ | ||
5 | specified by applications. \ | ||
6 | Fontconfig is not a rasterization library, nor does it impose a \ | ||
7 | particular rasterization library on the application. The X-specific \ | ||
8 | library 'Xft' uses fontconfig along with freetype to specify and \ | ||
9 | rasterize fonts." | ||
10 | |||
11 | HOMEPAGE = "http://www.fontconfig.org" | ||
12 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig" | ||
13 | |||
14 | LICENSE = "MIT & MIT & PD" | ||
15 | LIC_FILES_CHKSUM = "file://COPYING;md5=00252fd272bf2e722925613ad74cb6c7 \ | ||
16 | file://src/fcfreetype.c;endline=45;md5=ef8702fbf3dc506715be8a9d69cb0252 \ | ||
17 | " | ||
18 | |||
19 | SECTION = "libs" | ||
20 | |||
21 | DEPENDS = "expat freetype zlib gperf-native util-linux" | ||
22 | |||
23 | SRC_URI = "http://fontconfig.org/release/fontconfig-${PV}.tar.gz \ | ||
24 | file://revert-static-pkgconfig.patch \ | ||
25 | " | ||
26 | |||
27 | SRC_URI[sha256sum] = "f5f359d6332861bd497570848fcb42520964a9e83d5e3abe397b6b6db9bcaaf4" | ||
28 | |||
29 | UPSTREAM_CHECK_REGEX = "fontconfig-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)" | ||
30 | |||
31 | do_configure:prepend() { | ||
32 | # work around https://bugs.freedesktop.org/show_bug.cgi?id=101280 | ||
33 | rm -f ${S}/src/fcobjshash.h ${S}/src/fcobjshash.gperf | ||
34 | } | ||
35 | |||
36 | do_install:append:class-target() { | ||
37 | # duplicate fc-cache for postinstall script | ||
38 | mkdir -p ${D}${libexecdir} | ||
39 | ln ${D}${bindir}/fc-cache ${D}${libexecdir}/${MLPREFIX}fc-cache | ||
40 | } | ||
41 | |||
42 | do_install:append:class-nativesdk() { | ||
43 | # duplicate fc-cache for postinstall script | ||
44 | mkdir -p ${D}${libexecdir} | ||
45 | ln ${D}${bindir}/fc-cache ${D}${libexecdir}/${MLPREFIX}fc-cache | ||
46 | } | ||
47 | |||
48 | PACKAGES =+ "fontconfig-utils" | ||
49 | FILES:${PN} =+ "${datadir}/xml/*" | ||
50 | FILES:${PN}-dev += "${datadir}/gettext/*" | ||
51 | FILES:fontconfig-utils = "${bindir}/* ${libexecdir}/*" | ||
52 | |||
53 | # Work around past breakage in debian.bbclass | ||
54 | RPROVIDES:fontconfig-utils = "libfontconfig-utils" | ||
55 | RREPLACES:fontconfig-utils = "libfontconfig-utils" | ||
56 | RCONFLICTS:fontconfig-utils = "libfontconfig-utils" | ||
57 | DEBIAN_NOAUTONAME:fontconfig-utils = "1" | ||
58 | |||
59 | inherit autotools pkgconfig relative_symlinks gettext | ||
60 | |||
61 | FONTCONFIG_CACHE_DIR ?= "${localstatedir}/cache/fontconfig" | ||
62 | |||
63 | # comma separated list of additional directories | ||
64 | # /usr/share/fonts is already included by default (you can change it with --with-default-fonts) | ||
65 | FONTCONFIG_FONT_DIRS ?= "no" | ||
66 | |||
67 | EXTRA_OECONF = " --disable-docs --with-default-fonts=${datadir}/fonts --with-cache-dir=${FONTCONFIG_CACHE_DIR} --with-add-fonts=${FONTCONFIG_FONT_DIRS}" | ||
68 | |||
69 | BBCLASSEXTEND = "native nativesdk" | ||