From 299e917c17619f800f0c21cf43209065b608223f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 24 Feb 2012 23:15:21 +0000 Subject: Fri Feb 24 23:15:21 UTC 2012 --- community/mednafen/ChangeLog | 3 +++ community/mednafen/PKGBUILD | 14 +++++++---- .../mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch | 29 ++++++++++++++++++++++ 3 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 community/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch (limited to 'community/mednafen') 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 + * Rebuild for libcdio soname bumps + 2011-05-17 Angel Velasquez * 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 # Contributor: Daenyth # Contributor: kagan + 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); + } + -- cgit v1.2.3-54-g00ecf