From 581e1ac1590186d0032e54ea8463fe6567e2c308 Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Sat, 17 Dec 2005 13:53:53 +0000 Subject: 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) --- .../dfbsee/files/dfbsee-0.7.4-direcfb-0.9.24.patch | 21 +++++++ media-video/dfbsee/files/dfbsee-0.7.4-gcc4.patch | 65 ++++++++++++++++++++++ media-video/dfbsee/files/digest-dfbsee-0.7.4-r1 | 1 + 3 files changed, 87 insertions(+) create mode 100644 media-video/dfbsee/files/dfbsee-0.7.4-direcfb-0.9.24.patch create mode 100644 media-video/dfbsee/files/dfbsee-0.7.4-gcc4.patch create mode 100644 media-video/dfbsee/files/digest-dfbsee-0.7.4-r1 (limited to 'media-video/dfbsee/files') 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 -- cgit v1.2.3-65-gdbad