libsdl-qpe_1.2.9.bb: Add patch to not include asm/page.h
authorKhem Raj <raj.khem@gmail.com>
Wed, 15 Sep 2010 19:35:18 +0000 (12:35 -0700)
committerKhem Raj <raj.khem@gmail.com>
Wed, 15 Sep 2010 19:35:18 +0000 (12:35 -0700)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/libsdl/libsdl-qpe-1.2.9/asm_page_h.patch [new file with mode: 0644]
recipes/libsdl/libsdl-qpe_1.2.9.bb

diff --git a/recipes/libsdl/libsdl-qpe-1.2.9/asm_page_h.patch b/recipes/libsdl/libsdl-qpe-1.2.9/asm_page_h.patch
new file mode 100644 (file)
index 0000000..6e532bc
--- /dev/null
@@ -0,0 +1,48 @@
+Index: SDL-1.2.9/src/video/XFree86/Xxf86dga/XF86DGA.c
+===================================================================
+--- SDL-1.2.9.orig/src/video/XFree86/Xxf86dga/XF86DGA.c        2002-03-05 11:55:31.000000000 -0800
++++ SDL-1.2.9/src/video/XFree86/Xxf86dga/XF86DGA.c     2010-09-15 12:32:47.485210000 -0700
+@@ -18,7 +18,6 @@ Copyright (c) 1995,1996  The XFree86 Pro
+ #define HAS_MMAP_ANON
+ #include <sys/types.h>
+ #include <sys/mman.h>
+-#include <asm/page.h>   /* PAGE_SIZE */
+ #define HAS_SC_PAGESIZE /* _SC_PAGESIZE may be an enum for Linux */
+ #define HAS_GETPAGESIZE
+ #endif /* linux */
+Index: SDL-1.2.9/src/video/fbcon/SDL_fbvideo.c
+===================================================================
+--- SDL-1.2.9.orig/src/video/fbcon/SDL_fbvideo.c       2010-09-15 12:31:45.000000000 -0700
++++ SDL-1.2.9/src/video/fbcon/SDL_fbvideo.c    2010-09-15 12:33:01.955210000 -0700
+@@ -35,7 +35,6 @@ static char rcsid =
+ #include <unistd.h>
+ #include <sys/ioctl.h>
+ #include <sys/mman.h>
+-#include <asm/page.h>         /* For definition of PAGE_SIZE */
+ #include "SDL.h"
+ #include "SDL_error.h"
+Index: SDL-1.2.9/src/video/ps2gs/SDL_gsyuv.c
+===================================================================
+--- SDL-1.2.9.orig/src/video/ps2gs/SDL_gsyuv.c 2002-11-17 10:56:50.000000000 -0800
++++ SDL-1.2.9/src/video/ps2gs/SDL_gsyuv.c      2010-09-15 12:32:40.695210000 -0700
+@@ -33,7 +33,6 @@ static char rcsid =
+ #include <unistd.h>
+ #include <sys/ioctl.h>
+ #include <sys/mman.h>
+-#include <asm/page.h>         /* For definition of PAGE_SIZE */
+ #include "SDL_error.h"
+ #include "SDL_video.h"
+Index: SDL-1.2.9/src/video/qtopia/SDL_sysvideo.cc
+===================================================================
+--- SDL-1.2.9.orig/src/video/qtopia/SDL_sysvideo.cc    2010-09-15 12:31:45.000000000 -0700
++++ SDL-1.2.9/src/video/qtopia/SDL_sysvideo.cc 2010-09-15 12:32:54.785210001 -0700
+@@ -40,7 +40,6 @@ static char rcsid =
+ #include <sys/wait.h>
+ #include <linux/fb.h>
+ #include <sys/mman.h>
+-#include <asm/page.h> 
+ #include <qapplication.h>
+ #include <qpe/qpeapplication.h>
index a9e3883..2cb6dd6 100644 (file)
@@ -1,6 +1,6 @@
 require libsdl.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 SECTION = "opie/libs"
 DEPENDS = "virtual/libqpe1 libopie2"
@@ -17,6 +17,7 @@ SRC_URI += "\
   file://no-PAGE_SIZE.patch \
   file://fix_Makefile.am.patch \
   file://fix_configure.in.patch \
+  file://asm_page_h.patch \
 "
 
 EXTRA_OECONF = "--disable-static --disable-debug --enable-cdrom --enable-threads --enable-timers --enable-endian \