summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-08-15 01:26:15 +0000
committerMike Frysinger <vapier@gentoo.org>2003-08-15 01:26:15 +0000
commit5029e53139d4d831826aa057fbdffab467f60175 (patch)
treee8cf24dd202fa72a3df59d932436d959b9b98571 /app-emulation
parentNew ebuild. Original submission on bug #19953 (diff)
downloadgentoo-2-5029e53139d4d831826aa057fbdffab467f60175.tar.gz
gentoo-2-5029e53139d4d831826aa057fbdffab467f60175.tar.bz2
gentoo-2-5029e53139d4d831826aa057fbdffab467f60175.zip
pcsx2 !
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/pcsx2/ChangeLog8
-rw-r--r--app-emulation/pcsx2/files/0.41-time-renames.patch16
-rw-r--r--app-emulation/pcsx2/files/digest-pcsx2-0.411
-rw-r--r--app-emulation/pcsx2/files/pcsx250
-rw-r--r--app-emulation/pcsx2/pcsx2-0.41.ebuild46
-rw-r--r--app-emulation/ps2emu-cddvdlinuz/ChangeLog8
-rw-r--r--app-emulation/ps2emu-cddvdlinuz/Manifest8
-rw-r--r--app-emulation/ps2emu-cddvdlinuz/files/0.3-makefile.patch11
-rw-r--r--app-emulation/ps2emu-cddvdlinuz/files/digest-ps2emu-cddvdlinuz-0.31
-rw-r--r--app-emulation/ps2emu-cddvdlinuz/ps2emu-cddvdlinuz-0.3.ebuild37
-rw-r--r--app-emulation/ps2emu-cdvdiso/ChangeLog8
-rw-r--r--app-emulation/ps2emu-cdvdiso/files/0.2-makefile.patch11
-rw-r--r--app-emulation/ps2emu-cdvdiso/files/digest-ps2emu-cdvdiso-0.21
-rw-r--r--app-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.2.ebuild38
-rw-r--r--app-emulation/ps2emu-gssoft/ChangeLog8
-rw-r--r--app-emulation/ps2emu-gssoft/files/0.5-makefile.patch21
-rw-r--r--app-emulation/ps2emu-gssoft/files/digest-ps2emu-gssoft-0.51
-rw-r--r--app-emulation/ps2emu-gssoft/ps2emu-gssoft-0.5.ebuild48
-rw-r--r--app-emulation/ps2emu-padxwin/ChangeLog8
-rw-r--r--app-emulation/ps2emu-padxwin/files/0.3-makefile.patch11
-rw-r--r--app-emulation/ps2emu-padxwin/files/digest-ps2emu-padxwin-0.31
-rw-r--r--app-emulation/ps2emu-padxwin/ps2emu-padxwin-0.3.ebuild37
-rw-r--r--app-emulation/ps2emu-spu2null/ChangeLog8
-rw-r--r--app-emulation/ps2emu-spu2null/files/0.2-makefile.patch11
-rw-r--r--app-emulation/ps2emu-spu2null/files/digest-ps2emu-spu2null-0.21
-rw-r--r--app-emulation/ps2emu-spu2null/ps2emu-spu2null-0.2.ebuild36
26 files changed, 435 insertions, 0 deletions
diff --git a/app-emulation/pcsx2/ChangeLog b/app-emulation/pcsx2/ChangeLog
new file mode 100644
index 000000000000..80d9dfef30ee
--- /dev/null
+++ b/app-emulation/pcsx2/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for app-emulation/pcsx2
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/pcsx2/ChangeLog,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+*pcsx2-0.41 (14 Aug 2003)
+
+ 14 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me. Wish they werent such asses on efnet ;)
diff --git a/app-emulation/pcsx2/files/0.41-time-renames.patch b/app-emulation/pcsx2/files/0.41-time-renames.patch
new file mode 100644
index 000000000000..96b924beffd7
--- /dev/null
+++ b/app-emulation/pcsx2/files/0.41-time-renames.patch
@@ -0,0 +1,16 @@
+--- Pcsx2Src/RPC/80000001fileio.h.orig 2003-08-14 11:39:42.319499152 -0400
++++ Pcsx2Src/RPC/80000001fileio.h 2003-08-14 11:40:09.145420992 -0400
+@@ -73,10 +73,10 @@
+ 4 Symbolic link */
+ unsigned int st_attr;// Flag compatible with memory card mode
+ unsigned int st_size;
+- unsigned char st_ctime[8];// Creation time
+- unsigned char st_atime[8];/* This field is updated at the same time as last access time
++ unsigned char sr_ctime[8];// Creation time
++ unsigned char sr_atime[8];/* This field is updated at the same time as last access time
+ and last update time. */
+- unsigned char st_mtime[8];/* Last update time
++ unsigned char sr_mtime[8];/* Last update time
+ byte0 Reserved
+ byte1 Seconds
+ byte2 Minutes
diff --git a/app-emulation/pcsx2/files/digest-pcsx2-0.41 b/app-emulation/pcsx2/files/digest-pcsx2-0.41
new file mode 100644
index 000000000000..f2a0408e7299
--- /dev/null
+++ b/app-emulation/pcsx2/files/digest-pcsx2-0.41
@@ -0,0 +1 @@
+MD5 1748f41ba1b0b61cbff5b6f61285cf0b Pcsx2Src-0.41.tgz 588804
diff --git a/app-emulation/pcsx2/files/pcsx2 b/app-emulation/pcsx2/files/pcsx2
new file mode 100644
index 000000000000..6a4776c3c882
--- /dev/null
+++ b/app-emulation/pcsx2/files/pcsx2
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+source /sbin/functions.sh
+
+if [ ! -f ${HOME}/.pcsx2/Pcsx2.cfg ]; then
+ einfo You are running PCSX2 for the first time.
+ einfo Setting up your PCSX2 environment... Please wait...
+
+ mkdir -p ${HOME}/.pcsx2
+ cd ${HOME}/.pcsx2
+ mkdir Bios Docs Plugins host memcards snap
+
+ ln -s /usr/games/bin/pcsx2.bin pcsx2
+ ln -s /usr/games/lib/ps2emu/plugins/* Plugins/
+ ln -s /usr/games/lib/ps2emu/Langs Langs
+
+ cd Bios
+ if [ -f /usr/games/lib/ps2emu/bios/scph1001.bin ]; then
+ ln -s /usr/games/lib/ps2emu/bios/scph1001.bin .
+ biosname=scph1001.bin
+ else
+ biosname=HLE
+ fi
+ cd ..
+
+ cat >${HOME}/.pcsx2/Pcsx2.cfg <<EOF
+Bios = $biosname
+GS = $(basename $(ls Plugins/libGS* | cut -f1 -d\ ) )
+SPU2 = $(basename $(ls Plugins/libSPU2* | cut -f1 -d\ ) )
+CDVD = $(basename $(ls Plugins/libCDVD* | cut -f1 -d\ ) )
+PAD1 = $(basename $(ls Plugins/libPADxwin-* | cut -f1 -d\ ) )
+PAD2 = $(basename $(ls Plugins/libPADxwin-* | cut -f1 -d\ ) )
+Mcd1 = ${HOME}/.pcsx2/memcards/Mcd001.mcr
+Mcd2 = ${HOME}/.pcsx2/memcards/Mcd002.mcr
+PluginsDir = ${HOME}/.pcsx2/Plugins/
+BiosDir = ${HOME}/.pcsx2/Bios/
+Cpu = 0
+PsxOut = 0
+varLog = 0
+Lang = en
+EOF
+
+fi
+
+cd ${HOME}/.pcsx2/
+
+ln -s /usr/games/lib/ps2emu/cfg/* cfg/ &>/dev/null
+ln -s /usr/games/lib/ps2emu/plugins/* plugins/ &>/dev/null
+
+exec ./pcsx2 "$@"
diff --git a/app-emulation/pcsx2/pcsx2-0.41.ebuild b/app-emulation/pcsx2/pcsx2-0.41.ebuild
new file mode 100644
index 000000000000..3644c1a9d64c
--- /dev/null
+++ b/app-emulation/pcsx2/pcsx2-0.41.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/pcsx2/pcsx2-0.41.ebuild,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+inherit games eutils
+
+DESCRIPTION="Playstation2 emulator"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="http://www.pcsx2.net/download/0.4release/Pcsx2Src-${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+
+RDEPEND="virtual/x11
+ =x11-libs/gtk+-1*
+ || (
+ app-emulation/ps2emu-cddvdlinuz
+ app-emulation/ps2emu-cdvdiso
+ )
+ app-emulation/ps2emu-gssoft
+ app-emulation/ps2emu-padxwin
+ app-emulation/ps2emu-spu2null"
+DEPEND="${RDEPEND}
+ dev-lang/nasm"
+
+S=${WORKDIR}/Pcsx2Src
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${PV}-time-renames.patch
+}
+
+src_compile() {
+ cd Linux
+ emake OPTIMIZE="${CFLAGS}" || die
+}
+
+src_install() {
+ newgamesbin Linux/pcsx2 pcsx2.bin
+ dogamesbin ${FILESDIR}/pcsx2
+ dodir ${GAMES_LIBDIR}/ps2emu/Langs
+ cp -r Intl/Langs/* ${D}/${GAMES_LIBDIR}/ps2emu/Langs/
+ dodoc Docs/*.txt
+ prepgamesdirs
+}
diff --git a/app-emulation/ps2emu-cddvdlinuz/ChangeLog b/app-emulation/ps2emu-cddvdlinuz/ChangeLog
new file mode 100644
index 000000000000..64755ac08074
--- /dev/null
+++ b/app-emulation/ps2emu-cddvdlinuz/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for app-emulation/ps2emu-cddvdlinuz
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/ps2emu-cddvdlinuz/ChangeLog,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+*ps2emu-cddvdlinuz-0.3 (14 Aug 2003)
+
+ 14 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/app-emulation/ps2emu-cddvdlinuz/Manifest b/app-emulation/ps2emu-cddvdlinuz/Manifest
new file mode 100644
index 000000000000..d722b2314105
--- /dev/null
+++ b/app-emulation/ps2emu-cddvdlinuz/Manifest
@@ -0,0 +1,8 @@
+MD5 f2934619d2831a9f614977ea1047300e ps2emu-cddvdlinuz-0.3.ebuild 809
+MD5 01d21af1bbe9f5f447154e46a7430496 files/0.5-makefile.patch 806
+MD5 4a8e97848fc551a45b1e00021333f575 files/digest-ps2emu-gssoft-0.5 59
+MD5 98ef7264ce8a7cfde2d664a0fb3dbabb files/digest-ps2emu-cdvdiso-0.2 60
+MD5 fdaa16c333aac38e52823d86f45c8053 files/0.2-makefile.patch 443
+MD5 d6c24c1b968339f45513edac0bd76c5f files/digest-ps2emu-cddvd-0.3 60
+MD5 ff9fe8eafc781375748f9b2a5e7204b5 files/0.3-makefile.patch 455
+MD5 d6c24c1b968339f45513edac0bd76c5f files/digest-ps2emu-cddvdlinuz-0.3 60
diff --git a/app-emulation/ps2emu-cddvdlinuz/files/0.3-makefile.patch b/app-emulation/ps2emu-cddvdlinuz/files/0.3-makefile.patch
new file mode 100644
index 000000000000..c7b5c30157a4
--- /dev/null
+++ b/app-emulation/ps2emu-cddvdlinuz/files/0.3-makefile.patch
@@ -0,0 +1,11 @@
+--- Src/Makefile.orig 2003-08-14 21:02:15.411249256 -0400
++++ Src/Makefile 2003-08-14 21:02:22.793127040 -0400
+@@ -2,7 +2,7 @@
+ VERSION = 0
+ BUILD = 3
+ PLUGIN = libCDVDlinuz-${VERSION}.${BUILD}.so
+-CFLAGS+= -fPIC -Wall -O2 -fomit-frame-pointer -D__LINUX__
++CFLAGS+= -fPIC -Wall $(OPTFLAGS) -D__LINUX__
+ OBJECTS = CDVD.o interface.o support.o
+ LIBS = $(shell gtk-config --libs)
+ CFLAGS+= $(shell gtk-config --cflags) -DVERSION=${VERSION} -DBUILD=${BUILD}
diff --git a/app-emulation/ps2emu-cddvdlinuz/files/digest-ps2emu-cddvdlinuz-0.3 b/app-emulation/ps2emu-cddvdlinuz/files/digest-ps2emu-cddvdlinuz-0.3
new file mode 100644
index 000000000000..3d95670ed018
--- /dev/null
+++ b/app-emulation/ps2emu-cddvdlinuz/files/digest-ps2emu-cddvdlinuz-0.3
@@ -0,0 +1 @@
+MD5 cd9cf5e6cb9cb34470a0e1b68419e30c CDVDlinuz-0.3.gz 20048
diff --git a/app-emulation/ps2emu-cddvdlinuz/ps2emu-cddvdlinuz-0.3.ebuild b/app-emulation/ps2emu-cddvdlinuz/ps2emu-cddvdlinuz-0.3.ebuild
new file mode 100644
index 000000000000..ac8e80d47b1a
--- /dev/null
+++ b/app-emulation/ps2emu-cddvdlinuz/ps2emu-cddvdlinuz-0.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/ps2emu-cddvdlinuz/ps2emu-cddvdlinuz-0.3.ebuild,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+inherit games
+
+DESCRIPTION="PSEmu2 CD/DVD plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="http://www.pcsx2.net/download/0.4release/CDVDlinuz-${PV}.gz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND="=x11-libs/gtk+-1*"
+
+S=${WORKDIR}/CDVDlinuz
+
+src_unpack() {
+ unpack ${A}
+ tar -xf CDVDlinuz-${PV} || die "unpacking tar"
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-makefile.patch
+}
+
+src_compile() {
+ cd Src
+ emake OPTFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ dodoc ReadMe.txt
+ cd Src
+ exeinto ${GAMES_LIBDIR}/ps2emu/plugins
+ doexe lib*
+ prepgamesdirs
+}
diff --git a/app-emulation/ps2emu-cdvdiso/ChangeLog b/app-emulation/ps2emu-cdvdiso/ChangeLog
new file mode 100644
index 000000000000..f593f1a1f26f
--- /dev/null
+++ b/app-emulation/ps2emu-cdvdiso/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for app-emulation/ps2emu-cdvdiso
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/ps2emu-cdvdiso/ChangeLog,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+*ps2emu-cdvdiso-0.2 (14 Aug 2003)
+
+ 14 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/app-emulation/ps2emu-cdvdiso/files/0.2-makefile.patch b/app-emulation/ps2emu-cdvdiso/files/0.2-makefile.patch
new file mode 100644
index 000000000000..b05e8bb61494
--- /dev/null
+++ b/app-emulation/ps2emu-cdvdiso/files/0.2-makefile.patch
@@ -0,0 +1,11 @@
+--- src/Linux/Makefile.orig 2003-08-14 20:56:46.568240992 -0400
++++ src/Linux/Makefile 2003-08-14 20:56:54.059102208 -0400
+@@ -6,7 +6,7 @@
+ BUILD = 2
+ PLUGIN = libCDVDiso-${VERSION}.${BUILD}.so
+ CFG = cfgCDVDiso
+-CFLAGS = -fPIC -Wall -O2 -fomit-frame-pointer -I.. -I. -D__LINUX__
++CFLAGS = -fPIC -Wall $(OPTFLAGS) -I.. -I. -D__LINUX__
+ OBJECTS = ../CDVDiso.o Config.o Linux.o
+ CFGOBJS = conf.o interface.o support.o Config.o
+ LIBS = -lz -lbz2
diff --git a/app-emulation/ps2emu-cdvdiso/files/digest-ps2emu-cdvdiso-0.2 b/app-emulation/ps2emu-cdvdiso/files/digest-ps2emu-cdvdiso-0.2
new file mode 100644
index 000000000000..257b86e02015
--- /dev/null
+++ b/app-emulation/ps2emu-cdvdiso/files/digest-ps2emu-cdvdiso-0.2
@@ -0,0 +1 @@
+MD5 9dac871710e7d5fe56db66a4917fca65 CDVDiso-0.2.zip 151378
diff --git a/app-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.2.ebuild b/app-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.2.ebuild
new file mode 100644
index 000000000000..1349bd174a80
--- /dev/null
+++ b/app-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.2.ebuild,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+inherit games
+
+DESCRIPTION="PSEmu2 CD/DVD iso plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="http://www.pcsx2.net/download/0.4release/CDVDiso-${PV}.zip"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND="=x11-libs/gtk+-1*"
+
+S=${WORKDIR}/CDVDiso
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-makefile.patch
+}
+
+src_compile() {
+ cd src/Linux
+ emake OPTFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ dodoc ReadMe.txt
+ cd src/Linux
+ exeinto ${GAMES_LIBDIR}/ps2emu/plugins
+ doexe lib*
+ exeinto ${GAMES_LIBDIR}/ps2emu/cfg
+ doexe cfgCDVDiso
+ prepgamesdirs
+}
diff --git a/app-emulation/ps2emu-gssoft/ChangeLog b/app-emulation/ps2emu-gssoft/ChangeLog
new file mode 100644
index 000000000000..8aecc97d685d
--- /dev/null
+++ b/app-emulation/ps2emu-gssoft/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for app-emulation/ps2emu-gssoft
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/ps2emu-gssoft/ChangeLog,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+*ps2emu-gssoft-0.5 (14 Aug 2003)
+
+ 14 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/app-emulation/ps2emu-gssoft/files/0.5-makefile.patch b/app-emulation/ps2emu-gssoft/files/0.5-makefile.patch
new file mode 100644
index 000000000000..c0e79a8d0c75
--- /dev/null
+++ b/app-emulation/ps2emu-gssoft/files/0.5-makefile.patch
@@ -0,0 +1,21 @@
+--- Src/Linux/Makefile.orig 2003-08-14 13:11:45.664823032 -0400
++++ Src/Linux/Makefile 2003-08-14 13:13:07.997306592 -0400
+@@ -5,13 +5,17 @@
+ VERSION = 0
+ BUILD = 5
+ PLUGIN = libGSsoftx-${VERSION}.${BUILD}.so
+-CFLAGS+= -fPIC -Wall -O3 -fomit-frame-pointer -I. -I..
++CFLAGS+= -fPIC -Wall $(OPTFLAGS) -I. -I..
+ OBJS = ../GS.o ../Prim.o ../Soft.o ../Draw.o ../Texts.o ../Color.o
+ OBJS+= X11.o Conf.o interface.o support.o DrawString.o
+ DEPS:= $(OBJS:.o=.d)
+ LIBS = $(shell gtk-config --libs) -lX11
+ CFLAGS+= $(shell gtk-config --cflags) -D__LINUX__ -DVERSION=${VERSION} -DBUILD=${BUILD}
+
++ifeq (${USE_SDL},1)
++ CFLAGS+= $(shell sdl-config --cflags) -I../../nsx2/ -I../../nsx2/iniapi
++ LIBS+= $(shell sdl-config --libs)
++endif
+ ifeq (${USE_DGA2}, TRUE)
+ CFLAGS+= -DUSE_DGA2
+ LIBS+= -lXxf86dga
diff --git a/app-emulation/ps2emu-gssoft/files/digest-ps2emu-gssoft-0.5 b/app-emulation/ps2emu-gssoft/files/digest-ps2emu-gssoft-0.5
new file mode 100644
index 000000000000..8a4eb33b1d8f
--- /dev/null
+++ b/app-emulation/ps2emu-gssoft/files/digest-ps2emu-gssoft-0.5
@@ -0,0 +1 @@
+MD5 0c9bbadca3b483a68b785c8ba61f29cf Gssoft-0.5.zip 188616
diff --git a/app-emulation/ps2emu-gssoft/ps2emu-gssoft-0.5.ebuild b/app-emulation/ps2emu-gssoft/ps2emu-gssoft-0.5.ebuild
new file mode 100644
index 000000000000..c3960f00df11
--- /dev/null
+++ b/app-emulation/ps2emu-gssoft/ps2emu-gssoft-0.5.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/ps2emu-gssoft/ps2emu-gssoft-0.5.ebuild,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+inherit games
+
+DESCRIPTION="PSEmu2 GPU plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="http://www.pcsx2.net/download/0.4release/Gssoft-${PV}.zip"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND="virtual/opengl
+ virtual/x11"
+# sdl? ( media-libs/libsdl )"
+
+S=${WORKDIR}/GSsoft-${PV}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-makefile.patch
+}
+
+src_compile() {
+ cd Src/Linux
+ emake OPTFLAGS="${CFLAGS}" || die "building X"
+ mv lib* ${S}/
+ #requires stuff from nSX2 which atm is win32 only
+ #if [ `use sdl` ] ; then
+ # cd ..
+ # ln -s GS.h gs.h
+ # epatch ${FILESDIR}/${PV}-sdl.patch
+ # mv Linux-SDL/* Linux/
+ # cd Linux
+ # make clean || die "making clean"
+ # emake OPTFLAGS="${CFLAGS}" || die "building sdl"
+ #fi
+}
+
+src_install() {
+ dodoc ReadMe.txt
+ exeinto ${GAMES_LIBDIR}/ps2emu/plugins
+ doexe lib*
+ prepgamesdirs
+}
diff --git a/app-emulation/ps2emu-padxwin/ChangeLog b/app-emulation/ps2emu-padxwin/ChangeLog
new file mode 100644
index 000000000000..27cccef244fa
--- /dev/null
+++ b/app-emulation/ps2emu-padxwin/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for app-emulation/ps2emu-padxwin
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/ps2emu-padxwin/ChangeLog,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+*ps2emu-padxwin-0.3 (14 Aug 2003)
+
+ 14 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/app-emulation/ps2emu-padxwin/files/0.3-makefile.patch b/app-emulation/ps2emu-padxwin/files/0.3-makefile.patch
new file mode 100644
index 000000000000..e819216106ae
--- /dev/null
+++ b/app-emulation/ps2emu-padxwin/files/0.3-makefile.patch
@@ -0,0 +1,11 @@
+--- Src/Makefile.orig 2003-08-14 21:09:59.330722776 -0400
++++ Src/Makefile 2003-08-14 21:10:08.885270264 -0400
+@@ -2,7 +2,7 @@
+ VERSION = 0
+ BUILD = 3
+ PLUGIN = libPADxwin-${VERSION}.${BUILD}.so
+-CFLAGS = -fPIC -Wall -O2 -fomit-frame-pointer -D__LINUX__
++CFLAGS = -fPIC -Wall $(OPTFLAGS) -D__LINUX__
+ OBJECTS = PAD.o Conf.o
+ OBJECTS+= interface.o support.o
+ LIBS = $(shell gtk-config --libs)
diff --git a/app-emulation/ps2emu-padxwin/files/digest-ps2emu-padxwin-0.3 b/app-emulation/ps2emu-padxwin/files/digest-ps2emu-padxwin-0.3
new file mode 100644
index 000000000000..253206c46afe
--- /dev/null
+++ b/app-emulation/ps2emu-padxwin/files/digest-ps2emu-padxwin-0.3
@@ -0,0 +1 @@
+MD5 12d166dbe8e84c4db459ab335ceb564b PADxwin-0.3.gz 21351
diff --git a/app-emulation/ps2emu-padxwin/ps2emu-padxwin-0.3.ebuild b/app-emulation/ps2emu-padxwin/ps2emu-padxwin-0.3.ebuild
new file mode 100644
index 000000000000..2b978e99261e
--- /dev/null
+++ b/app-emulation/ps2emu-padxwin/ps2emu-padxwin-0.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/ps2emu-padxwin/ps2emu-padxwin-0.3.ebuild,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+inherit games
+
+DESCRIPTION="PSEmu2 PAD plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="http://www.pcsx2.net/download/0.4release/PADxwin-${PV}.gz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND="=x11-libs/gtk+-1*"
+
+S=${WORKDIR}/PADxwin
+
+src_unpack() {
+ unpack ${A}
+ tar -xf PADxwin-${PV} || die "unpacking tar"
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-makefile.patch
+}
+
+src_compile() {
+ cd Src
+ emake OPTFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ dodoc ReadMe.txt
+ cd Src
+ exeinto ${GAMES_LIBDIR}/ps2emu/plugins
+ doexe lib*
+ prepgamesdirs
+}
diff --git a/app-emulation/ps2emu-spu2null/ChangeLog b/app-emulation/ps2emu-spu2null/ChangeLog
new file mode 100644
index 000000000000..9be9ce36fd6c
--- /dev/null
+++ b/app-emulation/ps2emu-spu2null/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for app-emulation/ps2emu-spu2null
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/ps2emu-spu2null/ChangeLog,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+*ps2emu-spu2null-0.2 (14 Aug 2003)
+
+ 14 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/app-emulation/ps2emu-spu2null/files/0.2-makefile.patch b/app-emulation/ps2emu-spu2null/files/0.2-makefile.patch
new file mode 100644
index 000000000000..468f96b3408b
--- /dev/null
+++ b/app-emulation/ps2emu-spu2null/files/0.2-makefile.patch
@@ -0,0 +1,11 @@
+--- Src/Makefile.orig 2003-08-14 21:14:02.092817328 -0400
++++ Src/Makefile 2003-08-14 21:14:09.306720648 -0400
+@@ -4,7 +4,7 @@
+ VERSION = 0
+ BUILD = 2
+ PLUGIN = libSPU2null-${VERSION}.${BUILD}.so
+-CFLAGS+= -fPIC -Wall -O2 -fomit-frame-pointer -D__LINUX__
++CFLAGS+= -fPIC -Wall $(OPTFLAGS) -D__LINUX__
+ OBJS = SPU2.o
+ DEPS:= $(OBJS:.o=.d)
+ LIBS = $(shell gtk-config --libs)
diff --git a/app-emulation/ps2emu-spu2null/files/digest-ps2emu-spu2null-0.2 b/app-emulation/ps2emu-spu2null/files/digest-ps2emu-spu2null-0.2
new file mode 100644
index 000000000000..d307f631d7fb
--- /dev/null
+++ b/app-emulation/ps2emu-spu2null/files/digest-ps2emu-spu2null-0.2
@@ -0,0 +1 @@
+MD5 7c778c52bd7233910baa573e502c7d36 SPU2null-0.2.zip 38242
diff --git a/app-emulation/ps2emu-spu2null/ps2emu-spu2null-0.2.ebuild b/app-emulation/ps2emu-spu2null/ps2emu-spu2null-0.2.ebuild
new file mode 100644
index 000000000000..ddbe4be73be8
--- /dev/null
+++ b/app-emulation/ps2emu-spu2null/ps2emu-spu2null-0.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/ps2emu-spu2null/ps2emu-spu2null-0.2.ebuild,v 1.1 2003/08/15 01:26:15 vapier Exp $
+
+inherit games
+
+DESCRIPTION="PSEmu2 NULL Sound plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="http://www.pcsx2.net/download/0.4release/SPU2null-${PV}.zip"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND="=x11-libs/gtk+-1*"
+
+S=${WORKDIR}/SPU2null
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-makefile.patch
+}
+
+src_compile() {
+ cd Src
+ emake OPTFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ dodoc ReadMe.txt
+ cd Src
+ exeinto ${GAMES_LIBDIR}/ps2emu/plugins
+ doexe lib*
+ prepgamesdirs
+}