aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-11-07 15:32:38 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-11-07 15:32:38 +0000
commit560f6d11a895fa8af7eacc2639d1d45b58d14dff (patch)
tree4d4b2ae65265b87d1fd3dd6a128eb6dfb26cbc24 /unmaintained
parent04f886c921feaf0f4988d00d356c5bdf2b8b2dd6 (diff)
downloadaports-560f6d11a895fa8af7eacc2639d1d45b58d14dff.tar.bz2
aports-560f6d11a895fa8af7eacc2639d1d45b58d14dff.tar.xz
unmaintained/bsnes: moved
seems to be dead upstream
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/bsnes/APKBUILD50
-rw-r--r--unmaintained/bsnes/define-disassembler_read-relb.patch13
-rw-r--r--unmaintained/bsnes/no-pulseaudio.patch13
3 files changed, 76 insertions, 0 deletions
diff --git a/unmaintained/bsnes/APKBUILD b/unmaintained/bsnes/APKBUILD
new file mode 100644
index 0000000000..d648a9dedc
--- /dev/null
+++ b/unmaintained/bsnes/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=bsnes
+pkgver=0.91
+_x=${pkgver%.*}
+_y=${pkgver#*.}
+_pkgver="v${_x}${_y}"
+pkgrel=1
+pkgdesc="high accuracy SNES emulator"
+url="http://byuu.org/bsnes/"
+arch="x86 x86_64"
+license="GPL"
+depends=
+depends_dev="qt-dev openal-soft-dev sdl-dev alsa-lib-dev mesa-dev libao-dev
+ libxv-dev gtk+-dev"
+makedepends="$depends_dev"
+install=""
+subpackages=
+source="http://bsnes.googlecode.com/files/${pkgname}_${_pkgver}-source.tar.xz
+ no-pulseaudio.patch
+ define-disassembler_read-relb.patch
+ "
+
+_builddir="${srcdir}/${pkgname}_${_pkgver}-source/bsnes"
+prepare() {
+ local i
+ cd "$_builddir/.."
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ # remove sudo from makefiles
+ # don't install stuff in the buildbot user's homedir
+ find -name 'Makefile' | xargs sed -i -e 's/sudo //' -e '/~\/\.config/d'
+}
+
+build() {
+ cd "$_builddir"
+ make compiler=gcc prefix=/usr profile=performance || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" prefix=/usr profile=performance install || return 1
+}
+
+md5sums="ba53212c56990e83d7770393c4e2d173 bsnes_v091-source.tar.xz
+037fb1b2949957daf1942ff3abc4deed no-pulseaudio.patch
+957204062ed4634bd83345aa597666c4 define-disassembler_read-relb.patch"
diff --git a/unmaintained/bsnes/define-disassembler_read-relb.patch b/unmaintained/bsnes/define-disassembler_read-relb.patch
new file mode 100644
index 0000000000..257ff093c6
--- /dev/null
+++ b/unmaintained/bsnes/define-disassembler_read-relb.patch
@@ -0,0 +1,13 @@
+diff --git a/bsnes/snes/alt/smp/smp.hpp b/bsnes/snes/alt/smp/smp.hpp
+index f81c454..ad04d3e 100755
+--- a/bsnes/sfc/alt/smp/smp.hpp
++++ b/bsnes/sfc/alt/smp/smp.hpp
+@@ -22,6 +22,8 @@ public:
+ ~SMP();
+
+ void disassemble_opcode(char *output, uint16 addr);
++ uint8 disassemble_read(uint16);
++ uint16 relb(int8, int);
+
+ //private:
+ struct Flags {
diff --git a/unmaintained/bsnes/no-pulseaudio.patch b/unmaintained/bsnes/no-pulseaudio.patch
new file mode 100644
index 0000000000..24fe38c92a
--- /dev/null
+++ b/unmaintained/bsnes/no-pulseaudio.patch
@@ -0,0 +1,13 @@
+diff --git a/bsnes/ui/Makefile b/bsnes/ui/Makefile
+index 8b9a1a6..11e7b99 100755
+--- a/bsnes/target-ethos/Makefile
++++ b/bsnes/target-ethos/Makefile
+@@ -11,7 +11,7 @@ ui_objects += $(if $(call streq,$(platform),win),resource)
+ # platform
+ ifeq ($(platform),x)
+ ruby := video.glx video.xv video.sdl
+- ruby += audio.alsa audio.openal audio.oss audio.pulseaudio audio.pulseaudiosimple audio.ao
++ ruby += audio.alsa audio.openal audio.oss audio.ao
+ ruby += input.sdl input.x
+ else ifeq ($(platform),osx)
+ ruby :=