diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2012-12-19 23:43:58 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2012-12-19 23:43:58 -0500 |
commit | a22d473968009e6eef0ecf1696ba68be95807d38 (patch) | |
tree | faa6222e50c01006c96ed436f366048c419ed20e | |
parent | 21bbdcb0f40e8c86cd4d1bef5ae063460e682358 (diff) |
Add patches in fceux
-rw-r--r-- | community/fceux/PKGBUILD | 10 | ||||
-rw-r--r-- | community/fceux/fceux-2.1.5-gcc46.patch | 11 | ||||
-rw-r--r-- | community/fceux/fceux-2.1.5-gcc47.patch | 22 | ||||
-rw-r--r-- | community/fceux/fceux-2.1.5-underlink.patch | 13 |
4 files changed, 55 insertions, 1 deletions
diff --git a/community/fceux/PKGBUILD b/community/fceux/PKGBUILD index 9c1632d33..e4bca3e1c 100644 --- a/community/fceux/PKGBUILD +++ b/community/fceux/PKGBUILD @@ -16,15 +16,23 @@ provides=('fceu' 'gfceux') replaces=('fceu' 'gfceux') install=fceux.install source=("http://downloads.sourceforge.net/fceultra/$pkgname-$pkgver.src.tar.bz2" + "fceux-2.1.5-gcc46.patch" + "fceux-2.1.5-gcc47.patch" + "fceux-2.1.5-underlink.patch" "fceux.desktop" "fceux.png") md5sums=('e8b20e62bbbb061b1a59d51b47c827bd' + '21cb004988b6593e10815d0b485b0d3c' + 'd03b6301924b195601a38fbd57d908eb' + 'd79d2b531bd2d9feeb08e297e89ed393' '3c6a259d88825ff1b9387d191a6c970e' '3fe753731ac46b5fee528b1f73abd3e3') build() { cd "$srcdir/fceu${pkgver}" - + patch -Np1 -i ${srcdir}/fceux-2.1.5-gcc46.patch + patch -Np1 -i ${srcdir}/fceux-2.1.5-gcc47.patch + patch -Np1 -i ${srcdir}/fceux-2.1.5-underlink.patch sed -i "s|/usr/local|$pkgdir/usr|" SConstruct scons OPENGL=0 install } 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']: |