aboutsummaryrefslogtreecommitdiffstats
path: root/packages/xorg-font/xorg-font-common.inc
diff options
context:
space:
mode:
authorRaymond Danks <raymond@edanks.com>2006-07-24 19:46:41 +0000
committerRaymond Danks <raymond@edanks.com>2006-07-24 19:46:41 +0000
commitdd0c887b669ed5f2fdfa21118f4b32d096e92816 (patch)
tree52a9bb766480ea9983a6e3e5d4ae600e0a482f2c /packages/xorg-font/xorg-font-common.inc
parentb88c8ee5fdd3c5bda8a7fea778c3d7b09b180622 (diff)
downloadopenembedded-dd0c887b669ed5f2fdfa21118f4b32d096e92816.tar.gz
xorg-*: Massive rename to conform to X11R7.x_a.b.c versioning and xorg-* directory structure.
This is the first step for the update to X11R7.1. This will not build and will be followed by more patches and updates.
Diffstat (limited to 'packages/xorg-font/xorg-font-common.inc')
-rw-r--r--packages/xorg-font/xorg-font-common.inc31
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/xorg-font/xorg-font-common.inc b/packages/xorg-font/xorg-font-common.inc
new file mode 100644
index 0000000000..37d478bdc6
--- /dev/null
+++ b/packages/xorg-font/xorg-font-common.inc
@@ -0,0 +1,31 @@
+DESCRIPTION = "X font files"
+SECTION = "x11/fonts"
+LICENSE= "MIT-X"
+
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/font/${PN}-X11R7.0-${PV}.tar.bz2"
+S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
+FONT_DIR = "${datadir}/share/fonts"
+DEPENDS = "encodings mkfontscale mkfontdir"
+
+inherit autotools pkgconfig
+
+do_stage () {
+ autotools_stage_all
+}
+
+
+FILES_${PN} += " ${libdir}/X11/fonts/*.gz ${libdir}/X11/fonts/*/*.gz"
+
+pkg_postinst_${PN} () {
+
+ if [ "x$D" != "x" ]; then
+ exit 1
+ fi
+
+ for fontdir in /usr/lib/X11/fonts/* /usr/lib/X11/fonts/*/* ; do
+ if test -d $fontdir ; then
+ mkfontdir $fontdir
+ mkfontscale $fontdir
+ fi
+ done
+}