packages/libcroco: Fix generation of libcroco*.pc to not include /usr/include
authorHolger Freyther <zecke@selfish.org>
Fri, 19 May 2006 20:31:50 +0000 (20:31 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 19 May 2006 20:31:50 +0000 (20:31 +0000)
   Change autofoo to not put /usr/include into the CFlags, same
   applies to the library flags.
   GNU master phil crafted this patch - which I'm not able to
   understand...

packages/libcroco/files/.mtn2git_empty [new file with mode: 0644]
packages/libcroco/files/croco.patch [new file with mode: 0644]
packages/libcroco/libcroco_0.6.0.bb
packages/libcroco/libcroco_0.6.1.bb

diff --git a/packages/libcroco/files/.mtn2git_empty b/packages/libcroco/files/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/libcroco/files/croco.patch b/packages/libcroco/files/croco.patch
new file mode 100644 (file)
index 0000000..572f9de
--- /dev/null
@@ -0,0 +1,13 @@
+--- opie/configure.in.old      2006-05-19 20:57:30.000000000 +0100
++++ opie/configure.in  2006-05-19 20:57:56.000000000 +0100
+@@ -131,8 +131,8 @@
+ dnl Define the CROCO_LIBS and CROCO_CFLAGS variables. These will be used
+ dnl by client application to know where to find croco include files and libs.
+ dnl
+-CROCO_LIBS="-L${libdir} -lcroco-$LIBCROCO_MAJOR_VERSION.$LIBCROCO_MINOR_VERSION"
+-CROCO_CFLAGS="-I${includedir}/libcroco-$LIBCROCO_MAJOR_VERSION.$LIBCROCO_MINOR_VERSION"
++CROCO_LIBS='-L${libdir}'" -lcroco-$LIBCROCO_MAJOR_VERSION.$LIBCROCO_MINOR_VERSION"
++CROCO_CFLAGS='-I${includedir}'"/libcroco-$LIBCROCO_MAJOR_VERSION.$LIBCROCO_MINOR_VERSION"
+ AC_SUBST(LIBXML2_LIBS)
+ AC_SUBST(LIBXML2_CFLAGS)
index bbed9e4..ead05af 100644 (file)
@@ -7,6 +7,8 @@ PR = "r1"
 
 inherit autotools pkgconfig gnome
 
+SRC_URI_append = " file://croco.patch;patch=1 "
+
 do_stage() {
        install -d ${STAGING_LIBDIR}
        install -d ${STAGING_INCDIR}/libcroco
index d92987a..99bd631 100644 (file)
@@ -7,6 +7,8 @@ PR = "r1"
 
 inherit autotools pkgconfig gnome
 
+SRC_URI_append = " file://croco.patch;patch=1 "
+
 do_stage() {
         install -d ${STAGING_LIBDIR}
         install -d ${STAGING_INCDIR}/libcroco