summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-09 16:28:07 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-09 16:28:07 +0000
commit4449c749e4d0a531f4dffcd6bd11772e59ecbf81 (patch)
tree47ac23a46562d1736503b9b2447f81b34199c04e /games-emulation/snes9x
parentNew package - rename. (diff)
downloadhistorical-4449c749e4d0a531f4dffcd6bd11772e59ecbf81.tar.gz
historical-4449c749e4d0a531f4dffcd6bd11772e59ecbf81.tar.bz2
historical-4449c749e4d0a531f4dffcd6bd11772e59ecbf81.zip
welcome to games-emulation
Diffstat (limited to 'games-emulation/snes9x')
-rw-r--r--games-emulation/snes9x/ChangeLog53
-rw-r--r--games-emulation/snes9x/Manifest8
-rw-r--r--games-emulation/snes9x/files/digest-snes9x-1391
-rw-r--r--games-emulation/snes9x/files/digest-snes9x-139-r11
-rw-r--r--games-emulation/snes9x/files/snes9x-139-r1-BE-sound-fix.diff26
-rw-r--r--games-emulation/snes9x/files/snes9x-139-r1-Makefile-ppc.diff37
-rw-r--r--games-emulation/snes9x/files/snes9x-gcc3.diff35
-rw-r--r--games-emulation/snes9x/snes9x-139-r1.ebuild71
-rw-r--r--games-emulation/snes9x/snes9x-139.ebuild23
9 files changed, 255 insertions, 0 deletions
diff --git a/games-emulation/snes9x/ChangeLog b/games-emulation/snes9x/ChangeLog
new file mode 100644
index 000000000000..970c18f7e3d8
--- /dev/null
+++ b/games-emulation/snes9x/ChangeLog
@@ -0,0 +1,53 @@
+# ChangeLog for app-emulation/snes9x
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/snes9x/ChangeLog,v 1.1 2003/09/09 16:26:50 vapier Exp $
+
+*snes9x-139-r1 (20 Feb 2003)
+
+ 03 Mar 2003; Bartosch Pixa <darkspecter@gentoo.org> snes9x-139-r1.ebuild:
+ BE sound fix
+
+ 20 Feb 2003; Bartosch Pixa <darkspecter@gentoo.org> snes9x-139-r1.ebuild :
+ added a patch to enable fallback to c routines, RDEPEND and set ~ppc in keywords
+
+*snes-139-r1 (27 Jul 2002)
+
+ 02 Nov 2002: Mark Guertin <gerk@gentoo.org> snes-139-r1.ebuild :
+ set -ppc in keywords
+
+ 16 Oct 2002; Mike Frysinger <vapier@gentoo.org> :
+ Changed 'glide' to '3dfx' since only 3dfx cards use glide and '3dfx' is the correct USE
+
+ 03 Oct 2002; Mike Frysinger <vapier@gentoo.org> snes-139-r1.ebuild files/snes9x-gcc3.diff :
+ Fixed dependencies and made snes9x better ... #8717
+ Now you can have X or svga or glide or opengl ... X + svga is NOT required
+
+ 06 Aug 2002; Mark Guertin <gerk@gentoo.org> :
+ Added -ppc to keywords
+
+ 27 Jul 2002; Stuart Bouyer <stubear@gentoo.org> snes-139-r1.ebuild,
+ snes-139.ebuild:
+
+ Added KEYWORDS="x86" and SLOT.
+
+*snes-139-r1 (23 Jun 2002)
+
+ 14 Jul 2002; Ryan Phillips <rphillips@gentoo.org> snes-139-r1.ebuild
+ files/snes9x-gcc3.diff :
+
+ Added GCC 3.1 patch
+
+ 23 Jun 2002; Ryan Phillips <rphillips@gentoo.org> snes-139-r1.ebuild :
+
+ Thanks to Per Wigren the ebuild has been updated with X11 support and
+ opengl.
+
+*snes-139 (26 May 2002)
+
+ 26 May 2002; Ryan Phillips <rphillips@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/games-emulation/snes9x/Manifest b/games-emulation/snes9x/Manifest
new file mode 100644
index 000000000000..fd1d61420c5c
--- /dev/null
+++ b/games-emulation/snes9x/Manifest
@@ -0,0 +1,8 @@
+MD5 8d9c4a258f7ee0f3b32de3171f6fd754 ChangeLog 1973
+MD5 a8b250bb31fdb03bbefbcce3809b49ba snes9x-139-r1.ebuild 1962
+MD5 02a83e873a0615d322483ab94613a37e snes9x-139.ebuild 687
+MD5 1ea1144fd7c43c922c8df605ceec8513 files/digest-snes9x-139 56
+MD5 1ea1144fd7c43c922c8df605ceec8513 files/digest-snes9x-139-r1 56
+MD5 95a147283e0b09db8ad3307bb3e5b305 files/snes9x-139-r1-BE-sound-fix.diff 550
+MD5 5b7c3589393da0616b766b78c69aa16e files/snes9x-139-r1-Makefile-ppc.diff 779
+MD5 60e338baf6468da1d0c1fece4884553c files/snes9x-gcc3.diff 979
diff --git a/games-emulation/snes9x/files/digest-snes9x-139 b/games-emulation/snes9x/files/digest-snes9x-139
new file mode 100644
index 000000000000..7436413f1239
--- /dev/null
+++ b/games-emulation/snes9x/files/digest-snes9x-139
@@ -0,0 +1 @@
+MD5 eb8fb2cc365a9dcc18106a05bcdd3ac1 s9xs139.zip 666463
diff --git a/games-emulation/snes9x/files/digest-snes9x-139-r1 b/games-emulation/snes9x/files/digest-snes9x-139-r1
new file mode 100644
index 000000000000..7436413f1239
--- /dev/null
+++ b/games-emulation/snes9x/files/digest-snes9x-139-r1
@@ -0,0 +1 @@
+MD5 eb8fb2cc365a9dcc18106a05bcdd3ac1 s9xs139.zip 666463
diff --git a/games-emulation/snes9x/files/snes9x-139-r1-BE-sound-fix.diff b/games-emulation/snes9x/files/snes9x-139-r1-BE-sound-fix.diff
new file mode 100644
index 000000000000..b24de16d41c1
--- /dev/null
+++ b/games-emulation/snes9x/files/snes9x-139-r1-BE-sound-fix.diff
@@ -0,0 +1,26 @@
+--- release/unix/unix.cpp.orig 2003-03-02 03:33:54.000000000 +0100
++++ release/unix/unix.cpp 2003-03-02 03:35:10.000000000 +0100
+@@ -1463,7 +1463,11 @@
+ perror ("ioctl SNDCTL_DSP_SETTRIGGER");
+ #endif
+
++#ifdef MSB_FIRST
++ J = AFMT_S16_BE;
++#else
+ J = AFMT_S16_LE;
++#endif
+ // J = AFMT_U8;
+ if (ioctl (so.sound_fd, SNDCTL_DSP_SETFMT, &J) < 0)
+ {
+@@ -1471,7 +1475,11 @@
+ return (FALSE);
+ }
+
++#ifdef MSB_FIRST
++ if (J != AFMT_S16_BE)
++#else
+ if (J != AFMT_S16_LE)
++#endif
+ {
+ so.sixteen_bit = FALSE;
+ J = AFMT_U8;
diff --git a/games-emulation/snes9x/files/snes9x-139-r1-Makefile-ppc.diff b/games-emulation/snes9x/files/snes9x-139-r1-Makefile-ppc.diff
new file mode 100644
index 000000000000..09fee05cb903
--- /dev/null
+++ b/games-emulation/snes9x/files/snes9x-139-r1-Makefile-ppc.diff
@@ -0,0 +1,37 @@
+--- release.orig/Makefile.linux 2003-02-11 05:27:20.000000000 +0000
++++ release/Makefile.linux 2003-02-11 05:28:24.000000000 +0000
+@@ -1,13 +1,13 @@
+-ZSNESFX=1
+-ZSNESC4=1
+-ASMCPU=1
++#ZSNESFX=1
++#ZSNESC4=1
++#ASMCPU=1
+ #SPC700ASM=1
+ NETPLAY=1
+ UNZIP=1
+ #GLIDE=1
+ #OPENGL=1
+ THREAD_SOUND=1
+-ASMKREED=1
++#ASMKREED=1
+
+ ifdef ZSNESFX
+ FXOBJ=i386/fxemu2b.o i386/fxemu2.o i386/fxemu2c.o i386/fxtable.o i386/sfxproc.o i386/zsnes.o
+@@ -39,7 +39,7 @@
+ SOUNDOBJ=spctool/spc700.o spctool/dsp.o spctool.o spctool/soundmod.o spc.o
+ SOUNDDEFINES=-DSPCTOOL
+ else
+-SOUNDOBJ=spc700.o soundux.o apu.o i386/spc.o
++SOUNDOBJ=spc700.o soundux.o apu.o
+ SOUNDDEFINES=-DSPC700_C
+ endif
+
+@@ -111,7 +111,6 @@
+ OPTIMISE=
+
+ CCFLAGS = $(OPTIMISE) -DMITSHM \
+--Ii386 \
+ -I. \
+ -Iunzip \
+ -DJOYSTICK_SUPPORT \
diff --git a/games-emulation/snes9x/files/snes9x-gcc3.diff b/games-emulation/snes9x/files/snes9x-gcc3.diff
new file mode 100644
index 000000000000..d65616446cff
--- /dev/null
+++ b/games-emulation/snes9x/files/snes9x-gcc3.diff
@@ -0,0 +1,35 @@
+diff -ur release.orig/Makefile.linux release/Makefile.linux
+--- release.orig/Makefile.linux Sun Jul 14 18:24:34 2002
++++ release/Makefile.linux Sun Jul 14 18:24:48 2002
+@@ -102,7 +102,7 @@
+ OPENGLNO_DEPENDS=use_opengl
+ endif
+
+-CCC = gcc
++CCC = g++
+ CC = gcc
+ NASM = nasm
+
+diff -ur release.orig/unix/config.c release/unix/config.c
+--- release.orig/unix/config.c Sun Jul 14 18:24:34 2002
++++ release/unix/config.c Sun Jul 14 18:25:01 2002
+@@ -528,7 +528,7 @@
+ p = find_config_string(config[0], section, name, NULL);
+
+ if (p)
+- return (p->data ? p->data : "");
++ return (p->data ? p->data : (char*) "");
+ else
+ return def;
+ }
+--- release.orig/Makefile.linux 2002-10-03 16:04:29.000000000 -0400
++++ release/Makefile.linux 2001-09-18 02:04:07.000000000 -0400
+@@ -108,7 +108,7 @@
+
+ INCLUDES=-I/usr/X11R6/include -I/usr/local/include
+
+-OPTIMISE=-O6 -mpentium -fomit-frame-pointer -fno-exceptions
++OPTIMISE=
+
+ CCFLAGS = $(OPTIMISE) -DMITSHM \
+ -Ii386 \
diff --git a/games-emulation/snes9x/snes9x-139-r1.ebuild b/games-emulation/snes9x/snes9x-139-r1.ebuild
new file mode 100644
index 000000000000..45a1e3d9cf80
--- /dev/null
+++ b/games-emulation/snes9x/snes9x-139-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/snes9x/snes9x-139-r1.ebuild,v 1.1 2003/09/09 16:26:50 vapier Exp $
+
+DESCRIPTION="Super Nintendo Entertainment System (SNES) emulator"
+HOMEPAGE="http://www.snes9x.com/"
+SRC_URI="http://www.snes9x.com/zips/s9xs${PV}.zip"
+
+LICENSE="as-is"
+KEYWORDS="x86 ~ppc"
+SLOT="0"
+IUSE="X svga 3dfx opengl"
+
+DEPEND="x86? ( dev-lang/nasm )
+ X? ( virtual/x11 )
+ svga? ( media-libs/svgalib )
+ opengl? ( virtual/opengl )
+ 3dfx? ( media-libs/glide-v3 )"
+RDEPEND="X? ( virtual/x11 )
+ svga? ( media-libs/svgalib )
+ opengl? ( virtual/opengl )
+ 3dfx? ( media-libs/glide-v3 )"
+
+S="${WORKDIR}/release"
+
+pkg_setup() {
+ local mydisp
+ mydisp="`use X``use svga``use opengl``use 3dfx`"
+ if [ -z "${mydisp}" ] ; then
+ eerror "Unable to find a display mode"
+ echo
+ eerror "You must have at least 1 of the following"
+ eerror "in your USE variable:"
+ eerror "X svga opengl 3dfx"
+ die "unable to compile targets"
+ fi
+}
+
+src_compile() {
+ patch -p1 < ${FILESDIR}/snes9x-gcc3.diff
+ if [ `use ppc` ]; then
+ patch -p1 < ${FILESDIR}/snes9x-139-r1-Makefile-ppc.diff
+ patch -p1 < ${FILESDIR}/snes9x-139-r1-BE-sound-fix.diff
+ fi
+
+ #install our custom CXXFLAGS
+ mv Makefile.linux Makefile
+ cp Makefile Makefile.old
+ sed -e "s:OPTIMISE=:OPTIMISE=${CXXFLAGS}:" \
+ Makefile.old > Makefile
+
+ use X && emake snes9x
+ [ -x ${S}/snes9x ] || die "unable to compile for X"
+
+ use svga && emake ssnes9x
+ [ -x ${S}/snes9x ] || die "unable to compile for svga"
+
+ use opengl && emake osnes9x
+ [ -x ${S}/snes9x ] || die "unable to compile for opengl"
+
+ use 3dfx && emake gsnes9x
+ [ -x ${S}/snes9x ] || die "unable to compile for glide"
+}
+
+src_install() {
+ use X && dobin snes9x
+ use svga && dobin ssnes9x
+ use opengl && dobin osnes9x
+ use 3dfx && dobin gsnes9x
+ dodoc {COPYRIGHT,CHANGES,README,PROBLEMS,TODO,HARDWARE,HOW2PORT}.TXT
+}
diff --git a/games-emulation/snes9x/snes9x-139.ebuild b/games-emulation/snes9x/snes9x-139.ebuild
new file mode 100644
index 000000000000..7004e226a06e
--- /dev/null
+++ b/games-emulation/snes9x/snes9x-139.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/snes9x/snes9x-139.ebuild,v 1.1 2003/09/09 16:26:50 vapier Exp $
+
+DESCRIPTION="Snes9x is a portable, freeware Super Nintendo Entertainment System (SNES) emulator."
+HOMEPAGE="http://www.snes9x.com/"
+LICENSE="as-is"
+KEYWORDS="x86 -ppc"
+SLOT="0"
+SRC_URI="http://www.snes9x.com/zips/s9xs${PV}.zip"
+DEPEND="dev-lang/nasm
+ virtual/x11"
+S=${WORKDIR}/release
+IUSE=""
+
+src_compile() {
+ make -f Makefile.linux || die
+}
+
+src_install() {
+ dobin ssnes9x
+ dodoc COPYRIGHT.TXT CHANGES.TXT README.TXT PROBLEMS.TXT TODO.TXT HARDWARE.TXT
+}