summaryrefslogtreecommitdiff
path: root/community/mednafen
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-24 23:15:21 +0000
committerroot <root@rshg054.dnsready.net>2012-02-24 23:15:21 +0000
commit299e917c17619f800f0c21cf43209065b608223f (patch)
treee175a7bbdb5d933670f10b09f1cc52ece45ced87 /community/mednafen
parentd466ef49f224a9347fe0375eac8126725e10a0a4 (diff)
Fri Feb 24 23:15:21 UTC 2012
Diffstat (limited to 'community/mednafen')
-rw-r--r--community/mednafen/ChangeLog3
-rwxr-xr-xcommunity/mednafen/PKGBUILD14
-rw-r--r--community/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch29
3 files changed, 41 insertions, 5 deletions
diff --git a/community/mednafen/ChangeLog b/community/mednafen/ChangeLog
index a3097076c..54b01d58f 100644
--- a/community/mednafen/ChangeLog
+++ b/community/mednafen/ChangeLog
@@ -1,3 +1,6 @@
+2012-02-23 Allan McRae <allan@archlinux.org>
+ * Rebuild for libcdio soname bumps
+
2011-05-17 Angel Velasquez <angvp@archlinux.org>
* Updated to 0.8.D.3
* Removed fix_build patch
diff --git a/community/mednafen/PKGBUILD b/community/mednafen/PKGBUILD
index 88e469afc..802249f21 100755
--- a/community/mednafen/PKGBUILD
+++ b/community/mednafen/PKGBUILD
@@ -1,21 +1,25 @@
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
# Contributor: kagan <juanynie@mi.madritel.es>
+
pkgname=mednafen
pkgver=0.8.D.3
-pkgrel=1
+pkgrel=2
pkgdesc="A command-line multi-system gaming emulator"
url="http://mednafen.sourceforge.net/"
-license=(GPL)
+license=('GPL')
arch=('i686' 'x86_64')
-depends=('libcdio>=0.82' 'libsamplerate' 'libogg' 'libvorbis' 'sdl' 'sdl_net' 'libsndfile' 'zlib')
+depends=('libcdio' 'libsamplerate' 'libogg' 'libvorbis' 'sdl' 'sdl_net' 'libsndfile' 'zlib')
makedepends=('pkgconfig' 'mesa')
changelog=ChangeLog
-source=(http://downloads.sourceforge.net/mednafen/$pkgname-$pkgver.tar.bz2)
-md5sums=('57d22805071becd81858b0c088a275e5')
+source=(http://downloads.sourceforge.net/mednafen/$pkgname-$pkgver.tar.bz2
+ mednafen-0.8.13.3-zlib-1.2.6.patch)
+md5sums=('57d22805071becd81858b0c088a275e5'
+ '450bb5aa7552db5b8f6d6713bdb725ce')
build() {
cd $srcdir/$pkgname
+ patch -Np1 -i $srcdir/mednafen-0.8.13.3-zlib-1.2.6.patch
./configure --prefix=/usr
make
}
diff --git a/community/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch b/community/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch
new file mode 100644
index 000000000..9437f76ce
--- /dev/null
+++ b/community/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch
@@ -0,0 +1,29 @@
+--- mednafen.orig/src/file.cpp
++++ mednafen/src/file.cpp
+@@ -229,7 +229,7 @@
+ goto doret;
+ }
+
+- while((howmany = gzread(tz, tmp->data + cur_size, cur_alloced - cur_size)) > 0)
++ while((howmany = gzread((gzFile)tz, tmp->data + cur_size, cur_alloced - cur_size)) > 0)
+ {
+ cur_size += howmany;
+ cur_alloced <<= 1;
+@@ -282,7 +282,7 @@
+ }
+ else if(type == MDFN_FILETYPE_GZIP)
+ {
+- gzclose(tz);
++ gzclose((gzFile)tz);
+ }
+ else if(type == MDFN_FILETYPE_ZIP)
+ {
+@@ -444,7 +444,7 @@
+
+ if(!(fceufp = MakeMemWrap(t, 1)))
+ {
+- gzclose(t);
++ gzclose((gzFile)t);
+ return(0);
+ }
+