diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-02-03 00:29:41 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-02-03 00:29:41 +0000 |
commit | 4cb58790daad0b069c93158c4270d2367e3fa100 (patch) | |
tree | 26dcc03d5b6af534cbe5612c05221ed3a62e096d /meta/packages/xorg-font | |
parent | 5daaa63bdbb2f1293e1d716aed3db043a4e4b149 (diff) | |
download | poky-4cb58790daad0b069c93158c4270d2367e3fa100.tar.gz |
xorg: Bulk version upgrades
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/xorg-font')
-rw-r--r-- | meta/packages/xorg-font/encodings_1.0.3.bb | 5 | ||||
-rw-r--r-- | meta/packages/xorg-font/font-alias_1.0.2.bb | 9 | ||||
-rw-r--r-- | meta/packages/xorg-font/font-util_1.1.1.bb | 17 | ||||
-rw-r--r-- | meta/packages/xorg-font/xorg-font-common.inc | 45 |
4 files changed, 76 insertions, 0 deletions
diff --git a/meta/packages/xorg-font/encodings_1.0.3.bb b/meta/packages/xorg-font/encodings_1.0.3.bb new file mode 100644 index 0000000000..ecc3eed540 --- /dev/null +++ b/meta/packages/xorg-font/encodings_1.0.3.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require xorg-font-common.inc | ||
2 | PE = "1" | ||
3 | PR = "${INC_PR}.0" | ||
4 | |||
5 | DEPENDS = "mkfontscale-native font-util-native" | ||
diff --git a/meta/packages/xorg-font/font-alias_1.0.2.bb b/meta/packages/xorg-font/font-alias_1.0.2.bb new file mode 100644 index 0000000000..5314cbc5db --- /dev/null +++ b/meta/packages/xorg-font/font-alias_1.0.2.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require xorg-font-common.inc | ||
2 | |||
3 | DESCRIPTION = "X font aliases." | ||
4 | |||
5 | DEPENDS = "virtual/xserver font-util" | ||
6 | RDEPENDS = "encodings font-util" | ||
7 | |||
8 | PE = "1" | ||
9 | PR = "${INC_PR}.0" | ||
diff --git a/meta/packages/xorg-font/font-util_1.1.1.bb b/meta/packages/xorg-font/font-util_1.1.1.bb new file mode 100644 index 0000000000..b7819d1244 --- /dev/null +++ b/meta/packages/xorg-font/font-util_1.1.1.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | require xorg-font-common.inc | ||
2 | |||
3 | PACKAGE_ARCH = "${BASE_PACKAGE_ARCH}" | ||
4 | |||
5 | DESCRIPTION = "X font utils." | ||
6 | |||
7 | DEPENDS = "encodings util-macros" | ||
8 | DEPENDS_virtclass-native = "util-macros-native" | ||
9 | RDEPENDS = "mkfontdir mkfontscale encodings" | ||
10 | |||
11 | PR = "${INC_PR}.1" | ||
12 | |||
13 | do_configure_prepend() { | ||
14 | sed -i "s#MAPFILES_PATH=\`pkg-config#MAPFILES_PATH=\`PKG_CONFIG_PATH=\"${STAGING_LIBDIR_NATIVE}/pkg-config\" pkg-config#g" fontutil.m4.in | ||
15 | } | ||
16 | |||
17 | BBCLASSEXTEND = "native" \ No newline at end of file | ||
diff --git a/meta/packages/xorg-font/xorg-font-common.inc b/meta/packages/xorg-font/xorg-font-common.inc new file mode 100644 index 0000000000..52dc2208df --- /dev/null +++ b/meta/packages/xorg-font/xorg-font-common.inc | |||
@@ -0,0 +1,45 @@ | |||
1 | HOMEPAGE = "http://www.x.org" | ||
2 | SECTION = "x11/fonts" | ||
3 | LICENSE = "MIT-X" | ||
4 | |||
5 | DEPENDS = " encodings font-alias font-util-native mkfontdir-native mkfontscale-native" | ||
6 | RDEPENDS = "encodings font-util font-alias" | ||
7 | |||
8 | XORG_PN = "${BPN}" | ||
9 | INC_PR = "r1" | ||
10 | |||
11 | SRC_URI = "${XORG_MIRROR}/individual/font/${XORG_PN}-${PV}.tar.bz2" | ||
12 | S = "${WORKDIR}/${XORG_PN}-${PV}" | ||
13 | |||
14 | inherit autotools pkgconfig | ||
15 | |||
16 | EXTRA_OEMAKE += "FCCACHE=/bin/true" | ||
17 | |||
18 | do_configure_prepend() { | ||
19 | if [ -f "${S}"/configure.ac ] ; then | ||
20 | sed -i "s#^MAPFILES_PATH=.*#MAPFILES_PATH=\"${STAGING_DIR_TARGET}/\$(pkg-config --variable=mapdir fontutil)\"#g" "${S}"/configure.ac | ||
21 | fi | ||
22 | } | ||
23 | |||
24 | do_install_append() { | ||
25 | find ${D}${libdir}/X11/fonts -type f -name fonts.dir | xargs rm -f | ||
26 | find ${D}${libdir}/X11/fonts -type f -name fonts.scale | xargs rm -f | ||
27 | find ${D}${datadir}/fonts/X11 -type f -name fonts.dir | xargs rm -f | ||
28 | find ${D}${datadir}/fonts/X11 -type f -name fonts.scale | xargs rm -f | ||
29 | } | ||
30 | |||
31 | PACKAGE_ARCH = "all" | ||
32 | |||
33 | FILES_${PN} += " ${libdir}/X11/fonts ${datadir}" | ||
34 | |||
35 | pkg_postinst_${PN} () { | ||
36 | set -x | ||
37 | for fontdir in `find $D/usr/lib/X11/fonts -type d`; do | ||
38 | mkfontdir $fontdir | ||
39 | mkfontscale $fontdir | ||
40 | done | ||
41 | for fontdir in `find $D/usr/share/fonts/X11 -type d`; do | ||
42 | mkfontdir $fontdir | ||
43 | mkfontscale $fontdir | ||
44 | done | ||
45 | } | ||