summaryrefslogtreecommitdiff
path: root/meta/packages/fontconfig
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/fontconfig')
-rw-r--r--meta/packages/fontconfig/files/local.conf12
-rw-r--r--meta/packages/fontconfig/files/stop-fc-cache.patch8
-rw-r--r--meta/packages/fontconfig/fontconfig-2.2.95/fc-glyphname.patch19
-rw-r--r--meta/packages/fontconfig/fontconfig-2.2.95/fc-lang.patch18
-rw-r--r--meta/packages/fontconfig/fontconfig-native_2.2.95.bb15
-rw-r--r--meta/packages/fontconfig/fontconfig_2.2.95.bb36
6 files changed, 108 insertions, 0 deletions
diff --git a/meta/packages/fontconfig/files/local.conf b/meta/packages/fontconfig/files/local.conf
new file mode 100644
index 0000000000..ddd7cf9d03
--- /dev/null
+++ b/meta/packages/fontconfig/files/local.conf
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- /etc/fonts/local.conf file for local customizations -->
+<fontconfig>
+<!-- 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>
+</fontconfig>
diff --git a/meta/packages/fontconfig/files/stop-fc-cache.patch b/meta/packages/fontconfig/files/stop-fc-cache.patch
new file mode 100644
index 0000000000..7b549118f9
--- /dev/null
+++ b/meta/packages/fontconfig/files/stop-fc-cache.patch
@@ -0,0 +1,8 @@
+--- fontconfig-2.2.95/Makefile.am.old 2006-02-07 01:01:01.000000000 +0000
++++ fontconfig-2.2.95/Makefile.am 2006-02-07 01:01:15.000000000 +0000
+@@ -50,4 +50,4 @@
+ echo " $(INSTALL_DATA) local.conf $(DESTDIR)$(configdir)/local.conf"; \
+ $(INSTALL_DATA) local.conf $(DESTDIR)$(configdir)/local.conf; \
+ fi; fi; fi
+- if [ x$(DESTDIR) = x ]; then fc-cache/fc-cache -f -v; fi
++# if [ x$(DESTDIR) = x ]; then fc-cache/fc-cache -f -v; fi
diff --git a/meta/packages/fontconfig/fontconfig-2.2.95/fc-glyphname.patch b/meta/packages/fontconfig/fontconfig-2.2.95/fc-glyphname.patch
new file mode 100644
index 0000000000..1afd9324ff
--- /dev/null
+++ b/meta/packages/fontconfig/fontconfig-2.2.95/fc-glyphname.patch
@@ -0,0 +1,19 @@
+--- fontconfig/fc-glyphname/Makefile.am~ 2004-04-14 17:06:35.000000000 +0100
++++ fontconfig/fc-glyphname/Makefile.am 2004-05-15 11:41:35.000000000 +0100
+@@ -27,6 +27,7 @@
+ TMPL=fcglyphname.tmpl.h
+ STMPL=${top_srcdir}/fc-glyphname/${TMPL}
+ TARG=fcglyphname.h
++FC_GLYPHNAME=./fc-glyphname
+
+ noinst_PROGRAMS=fc-glyphname
+
+@@ -41,7 +42,7 @@
+
+ $(TARG): $(STMPL) fc-glyphname $(SGLYPHNAME)
+ rm -f $(TARG)
+- ./fc-glyphname $(SGLYPHNAME) < $(STMPL) > $(TARG)
++ $(FC_GLYPHNAME) $(SGLYPHNAME) < $(STMPL) > $(TARG)
+
+ CLEANFILES=$(TARG)
+
diff --git a/meta/packages/fontconfig/fontconfig-2.2.95/fc-lang.patch b/meta/packages/fontconfig/fontconfig-2.2.95/fc-lang.patch
new file mode 100644
index 0000000000..d08242a377
--- /dev/null
+++ b/meta/packages/fontconfig/fontconfig-2.2.95/fc-lang.patch
@@ -0,0 +1,18 @@
+--- fontconfig/fc-lang/Makefile.am~ 2004-04-14 17:06:36.000000000 +0100
++++ fontconfig/fc-lang/Makefile.am 2004-05-15 11:22:44.000000000 +0100
+@@ -27,6 +27,7 @@
+ TMPL=fclang.tmpl.h
+ STMPL=${top_srcdir}/fc-lang/fclang.tmpl.h
+ TARG=fclang.h
++FC_LANG=./fc-lang
+
+ noinst_PROGRAMS=fc-lang
+
+@@ -40,6 +41,6 @@
+
+ $(TARG):$(ORTH) fc-lang $(STMPL)
+ rm -f $(TARG)
+- ./fc-lang -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG)
++ $(FC_LANG) -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG)
+
+ CLEANFILES=$(TARG)
diff --git a/meta/packages/fontconfig/fontconfig-native_2.2.95.bb b/meta/packages/fontconfig/fontconfig-native_2.2.95.bb
new file mode 100644
index 0000000000..6872db92f1
--- /dev/null
+++ b/meta/packages/fontconfig/fontconfig-native_2.2.95.bb
@@ -0,0 +1,15 @@
+SECTION = "base"
+LICENSE = "BSD"
+include fontconfig_${PV}.bb
+inherit native
+DEPENDS = "freetype-native expat-native zlib-native"
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/fontconfig-${PV}"
+SRC_URI += " file://stop-fc-cache.patch;patch=1"
+
+EXTRA_OEMAKE = ""
+
+do_stage () {
+ oe_runmake install
+ install fc-lang/fc-lang ${STAGING_BINDIR}
+ install fc-glyphname/fc-glyphname ${STAGING_BINDIR}
+}
diff --git a/meta/packages/fontconfig/fontconfig_2.2.95.bb b/meta/packages/fontconfig/fontconfig_2.2.95.bb
new file mode 100644
index 0000000000..78b35b1793
--- /dev/null
+++ b/meta/packages/fontconfig/fontconfig_2.2.95.bb
@@ -0,0 +1,36 @@
+SECTION = "libs"
+LICENSE = "BSD"
+DESCRIPTION = "A library for configuring and customizing font access."
+DEPENDS = "expat freetype freetype-native zlib fontconfig-native"
+
+SRC_URI = "http://pdx.freedesktop.org/fontconfig/release/fontconfig-${PV}.tar.gz \
+ file://fc-glyphname.patch;patch=1 \
+ file://fc-lang.patch;patch=1 \
+ file://local.conf"
+PR = "r2"
+
+PACKAGES =+ "fontconfig-utils "
+FILES_fontconfig-utils = "${bindir}/*"
+
+PKG_fontconfig-utils=fontconfig-utils
+
+S = "${WORKDIR}/fontconfig-${PV}"
+
+inherit autotools pkgconfig
+
+export HASDOCBOOK="no"
+
+EXTRA_OECONF = " --disable-docs "
+EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname"
+
+do_stage () {
+ oe_libinstall -so -a -C src libfontconfig ${STAGING_LIBDIR}
+ install -d ${STAGING_INCDIR}/fontconfig
+ for i in ${S}/fontconfig/*.h; do install -m 0644 $i ${STAGING_INCDIR}/fontconfig/; done
+}
+
+do_install () {
+ autotools_do_install
+ install -m 0644 ${WORKDIR}/local.conf ${D}${sysconfdir}/fonts/local.conf
+}
+