diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/snes9x | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/snes9x')
-rw-r--r-- | recipes/snes9x/64bit.patch | 110 | ||||
-rw-r--r-- | recipes/snes9x/snes9x-sdl-qpe_1.39.bb | 29 | ||||
-rw-r--r-- | recipes/snes9x/snes9x-sdl/compile.patch | 275 | ||||
-rw-r--r-- | recipes/snes9x/snes9x-sdl/gcc-4.1.patch | 28 | ||||
-rw-r--r-- | recipes/snes9x/snes9x-sdl_1.39.bb | 24 | ||||
-rw-r--r-- | recipes/snes9x/snes9x/makefile.patch | 39 | ||||
-rw-r--r-- | recipes/snes9x/snes9x/private.patch | 10 | ||||
-rw-r--r-- | recipes/snes9x/snes9x_1.43-WIP1.bb | 27 |
8 files changed, 542 insertions, 0 deletions
diff --git a/recipes/snes9x/64bit.patch b/recipes/snes9x/64bit.patch new file mode 100644 index 0000000000..a8388de0a2 --- /dev/null +++ b/recipes/snes9x/64bit.patch @@ -0,0 +1,110 @@ +--- s/offsets.cpp~ 2004-07-11 22:50:59.000000000 +0100 ++++ s/offsets.cpp 2008-07-27 10:28:40.000000000 +0100 +@@ -100,30 +100,30 @@ + #endif + + #define OFFSET(N,F) \ +-fprintf (S9xSTREAM, "#define " #N " CPU + %d\n", (int) &((struct SCPUState *) 0)->F); ++fprintf (S9xSTREAM, "#define " #N " CPU + %d\n", &((struct SCPUState *) 0)->F); + #define OFFSET2(N,F) \ +-fprintf (S9xSTREAM, "#define " #N " Registers + %d\n", (int) &((struct SRegisters *) 0)->F); ++fprintf (S9xSTREAM, "#define " #N " Registers + %d\n", &((struct SRegisters *) 0)->F); + #define OFFSET3(F) \ +-fprintf (S9xSTREAM, "#define " #F " Memory + %d\n", (int) &((class CMemory *) 0)->F); ++fprintf (S9xSTREAM, "#define " #F " Memory + %d\n", &((class CMemory *) 0)->F); + #define OFFSET4(N,F) \ +-fprintf (S9xSTREAM, "#define " #N " APU + %d\n", (int) &((struct SAPU *) 0)->F); ++fprintf (S9xSTREAM, "#define " #N " APU + %d\n", &((struct SAPU *) 0)->F); + #define OFFSET5(N,F) \ +-fprintf (S9xSTREAM, "#define " #N " IAPU + %d\n", (int) &((struct SIAPU *) 0)->F); ++fprintf (S9xSTREAM, "#define " #N " IAPU + %d\n", &((struct SIAPU *) 0)->F); + #define OFFSET6(N,F) \ +-fprintf (S9xSTREAM, "#define " #N " ICPU + %d\n", (int) &((struct SICPU *) 0)->F); ++fprintf (S9xSTREAM, "#define " #N " ICPU + %d\n", &((struct SICPU *) 0)->F); + #define OFFSET7(N,F) \ +-fprintf (S9xSTREAM, "#define " #N " Settings + %d\n", (int) &((struct SSettings *) 0)->F); ++fprintf (S9xSTREAM, "#define " #N " Settings + %d\n", &((struct SSettings *) 0)->F); + #define OFFSET8(N, F) \ +-fprintf (S9xSTREAM, "#define " #N " APURegisters + %d\n", (int) &((struct SAPURegisters *) 0)->F); ++fprintf (S9xSTREAM, "#define " #N " APURegisters + %d\n", &((struct SAPURegisters *) 0)->F); + + #define OFFSET9(N, F) \ +-fprintf (S9xSTREAM, "#define " #N " PPU + %d\n", (int) &((struct SPPU *) 0)->F); ++fprintf (S9xSTREAM, "#define " #N " PPU + %d\n", &((struct SPPU *) 0)->F); + #define OFFSET10(N, F) \ +-fprintf (S9xSTREAM, "#define " #N " IPPU + %d\n", (int) &((struct InternalPPU *) 0)->F); ++fprintf (S9xSTREAM, "#define " #N " IPPU + %d\n", &((struct InternalPPU *) 0)->F); + #define OFFSET11(N, F) \ +-fprintf (S9xSTREAM, "#define " #N " SA1 + %d\n", (int) &((struct SSA1 *) 0)->F); ++fprintf (S9xSTREAM, "#define " #N " SA1 + %d\n", &((struct SSA1 *) 0)->F); + #define OFFSET12(N, F) \ +-fprintf (S9xSTREAM, "#define " #N " SA1Registers + %d\n", (int) &((struct SSA1Registers *) 0)->F); ++fprintf (S9xSTREAM, "#define " #N " SA1Registers + %d\n", &((struct SSA1Registers *) 0)->F); + + int main (int /*argc*/, char ** /*argv*/) + { +--- s/getset.h~ 2004-07-11 22:50:58.000000000 +0100 ++++ s/getset.h 2008-07-27 10:30:38.000000000 +0100 +@@ -120,7 +120,7 @@ + return (*(GetAddress + (Address & 0xffff))); + } + +- switch ((int) GetAddress) ++ switch ((long)GetAddress) + { + case CMemory::MAP_PPU: + return (S9xGetPPU (Address & 0xffff)); +@@ -225,7 +225,7 @@ + #endif + } + +- switch ((int) GetAddress) ++ switch ((long) GetAddress) + { + case CMemory::MAP_PPU: + return (S9xGetPPU (Address & 0xffff) | +@@ -349,7 +349,7 @@ + return; + } + +- switch ((int) SetAddress) ++ switch ((long) SetAddress) + { + case CMemory::MAP_PPU: + S9xSetPPU (Byte, Address & 0xffff); +@@ -482,7 +482,7 @@ + return; + } + +- switch ((int) SetAddress) ++ switch ((long) SetAddress) + { + case CMemory::MAP_PPU: + S9xSetPPU ((uint8) Word, Address & 0xffff); +@@ -603,7 +603,7 @@ + { + return s7r.bank50; + } +- switch ((int) GetAddress) ++ switch ((long) GetAddress) + { + case CMemory::MAP_SPC7110_DRAM: + #ifdef SPC7110_DEBUG +@@ -669,7 +669,7 @@ + if(Settings.SPC7110&&((Address&0x7FFFFF)==0x4800)) + return s7r.bank50; + +- switch ((int) GetAddress) ++ switch ((long) GetAddress) + { + case CMemory::MAP_SPC7110_DRAM: + #ifdef SPC7110_DEBUG +@@ -729,7 +729,7 @@ + return; + } + +- switch ((int) GetAddress) ++ switch ((long) GetAddress) + { + case CMemory::MAP_PPU: + CPU.PCBase = Memory.FillRAM; diff --git a/recipes/snes9x/snes9x-sdl-qpe_1.39.bb b/recipes/snes9x/snes9x-sdl-qpe_1.39.bb new file mode 100644 index 0000000000..00e9fa0791 --- /dev/null +++ b/recipes/snes9x/snes9x-sdl-qpe_1.39.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "Super Nintendo Emulator based on SDL, QtE Palmtop Environments Edition" +SECTION = "opie/games" +PRIORITY = "optional" +DEPENDS = "libsdl-qpe" +LICENSE = "snes9x" +PR = "r4" + +SRC_URI = "http://www.vanille.de/mirror/snes9x-sdl-${PV}.tar.bz2 \ + file://compile.patch;patch=1" +S = "${WORKDIR}/snes9x-sdl-${PV}" + +FILESPATH = "${FILE_DIRNAME}/${PN}-${PV}:${FILE_DIRNAME}/snes9x-sdl-${PV}:${FILE_DIRNAME}/snes9x-sdl:${FILE_DIRNAME}/files:${FILE_DIRNAME}" + +inherit qmake_base + +QT_LIBRARY = '${@base_conditional("PALMTOP_USE_MULTITHREADED_QT", "yes", "qte-mt", "qte",d)}' + +do_compile() { + oe_runmake CC="${CC}" CCC="${CXX}" \ + INCLUDES="-I${STAGING_INCDIR} `sdl-config --cflags`" \ + LDLIBS="`sdl-config --libs` -L${OE_QMAKE_LIBDIR_QT} -Wl,-rpath-link,${STAGING_LIBDIR} -lqpe -l${QT_LIBRARY}" +} + +do_install() { + install -d ${D}${palmtopdir}/bin/ + install -m 0755 snes9x ${D}${palmtopdir}/bin/snes9x +} + +FILES_${PN} = "${palmtopdir}/bin/snes9x" diff --git a/recipes/snes9x/snes9x-sdl/compile.patch b/recipes/snes9x/snes9x-sdl/compile.patch new file mode 100644 index 0000000000..b41a30f30e --- /dev/null +++ b/recipes/snes9x/snes9x-sdl/compile.patch @@ -0,0 +1,275 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- snes9x-sdl-1.39/unix/svga.cpp~compile ++++ snes9x-sdl-1.39/unix/svga.cpp +@@ -48,7 +48,7 @@ + #include <stdlib.h> + #include <signal.h> + +-#include "sdl.h" ++#include <SDL.h> + + #include "snes9x.h" + #include "memmap.h" +--- snes9x-sdl-1.39/unix/unix.cpp~compile ++++ snes9x-sdl-1.39/unix/unix.cpp +@@ -50,7 +50,7 @@ + #include <sys/types.h> + #include <ctype.h> + #include <dirent.h> +-#include <sdl.h> ++#include <SDL.h> + #include "keydef.h" + + #undef USE_THREADS +@@ -189,8 +189,7 @@ + } + + /*#include "cheats.h"*/ +-extern "C" +-int SDL_main (int argc, char **argv) ++int main (int argc, char **argv) + { + if (argc < 2) + S9xUsage (); +--- /dev/null ++++ snes9x-sdl-1.39/unzip/unzipP.h +@@ -0,0 +1,124 @@ ++#ifndef _UNZIPP_H_ ++#define _UNZIPP_H_ ++ ++#include "unzip.h" ++ ++#ifndef local ++#define local static ++#endif ++/* compile with -Dlocal if your debugger can't find static symbols */ ++ ++ ++ ++#if !defined(unix) && !defined(CASESENSITIVITYDEFAULT_YES) && \ ++ !defined(CASESENSITIVITYDEFAULT_NO) ++#define CASESENSITIVITYDEFAULT_NO ++#endif ++ ++ ++#ifndef UNZ_BUFSIZE ++#define UNZ_BUFSIZE (16384) ++#endif ++ ++#ifndef UNZ_MAXFILENAMEINZIP ++#define UNZ_MAXFILENAMEINZIP (256) ++#endif ++ ++#ifndef ALLOC ++#define ALLOC(size) (malloc(size)) ++#endif ++#ifndef TRYFREE ++#define TRYFREE(p) {if (p) free(p);} ++#endif ++ ++#define SIZECENTRALDIRITEM (0x2e) ++#define SIZEZIPLOCALHEADER (0x1e) ++ ++ ++/* I've found an old Unix (a SunOS 4.1.3_U1) without all SEEK_* defined.... */ ++ ++#ifndef SEEK_CUR ++#define SEEK_CUR 1 ++#endif ++ ++#ifndef SEEK_END ++#define SEEK_END 2 ++#endif ++ ++#ifndef SEEK_SET ++#define SEEK_SET 0 ++#endif ++ ++/* unz_file_info_interntal contain internal info about a file in zipfile */ ++typedef struct unz_file_info_internal_s ++{ ++ uLong offset_curfile; /* relative offset of local header 4 ++ * bytes */ ++} unz_file_info_internal; ++ ++ ++/* ++ * file_in_zip_read_info_s contain internal information about a file in ++ * zipfile, when reading and decompress it ++ */ ++typedef struct ++{ ++ char *read_buffer;/* internal buffer for compressed data */ ++ z_stream stream; /* zLib stream structure for inflate */ ++ ++ uLong pos_in_zipfile; /* position in byte on the zipfile, ++ * for fseek */ ++ uLong stream_initialised; /* flag set if stream structure is ++ * initialised */ ++ ++ uLong offset_local_extrafield; /* offset of the local extra ++ * field */ ++ uInt size_local_extrafield; /* size of the local extra ++ * field */ ++ uLong pos_local_extrafield; /* position in the local ++ * extra field in read */ ++ ++ uLong crc32; /* crc32 of all data uncompressed */ ++ uLong crc32_wait; /* crc32 we must obtain after decompress all */ ++ uLong rest_read_compressed; /* number of byte to be ++ * decompressed */ ++ uLong rest_read_uncompressed; /* number of byte to be ++ * obtained after decomp */ ++ FILE *file; /* io structore of the zipfile */ ++ uLong compression_method; /* compression method (0==store) */ ++ uLong byte_before_the_zipfile; /* byte before the zipfile, ++ * (>0 for sfx) */ ++} file_in_zip_read_info_s; ++ ++ ++/* ++ * unz_s contain internal information about the zipfile ++ */ ++typedef struct ++{ ++ FILE *file; /* io structore of the zipfile */ ++ unz_global_info gi; /* public global information */ ++ uLong byte_before_the_zipfile; /* byte before the zipfile, ++ * (>0 for sfx) */ ++ uLong num_file; /* number of the current file in the zipfile */ ++ uLong pos_in_central_dir; /* pos of the current file in the ++ * central dir */ ++ uLong current_file_ok; /* flag about the usability of the ++ * current file */ ++ uLong central_pos;/* position of the beginning of the central ++ * dir */ ++ ++ uLong size_central_dir; /* size of the central directory */ ++ uLong offset_central_dir; /* offset of start of central ++ * directory with respect to the ++ * starting disk number */ ++ ++ unz_file_info cur_file_info; /* public info about the current file ++ * in zip */ ++ unz_file_info_internal cur_file_info_internal; /* private info about it */ ++ file_in_zip_read_info_s *pfile_in_zip_read; /* structure about the ++ * current file if we are ++ * decompressing it */ ++} unz_s; ++ ++#endif +--- snes9x-sdl-1.39/Makefile~compile ++++ snes9x-sdl-1.39/Makefile +@@ -53,12 +53,12 @@ + + ifdef THREAD_SOUND + CPUDEFINES += -DUSE_THREADS +-EXTRALIBS += -lpthread -L/usr/local/lib -lcygipc ++EXTRALIBS += -lpthread -lcygipc + endif + + ifdef GLIDE + GLIDEOBJS = unix/glide.o +-GLIDEDEFINES = -DUSE_GLIDE -I/usr/include/glide ++GLIDEDEFINES = -DUSE_GLIDE + GLIDELIBS = -lglide2x + GLIDEDEPENDS=use_glide + GLIDENO_DEPENDS=no_glide +@@ -82,14 +82,12 @@ + CC = gcc + NASM = nasm + +-INCLUDES=-I/usr/local/include ++INCLUDES= + +-OPTIMISE= -D_ZAURUS -Os -ffast-math -fstrict-aliasing -fomit-frame-pointer -mcpu=strongarm1100 -mtune=strongarm1100 ++OPTIMISE= -D_ZAURUS -Os -ffast-math -fstrict-aliasing -fomit-frame-pointer + CCFLAGS = $(OPTIMISE) \ +--I/opt/Qtopia/include/SDL \ + -I. \ + -Iunzip \ +--Isdl \ + -D__linux \ + -DZLIB \ + -DVAR_CYCLES \ +@@ -114,7 +112,7 @@ + + .SUFFIXES: .o .cpp .c .cc .h .m .i .S .asm .obj + +-LDLIBS = -L/opt/Qtopia/sharp/lib ++LDLIBS= + + ifdef GLIDE + all: offsets gsnes9x +@@ -146,7 +144,7 @@ + $(RM) $(OPENGLNO_DEPENDS) + + snes9x: $(OBJECTS) +- $(CCC) $(INCLUDES) -o $@ $(OBJECTS) $(EXTRALIBS) -L/opt/QtPalmtop/lib/ -lSDL -lSDLmain $(LDLIBS) -lqpe -lqte -lpthread ++ $(CC) $(INCLUDES) -o $@ $(OBJECTS) $(EXTRALIBS) $(LDLIBS) -lz -lpthread + + gsnes9x: $(OBJECTS) unix/x11.o unix/glide.o + $(CCC) $(INCLUDES) -o $@ $(OBJECTS) unix/x11.o unix/glide.o $(LDLIBS) $(GLIDELIBS) -lXext -lX11 -lXxf86dga -lXxf86vm $(EXTRALIBS) -lz -lm +--- snes9x-sdl-1.39/snapshot.cpp~compile ++++ snes9x-sdl-1.39/snapshot.cpp +@@ -671,7 +671,7 @@ + fields [i].type); + } + +- uint8 *block = new uint8 [len]; ++ uint8 *block = (uint8*) malloc(len); + uint8 *ptr = block; + uint16 word; + uint32 dword; +@@ -739,7 +739,7 @@ + } + + FreezeBlock (stream, name, block, len); +- delete block; ++ free(block); + } + + void FreezeBlock (STREAM stream, char *name, uint8 *block, int size) +@@ -767,7 +767,7 @@ + fields [i].type); + } + +- uint8 *block = new uint8 [len]; ++ uint8 *block = (uint8*) malloc(len); + uint8 *ptr = block; + uint16 word; + uint32 dword; +@@ -776,7 +776,7 @@ + + if ((result = UnfreezeBlock (stream, name, block, len)) != SUCCESS) + { +- delete block; ++ free(block); + return (result); + } + +@@ -841,7 +841,7 @@ + } + } + +- delete block; ++ free(block); + return (result); + } + +@@ -865,9 +865,9 @@ + + if (rem) + { +- char *junk = new char [rem]; ++ char *junk = (char*) malloc(rem); + READ_STREAM (junk, rem, stream); +- delete junk; ++ free(junk); + } + + return (SUCCESS); diff --git a/recipes/snes9x/snes9x-sdl/gcc-4.1.patch b/recipes/snes9x/snes9x-sdl/gcc-4.1.patch new file mode 100644 index 0000000000..a63c0519d3 --- /dev/null +++ b/recipes/snes9x/snes9x-sdl/gcc-4.1.patch @@ -0,0 +1,28 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- snes9x-sdl-1.39/dsp1.h~gcc-4.1 ++++ snes9x-sdl-1.39/dsp1.h +@@ -233,8 +233,8 @@ + void S9xResetDSP1 (); + uint8 S9xGetDSP (uint16 Address); + void S9xSetDSP (uint8 Byte, uint16 Address); +-END_EXTERN_C + + extern struct SDSP1 DSP1; ++END_EXTERN_C + + #endif +--- snes9x-sdl-1.39/unix/unix.cpp~gcc-4.1 ++++ snes9x-sdl-1.39/unix/unix.cpp +@@ -1046,7 +1046,7 @@ + { + } + +-static uint8 Buf[MAX_BUFFER_SIZE]; ++static uint8 Buf[MAX_BUFFER_SIZE] __attribute__((aligned(4))); + + #define FIXED_POINT 0x10000 + #define FIXED_POINT_SHIFT 16 diff --git a/recipes/snes9x/snes9x-sdl_1.39.bb b/recipes/snes9x/snes9x-sdl_1.39.bb new file mode 100644 index 0000000000..ea4eb44666 --- /dev/null +++ b/recipes/snes9x/snes9x-sdl_1.39.bb @@ -0,0 +1,24 @@ +DESCRIPTION = "Super Nintendo Emulator based on SDL" +SECTION = "games" +PRIORITY = "optional" +DEPENDS = "virtual/libsdl zlib" +LICENSE = "snes9x" +PR = "r3" + +SRC_URI = "http://www.vanille.de/mirror/snes9x-sdl-${PV}.tar.bz2 \ + file://compile.patch;patch=1 \ + file://gcc-4.1.patch;patch=1" +S = "${WORKDIR}/snes9x-sdl-${PV}" + +do_compile() { + oe_runmake CC="${CC}" CCC="${CXX} -fno-rtti -fno-exceptions" \ + INCLUDES="-I${STAGING_INCDIR} `sdl-config --cflags`" \ + LDLIBS="`sdl-config --libs`" +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 snes9x ${D}${bindir}/snes9x +} + +FILES_${PN} = "${bindir}/snes9x" diff --git a/recipes/snes9x/snes9x/makefile.patch b/recipes/snes9x/snes9x/makefile.patch new file mode 100644 index 0000000000..dc9986453c --- /dev/null +++ b/recipes/snes9x/snes9x/makefile.patch @@ -0,0 +1,39 @@ +--- snes9x-1.43-dev-src/snes9x/Makefile.in.old 2004-10-02 17:34:58.000000000 +0100 ++++ snes9x-1.43-dev-src/snes9x/Makefile.in 2004-10-02 17:42:25.000000000 +0100 +@@ -142,7 +142,7 @@ + #INCLUDES = -I../zlib @XINCLUDES@ + INCLUDES = @XINCLUDES@ + +-OPTIMISE = @OPTIMIZE@ ++OPTIMISE = $(filter-out @OPTIMIZE@,-pedantic) + + #OPTIMISE=-g -fno-exceptions + +@@ -165,7 +165,7 @@ + $(KREEDDEFINES) \ + $(SDD1DEFINES) \ + $(JOYDEFINES) \ +--DNO_INLINE_SET_GET @SYSDEFINES@ ++-DNO_INLINE_SET_GET @SYSDEFINES@ $(OECFLAGS) + + #-DOLD_COLOUR_BLENDING + #-DSOUND +@@ -204,15 +204,15 @@ + #ggisnes9x + #xf86snes9x + +-offsets: offsets.o +- $(CCC) $(INCLUDES) -o $@ offsets.o ++offsets: offsets.cpp ++ $(BUILD_CXX) $(INCLUDES) -o $@ $< + ./offsets >i386/offsets.h + + #../zlib/libz.a: + # cd ../zlib && sh ./configure && make + + snes9x: $(OBJECTS) unix/x11.o $(AIDOOBJS) $(GUIOBJS) +- $(CCC) $(INCLUDES) -o $@ $(OBJECTS) $(AIDOOBJS) $(GLIDEOBJS) $(OPENGLOBJS) unix/x11.o $(GUIOBJS) $(LDLIBS) $(GLIDELIBS) $(OPENGLLIBS) $(GUILIBS) @SYSLIBS@ -lXext -lX11 $(EXTRALIBS) -lm ++ $(CCC) $(INCLUDES) -o $@ $(OBJECTS) $(AIDOOBJS) $(GLIDEOBJS) $(OPENGLOBJS) unix/x11.o $(GUIOBJS) $(OELDFLAGS) $(LDLIBS) $(GLIDELIBS) $(OPENGLLIBS) $(GUILIBS) @SYSLIBS@ -lXext -lX11 $(EXTRALIBS) -lm + + ssnes9x: $(OBJECTS) unix/svga.o + $(CCC) $(INCLUDES) -o $@ $(OBJECTS) $(GLIDEOBJS) unix/svga.o $(LDLIBS) $(GLIDELIBS) -lvga -lvgagl $(EXTRALIBS) -lm diff --git a/recipes/snes9x/snes9x/private.patch b/recipes/snes9x/snes9x/private.patch new file mode 100644 index 0000000000..83808f4c54 --- /dev/null +++ b/recipes/snes9x/snes9x/private.patch @@ -0,0 +1,10 @@ +--- unix/x11.cpp.old 2004-10-03 21:27:10.000000000 +0100 ++++ unix/x11.cpp 2004-10-03 21:29:02.000000000 +0100 +@@ -154,6 +154,7 @@ + #if defined (__cplusplus) || defined (c_plusplus) + #define private c_private + #include <X11/extensions/xf86vmode.h> ++#undef private + #endif + + #define ALL_DEVICE_EVENTS 0 diff --git a/recipes/snes9x/snes9x_1.43-WIP1.bb b/recipes/snes9x/snes9x_1.43-WIP1.bb new file mode 100644 index 0000000000..0b746795f2 --- /dev/null +++ b/recipes/snes9x/snes9x_1.43-WIP1.bb @@ -0,0 +1,27 @@ +SECTION = "x11/games" +PR = "r3" +LICENSE = "snes9x" +DEPENDS = "libxxf86dga libxxf86vm" +DEPENDS_append_i686 = " nasm-native" +RDEPENDS_epia = "kernel-module-joydev" + +SRC_URI = "http://www.lysator.liu.se/snes9x/1.43-WIP1/snes9x-1.43-WIP1-src.tar.gz \ + file://makefile.patch;patch=1;pnum=2 \ + file://private.patch;patch=1;pnum=0 \ + file://64bit.patch;patch=1" + +S = "${WORKDIR}/snes9x-1.43-dev-src/snes9x" + +inherit autotools + +export OECFLAGS="${CFLAGS}" +export OELDFLAGS="${LDFLAGS}" + +do_configure() { + oe_runconf +} + +do_install() { + install -d ${D}${bindir} + install snes9x ${D}${bindir} +} |