summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2003-12-13 00:58:32 +0000
committerChris Larson <clarson@kergoth.com>2003-12-13 00:58:32 +0000
commit69e784ce4d003d171602b1f0277cdb93fd90e9be (patch)
tree4fbbec986a2a2f578377b144518fc9d35e754c0d
parent0b4bcdef69a5416c90d9937174fe83871742b861 (diff)
Fix the freetype build.
BKrev: 3fda6438Iwl3GfkAjWKjK4BVkSre-g
-rw-r--r--freetype/freetype-2.1.7/configure.patch0
-rw-r--r--freetype/freetype_2.1.7.oe34
2 files changed, 34 insertions, 0 deletions
diff --git a/freetype/freetype-2.1.7/configure.patch b/freetype/freetype-2.1.7/configure.patch
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/freetype/freetype-2.1.7/configure.patch
diff --git a/freetype/freetype_2.1.7.oe b/freetype/freetype_2.1.7.oe
index e69de29bb2..59050f3733 100644
--- a/freetype/freetype_2.1.7.oe
+++ b/freetype/freetype_2.1.7.oe
@@ -0,0 +1,34 @@
+DESCRIPTION = Freetype font rendering library
+DEPENDS = virtual/libc
+RDEPENDS = libc6
+
+FT_SONAME = 6.3.5
+
+SRC_URI = ftp://ftp.freetype.org/freetype/freetype2/freetype-${PV}.tar.bz2 \
+ file://${FILESDIR}/configure.patch;patch=1
+
+inherit autotools libtool pkgconfig
+
+EXTRA_OEMAKE="'LIBTOOL=${STAGING_BINDIR}/${HOST_SYS}-libtool'"
+
+do_configure () {
+ cd builds/unix
+ aclocal -I .
+ autoconf
+ cd ${S}
+ oe_runconf
+}
+
+do_stage () {
+ install -m 755 -D objs/.libs/libfreetype.so.${FT_SONAME} ${STAGING_LIBDIR}/libfreetype.so.${FT_SONAME}
+ ln -sf ./libfreetype.so.${FT_SONAME} ${STAGING_LIBDIR}/libfreetype.so.6
+ ln -sf ./libfreetype.so.${FT_SONAME} ${STAGING_LIBDIR}/libfreetype.so
+
+ install -m 0644 objs/.libs/libfreetype.lai ${STAGING_LIBDIR}/libfreetype.la
+ cp -a include/*.h ${STAGING_INCDIR}
+ cp -a include/freetype ${STAGING_INCDIR}
+
+ sed -e 's,/usr,${STAGING_DIR}/target,' < builds/unix/freetype-config > ${STAGING_BINDIR}/freetype-config
+ chmod u+x ${STAGING_BINDIR}/freetype-config
+}
+