summaryrefslogtreecommitdiffstats
path: root/meta/packages/xorg-font
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-02-03 00:29:41 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-02-03 00:29:41 +0000
commit4cb58790daad0b069c93158c4270d2367e3fa100 (patch)
tree26dcc03d5b6af534cbe5612c05221ed3a62e096d /meta/packages/xorg-font
parent5daaa63bdbb2f1293e1d716aed3db043a4e4b149 (diff)
downloadpoky-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.bb5
-rw-r--r--meta/packages/xorg-font/font-alias_1.0.2.bb9
-rw-r--r--meta/packages/xorg-font/font-util_1.1.1.bb17
-rw-r--r--meta/packages/xorg-font/xorg-font-common.inc45
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 @@
1require xorg-font-common.inc
2PE = "1"
3PR = "${INC_PR}.0"
4
5DEPENDS = "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 @@
1require xorg-font-common.inc
2
3DESCRIPTION = "X font aliases."
4
5DEPENDS = "virtual/xserver font-util"
6RDEPENDS = "encodings font-util"
7
8PE = "1"
9PR = "${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 @@
1require xorg-font-common.inc
2
3PACKAGE_ARCH = "${BASE_PACKAGE_ARCH}"
4
5DESCRIPTION = "X font utils."
6
7DEPENDS = "encodings util-macros"
8DEPENDS_virtclass-native = "util-macros-native"
9RDEPENDS = "mkfontdir mkfontscale encodings"
10
11PR = "${INC_PR}.1"
12
13do_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
17BBCLASSEXTEND = "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 @@
1HOMEPAGE = "http://www.x.org"
2SECTION = "x11/fonts"
3LICENSE = "MIT-X"
4
5DEPENDS = " encodings font-alias font-util-native mkfontdir-native mkfontscale-native"
6RDEPENDS = "encodings font-util font-alias"
7
8XORG_PN = "${BPN}"
9INC_PR = "r1"
10
11SRC_URI = "${XORG_MIRROR}/individual/font/${XORG_PN}-${PV}.tar.bz2"
12S = "${WORKDIR}/${XORG_PN}-${PV}"
13
14inherit autotools pkgconfig
15
16EXTRA_OEMAKE += "FCCACHE=/bin/true"
17
18do_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
24do_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
31PACKAGE_ARCH = "all"
32
33FILES_${PN} += " ${libdir}/X11/fonts ${datadir}"
34
35pkg_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}