diff options
Diffstat (limited to 'meta/recipes-graphics/fontconfig/fontconfig_2.9.0.bb')
-rw-r--r-- | meta/recipes-graphics/fontconfig/fontconfig_2.9.0.bb | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.9.0.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.9.0.bb new file mode 100644 index 0000000000..7f3f111a91 --- /dev/null +++ b/meta/recipes-graphics/fontconfig/fontconfig_2.9.0.bb | |||
@@ -0,0 +1,89 @@ | |||
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-style & MIT & PD" | ||
15 | LIC_FILES_CHKSUM = "file://COPYING;md5=dc5b39c592e47a22dbec44855988d2a0 \ | ||
16 | file://src/fcfreetype.c;endline=45;md5=5d9513e3196a1fbfdfa94051c09dfc84 \ | ||
17 | file://src/fccache.c;beginline=1077;endline=1092;md5=0326cfeb4a7333dd4dd25fbbc4b9f27f" | ||
18 | |||
19 | SECTION = "libs" | ||
20 | |||
21 | DEPENDS = "expat freetype zlib" | ||
22 | |||
23 | PR = "r0" | ||
24 | |||
25 | SRC_URI = "http://fontconfig.org/release/fontconfig-${PV}.tar.gz \ | ||
26 | file://fix-pkgconfig.patch \ | ||
27 | file://97_fontconfig" | ||
28 | |||
29 | SRC_URI[md5sum] = "26c83855ed256b5c032baae032fadc4f" | ||
30 | SRC_URI[sha256sum] = "ca7e25071cf044bdcdaf7c48845243c115b9269b4e369c6bd78a29e71f01b41a" | ||
31 | |||
32 | PACKAGES =+ "fontconfig-utils-dbg fontconfig-utils " | ||
33 | FILES_fontconfig-utils-dbg = "${bindir}/*.dbg" | ||
34 | FILES_fontconfig-utils = "${bindir}/*" | ||
35 | |||
36 | # Work around past breakage in debian.bbclass | ||
37 | RPROVIDES_fontconfig-utils = "libfontconfig-utils" | ||
38 | RREPLACES_fontconfig-utils = "libfontconfig-utils" | ||
39 | RCONFLICTS_fontconfig-utils = "libfontconfig-utils" | ||
40 | DEBIAN_NOAUTONAME_fontconfig-utils = "1" | ||
41 | |||
42 | PARALLEL_MAKE = "" | ||
43 | |||
44 | inherit autotools pkgconfig | ||
45 | |||
46 | export HASDOCBOOK="no" | ||
47 | |||
48 | EXTRA_OECONF = " --disable-docs --with-arch=${HOST_ARCH} --with-default-fonts=${datadir}/fonts" | ||
49 | EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname" | ||
50 | |||
51 | # The tarball has some of the patched files as read only, which | ||
52 | # patch doesn't like at all | ||
53 | |||
54 | fontconfig_do_unpack() { | ||
55 | chmod -R u+rw ${S} | ||
56 | } | ||
57 | |||
58 | python do_unpack () { | ||
59 | bb.build.exec_func('base_do_unpack', d) | ||
60 | bb.build.exec_func('fontconfig_do_unpack', d) | ||
61 | } | ||
62 | |||
63 | BUILD_CFLAGS += " -I${STAGING_INCDIR}/freetype2" | ||
64 | |||
65 | do_configure_append () { | ||
66 | sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-case/Makefile | ||
67 | sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-glyphname/Makefile | ||
68 | sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-lang/Makefile | ||
69 | |||
70 | sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-case/Makefile | ||
71 | sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-glyphname/Makefile | ||
72 | sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-lang/Makefile | ||
73 | |||
74 | sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-case/Makefile | ||
75 | sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-glyphname/Makefile | ||
76 | sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-lang/Makefile | ||
77 | |||
78 | sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-case/Makefile | ||
79 | sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-glyphname/Makefile | ||
80 | sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-lang/Makefile | ||
81 | |||
82 | } | ||
83 | |||
84 | do_install_append() { | ||
85 | install -d ${D}${sysconfdir}/default/volatiles | ||
86 | install -m 0644 ${WORKDIR}/97_fontconfig ${D}${sysconfdir}/default/volatiles | ||
87 | rmdir ${D}${localstatedir}/cache/fontconfig | ||
88 | rmdir ${D}${localstatedir}/cache/ | ||
89 | } | ||