diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/mednafen |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/mednafen')
-rwxr-xr-x | community/mednafen/PKGBUILD | 23 | ||||
-rw-r--r-- | community/mednafen/fix_build.diff | 12 |
2 files changed, 35 insertions, 0 deletions
diff --git a/community/mednafen/PKGBUILD b/community/mednafen/PKGBUILD new file mode 100755 index 000000000..7a8060e07 --- /dev/null +++ b/community/mednafen/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Daenyth <Daenyth+Arch [at] gmail [dot] com> +# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> +# Contributor: kagan <juanynie@mi.madritel.es> +pkgname=mednafen +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.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 + patch -Np1 -i $srcdir/fix_build.diff || return 1 + ./configure --prefix=/usr || return 1 + make || return 1 + make DESTDIR=$pkgdir install +} diff --git a/community/mednafen/fix_build.diff b/community/mednafen/fix_build.diff new file mode 100644 index 000000000..d91a6faf4 --- /dev/null +++ b/community/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; + } + } |