libxslt: Remove Koen's gross hack and replace with a proper patch
authorRichard Purdie <rpurdie@rpsys.net>
Wed, 19 Mar 2008 17:07:56 +0000 (17:07 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Wed, 19 Mar 2008 17:07:56 +0000 (17:07 +0000)
packages/libxslt/files/pkgconfig_fix.patch [new file with mode: 0644]
packages/libxslt/libxslt_1.1.22.bb

diff --git a/packages/libxslt/files/pkgconfig_fix.patch b/packages/libxslt/files/pkgconfig_fix.patch
new file mode 100644 (file)
index 0000000..5e4a38f
--- /dev/null
@@ -0,0 +1,22 @@
+Index: libxslt-1.1.22/libexslt.pc.in
+===================================================================
+--- libxslt-1.1.22.orig/libexslt.pc.in 2008-03-19 16:52:20.000000000 +0000
++++ libxslt-1.1.22/libexslt.pc.in      2008-03-19 16:55:49.000000000 +0000
+@@ -8,5 +8,5 @@
+ Version: @LIBEXSLT_VERSION@
+ Description: EXSLT Extension library
+ Requires: libxml-2.0
+-Libs: @EXSLT_LIBDIR@ @EXSLT_LIBS@
++Libs: -lxslt @EXSLT_LIBDIR@ @M_LIBS@
+ Cflags: @EXSLT_INCLUDEDIR@
+Index: libxslt-1.1.22/libxslt.pc.in
+===================================================================
+--- libxslt-1.1.22.orig/libxslt.pc.in  2008-03-19 16:52:20.000000000 +0000
++++ libxslt-1.1.22/libxslt.pc.in       2008-03-19 16:55:38.000000000 +0000
+@@ -8,5 +8,5 @@
+ Version: @VERSION@
+ Description: XSLT library version 2.
+ Requires: libxml-2.0
+-Libs: @XSLT_LIBDIR@ @XSLT_LIBS@
++Libs: -lxslt @XSLT_LIBDIR@ @M_LIBS@
+ Cflags: @XSLT_INCLUDEDIR@
index 53348be..86fe70d 100644 (file)
@@ -3,21 +3,16 @@ SECTION = "libs"
 PRIORITY = "optional"
 DEPENDS = "libxml2 (>=2.6.27)"
 LICENSE = "MIT"
+PR = "r1"
 
-SRC_URI = "ftp://xmlsoft.org/libxml2/libxslt-${PV}.tar.gz"
+SRC_URI = "ftp://xmlsoft.org/libxml2/libxslt-${PV}.tar.gz \
+           file://pkgconfig_fix.patch;patch=1"
 S = "${WORKDIR}/libxslt-${PV}"
 
 inherit autotools pkgconfig
 
 EXTRA_OECONF = "--without-python --without-debug --without-mem-debug --without-crypto"
 
-# Something is wrong inside configure.ac, so we need to resort to sed in this stage :(
-# Koen - 20080305
-do_compile_append() {
-       sed -i -e s:-L${STAGING_LIBDIR}::g  libexslt.pc
-       sed -i -e s:-L${STAGING_LIBDIR}::g  libxslt.pc
-} 
-
 do_stage () {
        autotools_stage_all
 }