aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/directfb
diff options
context:
space:
mode:
authorDavid Kozub <zub@linux.fjfi.cvut.cz>2010-07-14 11:20:52 +0000
committerKhem Raj <raj.khem@gmail.com>2010-10-20 18:30:27 -0700
commitc6c2e5dcadc2a723a92b336f247ee41c3d2f0a5d (patch)
tree7d6532ae8fced4b4532f6bc6611f51e28151fe0d /recipes/directfb
parent5872f47e434eb43d8d443f00c8bd8af4f2348d76 (diff)
downloadopenembedded-c6c2e5dcadc2a723a92b336f247ee41c3d2f0a5d.tar.gz
++dfb: Add a patch to allow compilation with DirectFB 1.4.
Signed-off-by: David Kozub <zub@linux.fjfi.cvut.cz> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/directfb')
-rw-r--r--recipes/directfb/++dfb/dfb-api-change.patch13
-rw-r--r--recipes/directfb/++dfb_1.0.0.bb4
2 files changed, 16 insertions, 1 deletions
diff --git a/recipes/directfb/++dfb/dfb-api-change.patch b/recipes/directfb/++dfb/dfb-api-change.patch
new file mode 100644
index 0000000000..bec4e4cd85
--- /dev/null
+++ b/recipes/directfb/++dfb/dfb-api-change.patch
@@ -0,0 +1,13 @@
+diff -ruN ++DFB-1.0.0-orig/include/++dfb.h ++DFB-1.0.0/include/++dfb.h
+--- ++DFB-1.0.0-orig/include/++dfb.h 2007-02-02 23:48:36.000000000 +0100
++++ ++DFB-1.0.0/include/++dfb.h 2010-06-09 11:53:07.000000000 +0200
+@@ -46,6 +46,9 @@
+
+ #include <directfb.h>
+
++// Work around old lib expectations.
++typedef u8 __u8;
++
+ #undef IDirectFB
+ #undef IDirectFBScreen
+ #undef IDirectFBDisplayLayer
diff --git a/recipes/directfb/++dfb_1.0.0.bb b/recipes/directfb/++dfb_1.0.0.bb
index 6629c96670..40413b95d9 100644
--- a/recipes/directfb/++dfb_1.0.0.bb
+++ b/recipes/directfb/++dfb_1.0.0.bb
@@ -4,7 +4,9 @@ SECTION = "libs"
DEPENDS = "directfb"
LICENSE = "LGPL"
-SRC_URI = "http://www.directfb.org/downloads/Extras/++DFB-${PV}.tar.gz"
+PR = "r1"
+SRC_URI = "http://www.directfb.org/downloads/Extras/++DFB-${PV}.tar.gz \
+ file://dfb-api-change.patch"
S = "${WORKDIR}/++DFB-${PV}"
RV = "0.9-25"