fontconfig - Add a local.conf file
authorRaymond Danks <raymond@edanks.com>
Wed, 31 May 2006 22:34:36 +0000 (22:34 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 31 May 2006 22:34:36 +0000 (22:34 +0000)
packages/fontconfig/files/local.conf
packages/fontconfig/fontconfig_2.2.95.bb

index ddd7cf9..d678878 100644 (file)
@@ -2,11 +2,18 @@
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <!-- /etc/fonts/local.conf file for local customizations -->
 <fontconfig>
-<!-- Enable sub-pixel rendering -->
+<!--
+  Enable sub-pixel rendering
        <match target="font">
                <test qual="all" name="rgba">
                        <const>unknown</const>
                </test>
                <edit name="rgba" mode="assign"><const>rgb</const></edit>
        </match>
+-->
+
+<!-- X11R7.0 installs fonts to a new location -->
+       <dir>/usr/lib/X11/fonts/misc</dir>
+       <dir>/usr/lib/X11/fonts/Type1</dir>
+       <dir>/usr/lib/X11/fonts/75dpi</dir>
 </fontconfig>
index 7ff731e..0951d40 100644 (file)
@@ -5,8 +5,9 @@ DEPENDS = "expat freetype freetype-native zlib fontconfig-native"
 
 SRC_URI = "http://freedesktop.org/fontconfig/release/fontconfig-${PV}.tar.gz \
            file://fc-glyphname.patch;patch=1 \
-           file://fc-lang.patch;patch=1"
-PR = "r6"
+           file://fc-lang.patch;patch=1 \
+          file://local.conf"
+PR = "r7"
 
 PACKAGES =+ "fontconfig-utils "
 FILES_fontconfig-utils = "${bindir}/*"
@@ -46,5 +47,8 @@ do_stage () {
 
 do_install () {
        autotools_do_install
+
+       install -d ${D}/etc/fonts/
+       install -m 0644 ${WORKDIR}/local.conf ${D}/etc/fonts/
 }