direcfb 1.0.0 add patch to fix include files for depending programs
authorMichael Lauer <mickey@vanille-media.de>
Mon, 18 Jun 2007 10:43:43 +0000 (10:43 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Mon, 18 Jun 2007 10:43:43 +0000 (10:43 +0000)
packages/directfb/directfb_1.0.0.bb
packages/directfb/files/fix-includes.patch [new file with mode: 0644]

index cbeede9..caa8dbe 100644 (file)
@@ -7,21 +7,22 @@ SECTION = "libs"
 LICENSE = "LGPL"
 HOMEPAGE = "http://directfb.org"
 DEPENDS = "jpeg libpng freetype zlib tslib"
-PR = "r3"
+PR = "r4"
 RV = "1.0-0"
 
 SRC_URI = "http://www.directfb.org/download/DirectFB/DirectFB-${PV}.tar.gz \
            file://fix-pkgconfig-specs.patch;patch=1 \
-          file://mkdfiff.patch;patch=1 \
-          file://getpagesize.patch;patch=1"
-
+           file://mkdfiff.patch;patch=1 \
+           file://getpagesize.patch;patch=1 \
+           file://fix-includes.patch;patch=1"
 S = "${WORKDIR}/DirectFB-1.0.0"
 
 LDFLAGS_append =" -lts -lm"
 
 inherit autotools pkgconfig
 
-EXTRA_OECONF = "--with-gfxdrivers=none \
+EXTRA_OECONF = "\
+               --with-gfxdrivers=none \
                --enable-libmpeg3=no \
                --enable-freetype=yes \
                --enable-sdl=no \
diff --git a/packages/directfb/files/fix-includes.patch b/packages/directfb/files/fix-includes.patch
new file mode 100644 (file)
index 0000000..0c40cdb
--- /dev/null
@@ -0,0 +1,24 @@
+#
+# pkgconfig points to STAGING_INCDIR, hence
+# we need to append a directfb/ to make it
+# find its header files
+#
+# Signed-Off: mickey@openmoko.org
+#
+Index: DirectFB-1.0.0/include/directfb.h
+===================================================================
+--- DirectFB-1.0.0.orig/include/directfb.h
++++ DirectFB-1.0.0/include/directfb.h
+@@ -29,10 +29,10 @@
+ #ifndef __DIRECTFB_H__
+ #define __DIRECTFB_H__
+-#include <dfb_types.h>
++#include <directfb/dfb_types.h>
+ #include <sys/time.h> /* struct timeval */
+-#include <directfb_keyboard.h>
++#include <directfb/directfb_keyboard.h>
+ #ifdef __cplusplus
+ extern "C"