summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-12-17 13:53:53 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-12-17 13:53:53 +0000
commit581e1ac1590186d0032e54ea8463fe6567e2c308 (patch)
tree19f4dfeb8308eb2677536498d0dea8623a77bc90 /media-video/dfbsee/files
parentAdded ~ppc64 (diff)
downloadgentoo-2-581e1ac1590186d0032e54ea8463fe6567e2c308.tar.gz
gentoo-2-581e1ac1590186d0032e54ea8463fe6567e2c308.tar.bz2
gentoo-2-581e1ac1590186d0032e54ea8463fe6567e2c308.zip
Added patches to build with recent directfb versions and with GCC4. Thanks to Richard Juckes in bugs #114842 and #114843.
(Portage version: 2.1_pre1)
Diffstat (limited to 'media-video/dfbsee/files')
-rw-r--r--media-video/dfbsee/files/dfbsee-0.7.4-direcfb-0.9.24.patch21
-rw-r--r--media-video/dfbsee/files/dfbsee-0.7.4-gcc4.patch65
-rw-r--r--media-video/dfbsee/files/digest-dfbsee-0.7.4-r11
3 files changed, 87 insertions, 0 deletions
diff --git a/media-video/dfbsee/files/dfbsee-0.7.4-direcfb-0.9.24.patch b/media-video/dfbsee/files/dfbsee-0.7.4-direcfb-0.9.24.patch
new file mode 100644
index 000000000000..8a8d0cf4d3fa
--- /dev/null
+++ b/media-video/dfbsee/files/dfbsee-0.7.4-direcfb-0.9.24.patch
@@ -0,0 +1,21 @@
+diff -Nru orig-DFBSee-0.7.4/src/main.c DFBSee-0.7.4/src/main.c
+--- orig-DFBSee-0.7.4/src/main.c 2005-12-05 15:12:38.000000000 +0800
++++ DFBSee-0.7.4/src/main.c 2005-12-05 15:14:14.000000000 +0800
+@@ -53,7 +53,7 @@
+ main (int argc,
+ char **argv)
+ {
+- DFBCardCapabilities caps;
++ DFBGraphicsDeviceDescription caps;
+ DFBSurfaceDescription dsc;
+ IDirectFBEventBuffer *buffer;
+ IDirectFBSurface *image_area;
+@@ -78,7 +78,7 @@
+ /* create the super interface */
+ DFBCHECK (DirectFBCreate (&dfb));
+
+- dfb->GetCardCapabilities (dfb, &caps);
++ dfb->GetDeviceDescription (dfb, &caps);
+ hw_stretchblit = caps.acceleration_mask & DFXL_STRETCHBLIT;
+
+ dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN);
diff --git a/media-video/dfbsee/files/dfbsee-0.7.4-gcc4.patch b/media-video/dfbsee/files/dfbsee-0.7.4-gcc4.patch
new file mode 100644
index 000000000000..5f17937b85e3
--- /dev/null
+++ b/media-video/dfbsee/files/dfbsee-0.7.4-gcc4.patch
@@ -0,0 +1,65 @@
+diff -Nru orig-DFBSee-0.7.4/src/rotate.c DFBSee-0.7.4/src/rotate.c
+--- orig-DFBSee-0.7.4/src/rotate.c 2005-12-05 15:37:52.000000000 +0800
++++ DFBSee-0.7.4/src/rotate.c 2005-12-05 15:38:10.000000000 +0800
+@@ -43,9 +43,9 @@
+ {\
+ *d = *s;\
+ s++;\
+- (__u8*)d += dest_pitch;\
++ d = ((void*) d) + dest_pitch;\
+ }\
+- (__u8*)src += src_pitch;\
++ src = ((void*) src) + src_pitch;\
+ }\
+ }\
+
+@@ -53,7 +53,7 @@
+ {\
+ type d;\
+ type s;\
+- (__u8 *) dest += (height - 1) * dest_pitch;\
++ dest = ((void*) dest) + (height - 1) * dest_pitch;\
+ for (w = 0; w < width; w++)\
+ {\
+ h = height;\
+@@ -63,9 +63,9 @@
+ {\
+ *d = *s;\
+ s++;\
+- (__u8*)d -= dest_pitch;\
++ d = ((void*) d) - dest_pitch;\
+ }\
+- (__u8*)src += src_pitch;\
++ src = ((void*) src) + src_pitch;\
+ }\
+ }\
+
+@@ -73,7 +73,7 @@
+ {\
+ type d;\
+ type s;\
+- (__u8 *) dest += (height - 1) * dest_pitch;\
++ dest = ((void*) dest) + (height - 1) * dest_pitch;\
+ while (--height)\
+ {\
+ d = (type) dest + width - 1;\
+@@ -85,8 +85,8 @@
+ s++;\
+ d--;\
+ }\
+- (__u8*)src += src_pitch;\
+- (__u8*)dest -= dest_pitch;\
++ src = ((void*) src) - src_pitch;\
++ dest = ((void*) dest) + dest_pitch;\
+ }\
+ }\
+
+@@ -172,7 +172,7 @@
+ source->Lock (source, DSLF_READ, &src, &src_pitch);
+ destination->Lock (destination, DSLF_READ, &dest, &dest_pitch);
+
+- (__u8 *) dest += dest_pitch * y + DFB_BYTES_PER_PIXEL (pixelformat) * x;
++ dest += dest_pitch * y + DFB_BYTES_PER_PIXEL (pixelformat) * x;
+
+ rotate (dest, dest_pitch,
+ src, src_pitch, width, height, DFB_BYTES_PER_PIXEL (pixelformat),
diff --git a/media-video/dfbsee/files/digest-dfbsee-0.7.4-r1 b/media-video/dfbsee/files/digest-dfbsee-0.7.4-r1
new file mode 100644
index 000000000000..2bb84de12561
--- /dev/null
+++ b/media-video/dfbsee/files/digest-dfbsee-0.7.4-r1
@@ -0,0 +1 @@
+MD5 3320a976457d3b3e9eaef530fdf56b37 DFBSee-0.7.4.tar.gz 147346