[oe-commits] Henning Heinold : libxft: fix major/minor/patchlevel substitution in Xft.h
git version control
git at git.openembedded.org
Sun Dec 27 17:45:07 UTC 2009
Module: openembedded.git
Branch: martin_jansa/srcpv
Commit: 8d458fbbbd76325a59de9c1dcf8422b8e172a509
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8d458fbbbd76325a59de9c1dcf8422b8e172a509
Author: Henning Heinold <heinold at inf.fu-berlin.de>
Date: Wed Dec 23 20:58:45 2009 +0100
libxft: fix major/minor/patchlevel substitution in Xft.h
* dont use comments after your #undef settings for .in headers
* bump PR
---
recipes/xorg-lib/libxft-2.1.14/autotools.patch | 54 ++++++++++++++++++++++++
recipes/xorg-lib/libxft_2.1.14.bb | 4 +-
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 0000000..62f4442
--- /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 84d0cc2..fd047c8 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() {
More information about the Openembedded-commits
mailing list