Skip to contentSkip to conversation

++dfb: Add a patch to allow compilation with DirectFB 1.4.

PATCH New David Kozub 1 participant 1 message Jul 14, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 ++dfb: Add a patch to allow compilation with DirectFB 1.4.

---
 recipes/directfb/++dfb/dfb-api-change.patch |   13 +++++++++++++
 recipes/directfb/++dfb_1.0.0.bb             |    4 +++-
 2 files changed, 16 insertions(+), 1 deletions(-)
 create mode 100644 recipes/directfb/++dfb/dfb-api-change.patch
recipes/directfb/++dfb/dfb-api-change.patch new file +13 -0
new file mode 100644
index 0000000..bec4e4c
@@ -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
recipes/directfb/++dfb_1.0.0.bb +3 -1
index e25ca78..412edb9 100644
@@ -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"
 
Signature · 1 line
1.7.1