From: Chris Larson Date: Sat, 13 Dec 2003 00:58:32 +0000 (+0000) Subject: Fix the freetype build. X-Git-Tag: Release-2010-05/1~20506 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69e784ce4d003d171602b1f0277cdb93fd90e9be;p=openembedded.git Fix the freetype build. BKrev: 3fda6438Iwl3GfkAjWKjK4BVkSre-g --- 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 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 +} +