diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:14:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:29:45 +0100 |
commit | 29d6678fd546377459ef75cf54abeef5b969b5cf (patch) | |
tree | 8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-graphics/fontconfig | |
parent | da49de6885ee1bc424e70bc02f21f6ab920efb55 (diff) | |
download | poky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz |
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things
and is generally overwhelming. This commit splits it into several
logical sections roughly based on function, recipes.txt gives more
information about the classifications used.
The opportunity is also used to switch from "packages" to "recipes"
as used in OpenEmbedded as the term "packages" can be confusing to
people and has many different meanings.
Not all recipes have been classified yet, this is just a first pass
at separating things out. Some packages are moved to meta-extras as
they're no longer actively used or maintained.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-graphics/fontconfig')
4 files changed, 107 insertions, 0 deletions
diff --git a/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/97_fontconfig b/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/97_fontconfig new file mode 100644 index 0000000000..2993959dbb --- /dev/null +++ b/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/97_fontconfig | |||
@@ -0,0 +1 @@ | |||
d root root 0755 /var/cache/fontconfig none | |||
diff --git a/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/fix-pkgconfig.patch b/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/fix-pkgconfig.patch new file mode 100644 index 0000000000..7fec1e9104 --- /dev/null +++ b/meta/recipes-graphics/fontconfig/fontconfig-2.8.0/fix-pkgconfig.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | --- | ||
2 | fontconfig.pc.in | 2 +- | ||
3 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
4 | |||
5 | --- fontconfig-2.8.0.orig/fontconfig.pc.in | ||
6 | +++ fontconfig-2.8.0/fontconfig.pc.in | ||
7 | @@ -7,5 +7,5 @@ | ||
8 | Description: Font configuration and customization library | ||
9 | Version: @VERSION@ | ||
10 | Libs: -L${libdir} -lfontconfig | ||
11 | -Libs.private: @LIBXML2_LIBS@ @EXPAT_LIBS@ @FREETYPE_LIBS@ @ICONV_LIBS@ | ||
12 | +Libs.private: @LIBXML2_LIBS@ @EXPAT_LIBS@ -L{libdir} -lfreetype @ICONV_LIBS@ | ||
13 | Cflags: -I${includedir} | ||
diff --git a/meta/recipes-graphics/fontconfig/fontconfig-native_2.8.0.bb b/meta/recipes-graphics/fontconfig/fontconfig-native_2.8.0.bb new file mode 100644 index 0000000000..03a1bc86c2 --- /dev/null +++ b/meta/recipes-graphics/fontconfig/fontconfig-native_2.8.0.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require fontconfig_${PV}.bb | ||
2 | inherit native | ||
3 | DEPENDS = "freetype-native expat-native zlib-native" | ||
4 | |||
5 | EXTRA_OEMAKE = "" | ||
6 | EXTRA_OECONF = "${@[' --disable-docs',' --disable-docs --with-freetype-config=%s/freetype-config' % bb.data.getVar('STAGING_BINDIR', d, 1)][os.path.isfile('%s/freetype-config' % bb.data.getVar('STAGING_BINDIR', d, 1))]}" | ||
7 | |||
8 | do_install_append () { | ||
9 | install -d ${D}${bindir}/ | ||
10 | install fc-lang/fc-lang ${D}${bindir}/ | ||
11 | install fc-glyphname/fc-glyphname ${D}${bindir}/ | ||
12 | } | ||
diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.8.0.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.8.0.bb new file mode 100644 index 0000000000..e0403ecb3c --- /dev/null +++ b/meta/recipes-graphics/fontconfig/fontconfig_2.8.0.bb | |||
@@ -0,0 +1,81 @@ | |||
1 | DESCRIPTION = "A library for configuring and customizing font access." | ||
2 | HOMEPAGE = "http://www.fontconfig.org" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig" | ||
4 | |||
5 | LICENSE = "MIT-style & MIT & Public Domain" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=f3ad4145dea6ca7efa2f1bee8165a7a1 \ | ||
7 | file://src/fcfreetype.c;endline=45;md5=bc3dd139e2f7245a02fde5545b203a6f \ | ||
8 | file://src/fccache.c;beginline=1020;endline=1035;md5=0326cfeb4a7333dd4dd25fbbc4b9f27f" | ||
9 | |||
10 | SECTION = "libs" | ||
11 | |||
12 | DEPENDS = "expat freetype zlib" | ||
13 | |||
14 | PR = "r1" | ||
15 | |||
16 | SRC_URI = "http://fontconfig.org/release/fontconfig-${PV}.tar.gz \ | ||
17 | file://fix-pkgconfig.patch \ | ||
18 | file://97_fontconfig" | ||
19 | |||
20 | PACKAGES =+ "fontconfig-utils-dbg fontconfig-utils " | ||
21 | FILES_fontconfig-utils-dbg = "${bindir}/*.dbg" | ||
22 | FILES_fontconfig-utils = "${bindir}/*" | ||
23 | |||
24 | # Work around past breakage in debian.bbclass | ||
25 | RPROVIDES_fontconfig-utils = "libfontconfig-utils" | ||
26 | RREPLACES_fontconfig-utils = "libfontconfig-utils" | ||
27 | RCONFLICTS_fontconfig-utils = "libfontconfig-utils" | ||
28 | DEBIAN_NOAUTONAME_fontconfig-utils = "1" | ||
29 | |||
30 | PARALLEL_MAKE = "" | ||
31 | |||
32 | inherit autotools pkgconfig | ||
33 | |||
34 | export HASDOCBOOK="no" | ||
35 | |||
36 | EXTRA_OECONF = " --disable-docs --with-arch=${HOST_ARCH}" | ||
37 | EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname" | ||
38 | |||
39 | # The tarball has some of the patched files as read only, which | ||
40 | # patch doesn't like at all | ||
41 | |||
42 | fontconfig_do_unpack() { | ||
43 | chmod -R u+rw ${S} | ||
44 | } | ||
45 | |||
46 | python do_unpack () { | ||
47 | bb.build.exec_func('base_do_unpack', d) | ||
48 | bb.build.exec_func('fontconfig_do_unpack', d) | ||
49 | } | ||
50 | |||
51 | BUILD_CFLAGS += " -I${STAGING_INCDIR}/freetype2" | ||
52 | |||
53 | do_configure_append () { | ||
54 | sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-case/Makefile | ||
55 | sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-glyphname/Makefile | ||
56 | sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-lang/Makefile | ||
57 | sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-arch/Makefile | ||
58 | |||
59 | sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-case/Makefile | ||
60 | sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-glyphname/Makefile | ||
61 | sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-lang/Makefile | ||
62 | sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-arch/Makefile | ||
63 | |||
64 | sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-case/Makefile | ||
65 | sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-glyphname/Makefile | ||
66 | sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-lang/Makefile | ||
67 | sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-arch/Makefile | ||
68 | |||
69 | sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-case/Makefile | ||
70 | sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-glyphname/Makefile | ||
71 | sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-lang/Makefile | ||
72 | sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-arch/Makefile | ||
73 | |||
74 | } | ||
75 | |||
76 | do_install_append() { | ||
77 | install -d ${D}${sysconfdir}/default/volatiles | ||
78 | install -m 0644 ${WORKDIR}/97_fontconfig ${D}${sysconfdir}/default/volatiles | ||
79 | rmdir ${D}${localstatedir}/cache/fontconfig | ||
80 | rmdir ${D}${localstatedir}/cache/ | ||
81 | } | ||