summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Woestenberg <leon.woestenberg@gmail.com>2007-01-18 23:20:04 +0000
committerLeon Woestenberg <leon.woestenberg@gmail.com>2007-01-18 23:20:04 +0000
commitedf033de568be4d5595bbf8aa01b390377c5104e (patch)
tree626467164fcdc60e3ef2927f6116aa460bebf13f
parent330923d186ef2cae8f55be58c310f34d1583c279 (diff)
freetype: Added release 2.3.0, but with DEFAULT_PREFERENCE -1, needs testing.
-rw-r--r--packages/freetype/freetype-2.3.0/.mtn2git_empty0
-rw-r--r--packages/freetype/freetype-2.3.0/configure.patch43
-rw-r--r--packages/freetype/freetype-2.3.0/no-hardcode.patch11
-rw-r--r--packages/freetype/freetype_2.3.0.bb38
4 files changed, 92 insertions, 0 deletions
diff --git a/packages/freetype/freetype-2.3.0/.mtn2git_empty b/packages/freetype/freetype-2.3.0/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/freetype/freetype-2.3.0/.mtn2git_empty
diff --git a/packages/freetype/freetype-2.3.0/configure.patch b/packages/freetype/freetype-2.3.0/configure.patch
new file mode 100644
index 0000000000..7c2035d7e8
--- /dev/null
+++ b/packages/freetype/freetype-2.3.0/configure.patch
@@ -0,0 +1,43 @@
+
+#
+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
+#
+
+Index: freetype-2.3.0/builds/unix/configure.ac
+===================================================================
+--- freetype-2.3.0.orig/builds/unix/configure.ac 2007-01-17 12:51:51.000000000 +0100
++++ freetype-2.3.0/builds/unix/configure.ac 2007-01-19 00:10:00.000000000 +0100
+@@ -159,7 +159,7 @@
+
+ # don't quote AS_HELP_STRING!
+ AC_ARG_WITH([zlib],
+- AS_HELP_STRING([--without-zlib],
++ 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'])])
+@@ -175,7 +175,7 @@
+
+ # don't quote AS_HELP_STRING!
+ AC_ARG_WITH([old-mac-fonts],
+- AS_HELP_STRING([--with-old-mac-fonts],
++ AC_HELP_STRING([--with-old-mac-fonts],
+ [allow Mac resource-based fonts to be used]))
+ if test x$with_old_mac_fonts = xyes; then
+ orig_LDFLAGS="${LDFLAGS}"
+Index: freetype-2.3.0/builds/unix/unix-cc.in
+===================================================================
+--- freetype-2.3.0.orig/builds/unix/unix-cc.in 2006-10-15 10:57:22.000000000 +0200
++++ freetype-2.3.0/builds/unix/unix-cc.in 2007-01-19 00:10:53.000000000 +0100
+@@ -14,8 +14,10 @@
+
+ CC := @CC@
+ COMPILER_SEP := $(SEP)
++SHELL := @SHELL@
++top_builddir := $(BUILD_DIR)
+
+-LIBTOOL ?= $(BUILD_DIR)/libtool
++LIBTOOL := @LIBTOOL@
+
+
+ # The object file extension (for standard and static libraries). This can be
diff --git a/packages/freetype/freetype-2.3.0/no-hardcode.patch b/packages/freetype/freetype-2.3.0/no-hardcode.patch
new file mode 100644
index 0000000000..65289758d5
--- /dev/null
+++ b/packages/freetype/freetype-2.3.0/no-hardcode.patch
@@ -0,0 +1,11 @@
+--- freetype-2.2.1/builds/unix/freetype-config.in.orig 2006-07-10 10:51:47.000000000 +0100
++++ freetype-2.2.1/builds/unix/freetype-config.in 2006-07-10 10:52:27.000000000 +0100
+@@ -16,7 +16,7 @@
+ libdir=@libdir@
+ enable_shared=@enable_shared@
+ wl=@wl@
+-hardcode_libdir_flag_spec='@hardcode_libdir_flag_spec@'
++hardcode_libdir_flag_spec=''
+
+ usage()
+ {
diff --git a/packages/freetype/freetype_2.3.0.bb b/packages/freetype/freetype_2.3.0.bb
new file mode 100644
index 0000000000..3c574486c1
--- /dev/null
+++ b/packages/freetype/freetype_2.3.0.bb
@@ -0,0 +1,38 @@
+DESCRIPTION = "Freetype font rendering library"
+SECTION = "libs"
+LICENSE = "freetype"
+PR = "r0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/freetype/freetype-${PV}.tar.bz2 \
+ file://configure.patch;patch=1 \
+ file://no-hardcode.patch;patch=1"
+S = "${WORKDIR}/freetype-${PV}"
+
+inherit autotools pkgconfig binconfig
+
+DEFAULT_PREFERENCE = "-1"
+
+LIBTOOL = "${S}/builds/unix/${HOST_SYS}-libtool"
+EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'"
+EXTRA_OECONF = "--without-zlib"
+
+do_configure() {
+ cd builds/unix
+ gnu-configize
+ aclocal -I .
+ autoconf
+ cd ${S}
+ oe_runconf
+}
+
+do_compile_prepend() {
+ ${BUILD_CC} -o objs/apinames src/tools/apinames.c
+}
+
+do_stage() {
+ autotools_stage_includes
+ oe_libinstall -so -a -C objs libfreetype ${STAGING_LIBDIR}
+}
+
+FILES_${PN} = "${libdir}/lib*.so.*"
+FILES_${PN}-dev += "${bindir}"