aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorHenning Heinold <heinold@inf.fu-berlin.de>2009-12-23 20:58:45 +0100
committerHenning Heinold <heinold@inf.fu-berlin.de>2009-12-23 21:01:38 +0100
commit8d458fbbbd76325a59de9c1dcf8422b8e172a509 (patch)
treee2870927e8f83234a0ef7d7ebaa2e2061771f420 /recipes
parentc0f36e0f455f077bd3c41d9be07f70a15107ac67 (diff)
downloadopenembedded-8d458fbbbd76325a59de9c1dcf8422b8e172a509.tar.gz
libxft: fix major/minor/patchlevel substitution in Xft.h
* dont use comments after your #undef settings for .in headers * bump PR
Diffstat (limited to 'recipes')
-rw-r--r--recipes/xorg-lib/libxft-2.1.14/autotools.patch54
-rw-r--r--recipes/xorg-lib/libxft_2.1.14.bb4
2 files changed, 57 insertions, 1 deletions
diff --git a/recipes/xorg-lib/libxft-2.1.14/autotools.patch b/recipes/xorg-lib/libxft-2.1.14/autotools.patch
new file mode 100644
index 0000000000..62f44428ad
--- /dev/null
+++ b/recipes/xorg-lib/libxft-2.1.14/autotools.patch
@@ -0,0 +1,54 @@
+Index: libXft-2.1.14/configure.ac
+===================================================================
+--- libXft-2.1.14.orig/configure.ac 2009-10-10 01:44:49.000000000 +0200
++++ libXft-2.1.14/configure.ac 2009-12-23 20:56:25.759695121 +0100
+@@ -37,26 +37,14 @@
+ # Require xorg-macros: XORG_DEFAULT_OPTIONS
+ m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.3 or later before running autoconf/autogen])])
+ XORG_MACROS_VERSION(1.3)
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS([config.h])
++AC_CONFIG_HEADERS([include/X11/Xft/Xft.h])
+
+ # checks for progs
+ AC_PROG_CC
+ AC_PROG_LIBTOOL
+ XORG_DEFAULT_OPTIONS
+
+-# Set library version for Xft.h from package version set in AC_INIT
+-# copied from PACKAGE_VERSION_* settings in XORG_VERSION
+-AC_CONFIG_HEADERS([include/X11/Xft/Xft.h])
+-AC_DEFINE_UNQUOTED([XFT_MAJOR],
+- [`echo $PACKAGE_VERSION | cut -d . -f 1`],
+- [Major version of Xft])
+-AC_DEFINE_UNQUOTED([XFT_MINOR],
+- [`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`],
+- [Minor version of Xft])
+-AC_DEFINE_UNQUOTED([XFT_REVISION],
+- [`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`],
+- [Micro revision of Xft])
+-
+ #
+ # Check for Xrender
+ #
+Index: libXft-2.1.14/include/X11/Xft/Xft.h.in
+===================================================================
+--- libXft-2.1.14.orig/include/X11/Xft/Xft.h.in 2009-10-06 09:36:40.000000000 +0200
++++ libXft-2.1.14/include/X11/Xft/Xft.h.in 2009-12-23 20:55:52.063859518 +0100
+@@ -27,11 +27,12 @@
+ * Current Xft version number, set from version in the Xft configure.ac file.
+ */
+
+-#undef XFT_MAJOR /* Will be substituted by configure */
+-#undef XFT_MINOR /* Will be substituted by configure */
+-#undef XFT_REVISION /* Will be substituted by configure */
++/* Will be substituted by configure */
++#undef PACKAGE_VERSION_MAJOR
++#undef PACKAGE_VERSION_MINOR
++#undef PACKAGE_VERSION_PATCHLEVEL
+
+-#define XFT_VERSION ((XFT_MAJOR * 10000) + (XFT_MINOR * 100) + (XFT_REVISION))
++#define XFT_VERSION ((PACKAGE_VERSION_MAJOR * 10000) + (PACKAGE_VERSION_MINOR * 100) + (PACKAGE_VERSION_PATCHLEVEL))
+ #define XftVersion XFT_VERSION
+
+ #include <stdarg.h>
diff --git a/recipes/xorg-lib/libxft_2.1.14.bb b/recipes/xorg-lib/libxft_2.1.14.bb
index 84d0cc2cbe..fd047c8807 100644
--- a/recipes/xorg-lib/libxft_2.1.14.bb
+++ b/recipes/xorg-lib/libxft_2.1.14.bb
@@ -3,9 +3,11 @@ require xorg-lib-common.inc
DESCRIPTION = "FreeType-based font drawing library for X"
DEPENDS += "libxrender freetype fontconfig"
PROVIDES = "xft"
-PR = "r0"
+PR = "r1"
PE = "1"
+SRC_URI += "file://autotools.patch;patch=1"
+
XORG_PN = "libXft"
python do_package() {