summaryrefslogtreecommitdiffstats
path: root/abs/extra/mednafen
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2011-07-06 02:52:59 (GMT)
committerCecil <knoppmyth@gmail.com>2011-07-06 02:52:59 (GMT)
commit99f6ea650c21d8afd5a406dec7101534e9c8ebcb (patch)
tree8934fb835f10b9cffd7f4fbc6e4551fa277cfca7 /abs/extra/mednafen
parent323200fe791ab3f7caf509051d8054fcfcdfce9c (diff)
downloadlinhes_pkgbuild-99f6ea650c21d8afd5a406dec7101534e9c8ebcb.zip
linhes_pkgbuild-99f6ea650c21d8afd5a406dec7101534e9c8ebcb.tar.gz
linhes_pkgbuild-99f6ea650c21d8afd5a406dec7101534e9c8ebcb.tar.bz2
mednafen:bumped to latest
Diffstat (limited to 'abs/extra/mednafen')
-rwxr-xr-xabs/extra/mednafen/PKGBUILD14
-rw-r--r--abs/extra/mednafen/fix_build.diff12
2 files changed, 20 insertions, 6 deletions
diff --git a/abs/extra/mednafen/PKGBUILD b/abs/extra/mednafen/PKGBUILD
index 69e127f..7a8060e 100755
--- a/abs/extra/mednafen/PKGBUILD
+++ b/abs/extra/mednafen/PKGBUILD
@@ -2,20 +2,22 @@
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
# Contributor: kagan <juanynie@mi.madritel.es>
pkgname=mednafen
-pkgver=0.8.C
+pkgver=0.8.D
pkgrel=1
pkgdesc="A command-line multi-system gaming emulator"
url="http://mednafen.sourceforge.net/"
license=(GPL)
arch=('i686' 'x86_64')
-depends=('libcdio>=0.80-3' 'libsamplerate' 'libogg' 'libvorbis' 'sdl' 'sdl_net' 'libsndfile' 'zlib')
-makedepends=('pkgconfig')
-source=(http://downloads.sourceforge.net/mednafen/$pkgname-$pkgver.tar.bz2)
-md5sums=('e8f4b6ba7ed2eca399b02578e1803831')
+depends=('libcdio>=0.82' 'libsamplerate' 'libogg' 'libvorbis' 'sdl' 'sdl_net' 'libsndfile' 'zlib')
+makedepends=('pkgconfig' 'mesa')
+source=(http://downloads.sourceforge.net/mednafen/$pkgname-$pkgver.tar.bz2 fix_build.diff)
+md5sums=('4c3f337f80bf54d2df0f3a0f24203141'
+ '0f44ef41b0220b66579626548d044f15')
build() {
cd $srcdir/$pkgname
- ./configure --prefix=/usr
+ patch -Np1 -i $srcdir/fix_build.diff || return 1
+ ./configure --prefix=/usr || return 1
make || return 1
make DESTDIR=$pkgdir install
}
diff --git a/abs/extra/mednafen/fix_build.diff b/abs/extra/mednafen/fix_build.diff
new file mode 100644
index 0000000..d91a6fa
--- /dev/null
+++ b/abs/extra/mednafen/fix_build.diff
@@ -0,0 +1,12 @@
+diff -ruN mednafen.orig//src/pcfx/soundbox.cpp mednafen/src/pcfx/soundbox.cpp
+--- mednafen.orig//src/pcfx/soundbox.cpp 2010-06-05 09:35:40.000000000 -0400
++++ mednafen/src/pcfx/soundbox.cpp 2010-06-05 09:35:55.000000000 -0400
+@@ -416,7 +416,7 @@
+ int rolloff = (int)((double)0.90 * 21477272 * 2 / 1365 / (1 << SampleFreq) ) / 2;
+ for(int ch = 0; ch < 2; ch++)
+ for(int lr = 0; lr < 2; lr++)
+- ADPCMSynth[ch][lr].treble_eq(blip_eq_t::blip_eq_t(-1000, rolloff, FSettings.SndRate));
++ ADPCMSynth[ch][lr].treble_eq(blip_eq_t(-1000, rolloff, FSettings.SndRate));
+ LSampleFreq = SampleFreq;
+ }
+ }