freetpye: fix the manual call of libtool by freetype
authorHenning Heinold <heinold@inf.fu-berlin.de>
Fri, 25 Feb 2011 14:48:44 +0000 (15:48 +0100)
committerHenning Heinold <heinold@inf.fu-berlin.de>
Fri, 25 Feb 2011 16:37:43 +0000 (17:37 +0100)
* remove unessary and not used patches
* add rpath-link to the LDFLAGS, prevents libtool using relink at
  make install
* bump PR

recipes/freetype/freetype-2.4.3/fix-configure.patch [deleted file]
recipes/freetype/freetype/configure.patch [deleted file]
recipes/freetype/freetype_2.4.3.bb

diff --git a/recipes/freetype/freetype-2.4.3/fix-configure.patch b/recipes/freetype/freetype-2.4.3/fix-configure.patch
deleted file mode 100644 (file)
index ecd9673..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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/configure.patch b/recipes/freetype/freetype/configure.patch
deleted file mode 100644 (file)
index f11cf96..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-
-#
-# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
-#
-
-Index: freetype-2.1.8/builds/unix/configure.ac
-===================================================================
---- freetype-2.1.8.orig/builds/unix/configure.ac       2004-04-14 04:49:11.000000000 -0400
-+++ freetype-2.1.8/builds/unix/configure.ac    2005-03-12 03:14:23.000000000 -0500
-@@ -111,8 +111,8 @@
- # Check for system zlib
- AC_ARG_WITH([zlib],
--  dnl don't quote AS_HELP_STRING!
--  AS_HELP_STRING([--without-zlib],
-+  dnl don't quote AC_HELP_STRING!
-+  AC_HELP_STRING([--without-zlib],
-                  [use internal zlib instead of system-wide]))
- if test x$with_zlib != xno && test -z "$LIBZ"; then
-   AC_CHECK_LIB([z], [gzsetparams], [AC_CHECK_HEADER([zlib.h], [LIBZ='-lz'])])
-@@ -127,7 +127,7 @@
- # Whether to use Mac OS resource-based fonts or not
- AC_ARG_WITH([old-mac-fonts],
--  dnl don't quote AS_HELP_STRING!
--  AS_HELP_STRING([--with-old-mac-fonts],
-+  dnl don't quote AC_HELP_STRING!
-+  AC_HELP_STRING([--with-old-mac-fonts],
-                  [allow Mac resource-based fonts to be used]))
- if test x$with_old_mac_fonts = xyes; then
-Index: freetype-2.1.8/builds/unix/unix-cc.in
-===================================================================
---- freetype-2.1.8.orig/builds/unix/unix-cc.in 2003-11-09 03:37:13.000000000 -0500
-+++ freetype-2.1.8/builds/unix/unix-cc.in      2005-03-12 18:37:24.613693760 -0500
-@@ -14,9 +14,11 @@
- CC           := @CC@
- COMPILER_SEP := $(SEP)
-+SHELL        := @SHELL@
-+top_builddir := $(BUILD_DIR)
- ifndef LIBTOOL
--  LIBTOOL := $(BUILD_DIR)/libtool
-+  LIBTOOL := @LIBTOOL@
- endif
index 90a0fe8..66d2e51 100644 (file)
@@ -1,13 +1,12 @@
 DESCRIPTION = "Freetype font rendering library"
 SECTION = "libs"
 LICENSE = "freetype GPLv2"
-PR = "r0"
+PR = "r1"
 DEPENDS = "zlib"
 
 SRC_URI = "\
   ${SOURCEFORGE_MIRROR}/freetype/freetype-${PV}.tar.bz2 \
   file://no-hardcode.patch \
-  file://fix-configure.patch \
   file://libtool-tag.patch \
 "
 S = "${WORKDIR}/freetype-${PV}"
@@ -17,14 +16,16 @@ SRC_URI[sha256sum] = "b4e626db62fd1b4549ff5d57f5eca3a41631fd6066adf8a31c11879b51
 
 inherit autotools pkgconfig binconfig
 
-LIBTOOL = "${HOST_SYS}-libtool"
+LIBTOOL = "${S}/builds/unix/${HOST_SYS}-libtool"
 EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'"
 
+LDFLAGS_append = " -Wl,-rpath-link -Wl,${STAGING_DIR_TARGET}${libdir}"
+
 do_configure() {
        cd builds/unix
-       libtoolize --force --copy
        gnu-configize --force
        aclocal -I .
+       libtoolize --force --copy
        autoconf
        cd ${S}
        oe_runconf