summaryrefslogtreecommitdiff
path: root/community/fceux
diff options
context:
space:
mode:
Diffstat (limited to 'community/fceux')
-rw-r--r--community/fceux/PKGBUILD2
-rw-r--r--community/fceux/fceux-2.1.5-gcc46.patch11
-rw-r--r--community/fceux/fceux-2.1.5-gcc47.patch22
-rw-r--r--community/fceux/fceux-2.1.5-underlink.patch13
4 files changed, 47 insertions, 1 deletions
diff --git a/community/fceux/PKGBUILD b/community/fceux/PKGBUILD
index 3d963df97..08764250c 100644
--- a/community/fceux/PKGBUILD
+++ b/community/fceux/PKGBUILD
@@ -8,7 +8,7 @@ pkgver=2.2.0
pkgrel=2
url='http://www.fceux.com/'
pkgdesc='Fast and ultra-compatible NES/Famicom emulator'
-arch=('x86_64' 'i686')
+arch=('x86_64' 'i686' 'mips64el')
license=('GPL')
depends=('sdl' 'gtk2' 'gd' 'desktop-file-utils' 'lua51' 'libgl')
makedepends=('scons' 'mesa' 'glu')
diff --git a/community/fceux/fceux-2.1.5-gcc46.patch b/community/fceux/fceux-2.1.5-gcc46.patch
new file mode 100644
index 000000000..540382278
--- /dev/null
+++ b/community/fceux/fceux-2.1.5-gcc46.patch
@@ -0,0 +1,11 @@
+--- fceu2.1.5.orig/src/file.cpp 2010-09-18 19:05:09.000000000 -0500
++++ fceu2.1.5/src/file.cpp 2012-12-19 10:47:44.065106719 -0500
+@@ -310,7 +310,7 @@
+ if(magic==0x088b1f) {
+ // maybe gzip...
+
+- void* gzfile = gzopen(fileToOpen.c_str(),"rb");
++ gzFile gzfile = gzopen(fileToOpen.c_str(),"rb");
+ if(gzfile) {
+ delete fp;
+
diff --git a/community/fceux/fceux-2.1.5-gcc47.patch b/community/fceux/fceux-2.1.5-gcc47.patch
new file mode 100644
index 000000000..8d6891dfa
--- /dev/null
+++ b/community/fceux/fceux-2.1.5-gcc47.patch
@@ -0,0 +1,22 @@
+--- fceu2.1.5.orig/src/utils/endian.h 2010-11-07 18:33:11.000000000 -0500
++++ fceu2.1.5/src/utils/endian.h 2012-12-19 10:36:45.076124554 -0500
+@@ -93,19 +93,5 @@
+ }
+ }
+
+-template<typename T>
+-int writele(T *Bufo, EMUFILE*os)
+-{
+- CTASSERT(sizeof(T)==1||sizeof(T)==2||sizeof(T)==4||sizeof(T)==8);
+- switch(sizeof(T)) {
+- case 1: return write8le((uint8*)Bufo,os);
+- case 2: return write16le((uint16*)Bufo,os);
+- case 4: return write32le((uint32*)Bufo,os);
+- case 8: return write64le((uint64*)Bufo,os);
+- default:
+- return 0;
+- }
+-}
+-
+ #endif //__FCEU_ENDIAN
+
diff --git a/community/fceux/fceux-2.1.5-underlink.patch b/community/fceux/fceux-2.1.5-underlink.patch
new file mode 100644
index 000000000..c08137a51
--- /dev/null
+++ b/community/fceux/fceux-2.1.5-underlink.patch
@@ -0,0 +1,13 @@
+--- fceu2.1.5.orig/SConstruct 2011-06-07 21:33:28.876609681 +0200
++++ fceu2.1.5/SConstruct 2011-06-07 21:34:11.420368249 +0200
+@@ -70,6 +70,10 @@
+ env.ParseConfig('pkg-config --cflags --libs gtk+-3.0')
+ env.Append(CPPDEFINES=["_GTK3"])
+ env.Append(CCFLAGS = ["-D_GTK"])
++ env.Append(LIBS =["-lz"])
++ env.Append(LIBS =["-ldl"])
++ env.Append(LIBS =["-lX11"])
++
+ ### Lua platform defines
+ ### Applies to all files even though only lua needs it, but should be ok
+ if env['LUA']: