diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2007-01-10 07:37:23 +0000 |
---|---|---|
committer | Philipp Zabel <philipp.zabel@gmail.com> | 2007-01-10 07:37:23 +0000 |
commit | 6f1172ac1e082bae9fc921d3f8cf2b422890427e (patch) | |
tree | 2d3c566f6d2dce1169fb4648fa4d601c368acd58 /packages/snes9x | |
parent | c94c025f10f859e08b55053230e9e395da49abb2 (diff) |
linux-handhelds-2.6: magician defconfig: I2C_PXA=y
Diffstat (limited to 'packages/snes9x')
-rw-r--r-- | packages/snes9x/snes9x/configure-sizeof-void-int.patch | 23 | ||||
-rw-r--r-- | packages/snes9x/snes9x/makefile-1.5.patch | 39 | ||||
-rw-r--r-- | packages/snes9x/snes9x_1.5.bb | 25 |
3 files changed, 87 insertions, 0 deletions
diff --git a/packages/snes9x/snes9x/configure-sizeof-void-int.patch b/packages/snes9x/snes9x/configure-sizeof-void-int.patch new file mode 100644 index 0000000000..2659608633 --- /dev/null +++ b/packages/snes9x/snes9x/configure-sizeof-void-int.patch @@ -0,0 +1,23 @@ +--- snes9x-1.5-src/configure.in.orig 2006-08-04 16:27:35.693980458 +0200 ++++ snes9x-1.5-src/configure.in 2006-08-04 16:28:11.704193040 +0200 +@@ -655,20 +655,6 @@ + fi + ]) + +-AC_MSG_CHECKING(if sizeof(void *) == sizeof(int)) +-AC_TRY_RUN([ +- int main() +- { +- return(!(sizeof(void *) == sizeof(int))); +- } +-], snes9x_ptr_is_int=yes) +-if test x$snes9x_ptr_is_int = xyes; then +- AC_MSG_RESULT(yes) +-else +- AC_MSG_RESULT(no) +- SYSDEFINES="$SYSDEFINES -DPTR_NOT_INT" +-fi +- + AC_MY_CHECK_SAR(int8) + AC_MY_CHECK_SAR(int16) + AC_MY_CHECK_SAR(int32) diff --git a/packages/snes9x/snes9x/makefile-1.5.patch b/packages/snes9x/snes9x/makefile-1.5.patch new file mode 100644 index 0000000000..b4cc561516 --- /dev/null +++ b/packages/snes9x/snes9x/makefile-1.5.patch @@ -0,0 +1,39 @@ +--- snes9x-1.5-src/Makefile.in.orig 2006-08-04 16:50:34.310687060 +0200 ++++ snes9x-1.5-src/Makefile.in 2006-08-04 16:54:22.216690330 +0200 +@@ -187,7 +187,7 @@ + OPTIMISE=-O4 -ffreestanding -ffast-math -fschedule-insns2 -fomit-frame-pointer -fno-inline-functions -fno-defer-pop -fforce-addr -fstrict-aliasing -funroll-loops -fdelete-null-pointer-checks -fno-exceptions + CPUFLAGS=-ml -m4-single-only + else +-OPTIMISE = @OPTIMIZE@ ++OPTIMISE = $(filter-out @OPTIMIZE@,-pedantic) + endif + + DEFS += \ +@@ -207,7 +207,7 @@ + $(SDD1DEFINES) \ + $(CORRVRAMDEFINES) \ + $(JOYDEFINES) \ +--DNO_INLINE_SET_GET @SYSDEFINES@ ++-DNO_INLINE_SET_GET @SYSDEFINES@ $(OECFLAGS) + + CCFLAGS = $(OPTIMISE) $(CPUFLAGS) $(INCLUDES) $(DEFS) + +@@ -245,15 +245,15 @@ + OFFSET= + endif + +-offsets: offsets.o +- $(CCC) $(INCLUDES) -o $@ offsets.o ++offsets: offsets.cpp ++ $(BUILD_CXX) $(INCLUDES) -o $@ $< + ./offsets >$(CPU)/offsets.h + + #../zlib/libz.a: + # cd ../zlib && sh ./configure && make + + snes9x: $(OBJECTS) unix/x11.o $(AIDOOBJS) $(OFFSET) +- $(CCC) $(INCLUDES) -o $@ $(OBJECTS) $(AIDOOBJS) $(GLIDEOBJS) $(OPENGLOBJS) unix/x11.o $(LDLIBS) $(GLIDELIBS) $(OPENGLLIBS) @SYSLIBS@ -lXext -lX11 $(EXTRALIBS) -lm ++ $(CCC) $(INCLUDES) -o $@ $(OBJECTS) $(AIDOOBJS) $(GLIDEOBJS) $(OPENGLOBJS) unix/x11.o $(OELDFLAGS) $(LDLIBS) $(GLIDELIBS) $(OPENGLLIBS) @SYSLIBS@ -lXext -lX11 $(EXTRALIBS) -lm + + unix/svga_keynames.h: unix/svga_get_keynames.pl + unix/svga_get_keynames.pl /usr/include/vgakeyboard.h > unix/svga_keynames.h diff --git a/packages/snes9x/snes9x_1.5.bb b/packages/snes9x/snes9x_1.5.bb new file mode 100644 index 0000000000..6d6b7355c5 --- /dev/null +++ b/packages/snes9x/snes9x_1.5.bb @@ -0,0 +1,25 @@ +SECTION = "x11/games" +PR = "r3" +LICENSE = "snes9x" +DEPENDS = "virtual/libx11 zlib" +#DEPENDS = "libxxf86dga libxxf86vm" +DEPENDS_append_i686 = " nasm-native" +RDEPENDS_epia = "kernel-module-joydev" + +SRC_URI = "http://files.ipherswipsite.com/snes9x/snes9x-1.5-src.tar.bz2" +# file://makefile.patch;patch=1;pnum=2 \ +# file://private.patch;patch=1;pnum=0" + +S = "${WORKDIR}/snes9x-1.5-src" + +inherit autotools + +export OECFLAGS="${CFLAGS}" +export OELDFLAGS="${LDFLAGS}" + +EXTRA_OECONF = "--without-extensions" + +do_install() { + install -d ${D}${bindir} + install snes9x ${D}${bindir} +} |