[oe-commits] Marcin Juszkiewicz : freetype: added 2.3.9

git version control git at git.openembedded.org
Wed Feb 10 13:20:31 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 6224275aa357ed61282253d9a1a1eddf432ceef1
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6224275aa357ed61282253d9a1a1eddf432ceef1

Author: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>
Date:   Wed Feb 10 14:13:13 2010 +0100

freetype: added 2.3.9

---

 .../freetype/freetype-2.3.9/fix-configure.patch    |   13 ++++++
 recipes/freetype/freetype-2.3.9/libtool-tag.patch  |   20 ++++++++++
 recipes/freetype/freetype-native_2.3.9.bb          |   21 ++++++++++
 recipes/freetype/freetype_2.3.9.bb                 |   41 ++++++++++++++++++++
 4 files changed, 95 insertions(+), 0 deletions(-)

diff --git a/recipes/freetype/freetype-2.3.9/fix-configure.patch b/recipes/freetype/freetype-2.3.9/fix-configure.patch
new file mode 100644
index 0000000..ecd9673
--- /dev/null
+++ b/recipes/freetype/freetype-2.3.9/fix-configure.patch
@@ -0,0 +1,13 @@
+Index: freetype-2.3.6/builds/unix/configure.ac
+===================================================================
+--- freetype-2.3.6.orig/builds/unix/configure.ac
++++ freetype-2.3.6/builds/unix/configure.ac
+@@ -506,8 +506,6 @@ AC_SUBST([FT2_EXTRA_LIBS])
+ AC_SUBST([SYSTEM_ZLIB])
+ 
+ 
+-LT_INIT(win32-dll)
+-
+ AC_SUBST([hardcode_libdir_flag_spec])
+ AC_SUBST([wl])
+ AC_SUBST([build_libtool_libs])
diff --git a/recipes/freetype/freetype-2.3.9/libtool-tag.patch b/recipes/freetype/freetype-2.3.9/libtool-tag.patch
new file mode 100644
index 0000000..2f096cd
--- /dev/null
+++ b/recipes/freetype/freetype-2.3.9/libtool-tag.patch
@@ -0,0 +1,20 @@
+--- freetype-2.3.6/builds/unix/unix-cc.in	
++++ freetype-2.3.6/builds/unix/unix-cc.in	
+@@ -88,7 +88,7 @@ 
+ #
+ #
+ CCraw := $(CC)
+-CC    := $(LIBTOOL) --mode=compile $(CCraw)
++CC    := $(LIBTOOL) --tag=CC --mode=compile $(CCraw)
+ 
+ # Linker flags.
+ #
+@@ -105,7 +105,7 @@ 
+ 
+ # Library linking
+ #
+-LINK_LIBRARY = $(LIBTOOL) --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \
++LINK_LIBRARY = $(LIBTOOL) --tag=CC --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \
+                           -rpath $(libdir) -version-info $(version_info) \
+                           $(LDFLAGS) -no-undefined \
+                           # -export-symbols $(EXPORTS_LIST)
diff --git a/recipes/freetype/freetype-native_2.3.9.bb b/recipes/freetype/freetype-native_2.3.9.bb
new file mode 100644
index 0000000..b5e8b30
--- /dev/null
+++ b/recipes/freetype/freetype-native_2.3.9.bb
@@ -0,0 +1,21 @@
+require freetype_${PV}.bb
+inherit native
+DEPENDS = ""
+FILESPATH = "${FILE_DIRNAME}/freetype-${PV}:${FILE_DIRNAME}/freetype:${FILE_DIRNAME}/files"
+
+EXTRA_OEMAKE=
+
+do_configure() {
+	(cd builds/unix && gnu-configize) || die "failure running gnu-configize"
+	oe_runconf
+}
+
+do_stage() {
+	autotools_stage_includes
+	oe_libinstall -so -a -C objs libfreetype ${STAGING_LIBDIR}
+}
+
+do_install() {
+	:
+}
+
diff --git a/recipes/freetype/freetype_2.3.9.bb b/recipes/freetype/freetype_2.3.9.bb
new file mode 100644
index 0000000..eca74c0
--- /dev/null
+++ b/recipes/freetype/freetype_2.3.9.bb
@@ -0,0 +1,41 @@
+DESCRIPTION = "Freetype font rendering library"
+SECTION = "libs"
+LICENSE = "freetype"
+PR = "r0"
+
+SRC_URI = "\
+  ${SOURCEFORGE_MIRROR}/freetype/freetype-${PV}.tar.bz2 \
+  file://no-hardcode.patch;patch=1 \
+  file://fix-configure.patch;patch=1 \
+  file://libtool-tag.patch;patch=1 \
+"
+S = "${WORKDIR}/freetype-${PV}"
+
+inherit autotools pkgconfig binconfig
+
+LIBTOOL = "${HOST_SYS}-libtool"
+EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'"
+EXTRA_OECONF = "--without-zlib"
+
+do_configure() {
+	cd builds/unix
+	libtoolize --force --copy
+	gnu-configize --force
+	aclocal -I .
+	autoconf
+	cd ${S}
+	oe_runconf
+}
+
+do_compile_prepend() {
+	${BUILD_CC} -o objs/apinames src/tools/apinames.c
+}
+
+do_stage() {
+     export LIBTOOL='${LIBTOOL}'
+	 autotools_stage_all
+	 oe_libinstall -so -a -C objs libfreetype ${STAGING_LIBDIR}
+}
+
+FILES_${PN} = "${libdir}/lib*.so.*"
+FILES_${PN}-dev += "${bindir}"





More information about the Openembedded-commits mailing list