summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@howl.(none)>2008-06-05 22:16:31 -0400
committerroot <root@howl.(none)>2008-06-05 22:16:31 -0400
commit9cab7a4a5007c551dd4b3fb0df97902469377ff2 (patch)
tree79a207b83e5d0070084ecbca69046c6694537935 /games-emulation
parentAdd .nfs* to global .gitignore. (diff)
downloadeatnumber1-9cab7a4a5007c551dd4b3fb0df97902469377ff2.tar.gz
eatnumber1-9cab7a4a5007c551dd4b3fb0df97902469377ff2.tar.bz2
eatnumber1-9cab7a4a5007c551dd4b3fb0df97902469377ff2.zip
Add pcsx2 and it's dependencies.
Diffstat (limited to 'games-emulation')
-rw-r--r--games-emulation/pcsx2/Manifest7
-rw-r--r--games-emulation/pcsx2/files/pcsx210
-rw-r--r--games-emulation/pcsx2/files/pcsx2-0.9.4-add-nls.patch21
-rw-r--r--games-emulation/pcsx2/files/pcsx2-0.9.4-custom-cflags.patch34
-rw-r--r--games-emulation/pcsx2/files/pcsx2-0.9.4-plugin-inis.patch15
-rw-r--r--games-emulation/pcsx2/files/pcsx2-gcc43.patch12
-rw-r--r--games-emulation/pcsx2/pcsx2-0.9.4.ebuild138
-rw-r--r--games-emulation/ps2emu-cdvdiso/Manifest2
-rw-r--r--games-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.7.ebuild44
-rw-r--r--games-emulation/ps2emu-cdvdlinuz/Manifest2
-rw-r--r--games-emulation/ps2emu-cdvdlinuz/ps2emu-cdvdlinuz-0.4.ebuild45
-rw-r--r--games-emulation/ps2emu-cdvdnull/Manifest2
-rw-r--r--games-emulation/ps2emu-cdvdnull/ps2emu-cdvdnull-0.6.ebuild42
-rw-r--r--games-emulation/ps2emu-dev9null/Manifest2
-rw-r--r--games-emulation/ps2emu-dev9null/ps2emu-dev9null-0.3.ebuild40
-rw-r--r--games-emulation/ps2emu-fwnull/Manifest2
-rw-r--r--games-emulation/ps2emu-fwnull/ps2emu-fwnull-0.4.ebuild42
-rw-r--r--games-emulation/ps2emu-peopsspu2/Manifest2
-rw-r--r--games-emulation/ps2emu-peopsspu2/ps2emu-peopsspu2-1.9.0.ebuild67
-rw-r--r--games-emulation/ps2emu-spu2null/Manifest2
-rw-r--r--games-emulation/ps2emu-spu2null/ps2emu-spu2null-0.7.1.ebuild40
-rw-r--r--games-emulation/ps2emu-usbnull/Manifest2
-rw-r--r--games-emulation/ps2emu-usbnull/ps2emu-usbnull-0.4-r1.ebuild42
-rw-r--r--games-emulation/ps2emu-zerogs/Manifest3
-rw-r--r--games-emulation/ps2emu-zerogs/files/ps2emu-zerogs-gcc43.patch12
-rw-r--r--games-emulation/ps2emu-zerogs/ps2emu-zerogs-0.96.7.ebuild63
-rw-r--r--games-emulation/ps2emu-zeropad/Manifest2
-rw-r--r--games-emulation/ps2emu-zeropad/ps2emu-zeropad-0.1.0.ebuild47
28 files changed, 742 insertions, 0 deletions
diff --git a/games-emulation/pcsx2/Manifest b/games-emulation/pcsx2/Manifest
new file mode 100644
index 0000000..0b6282e
--- /dev/null
+++ b/games-emulation/pcsx2/Manifest
@@ -0,0 +1,7 @@
+AUX pcsx2 242 RMD160 f3351230c9249ce3e079d2be02b8e4a1a8c2ec27 SHA1 c38661d772ccf7ee7ce11c8613c83ef20a766fdb SHA256 3b5b7d4175d7f62ec3ee55141ad4542eb4c284a6f814cd64ff3c96acd8283e68
+AUX pcsx2-0.9.4-add-nls.patch 708 RMD160 9f06fde79480153d82a6e49cbabf53848b857d27 SHA1 4d168cbd38cbe66887573f856cd95f30629e4bca SHA256 e4e43f9d627f3e23b3116b90885fbe6daf94ce0f3604ca63d1f10ec369df014b
+AUX pcsx2-0.9.4-custom-cflags.patch 841 RMD160 e223104d1a711fcdae50b77317c6adadcfd3fb34 SHA1 239ca4910d7aec4a11f3d17568b2d8dd42d9411b SHA256 a19b434a169cc5d6bf2fe9a903375ecad887d88d28dce2a3289abf13771b754a
+AUX pcsx2-0.9.4-plugin-inis.patch 630 RMD160 e4667453369e90664c556590e7f7b08b1e78442e SHA1 019a96248be7f40b7743706fbfa1f4ecd7986f27 SHA256 481bc24dc073174e9f8d2f84b18777d2aac93a90a5a4cdff4bd871cc4dff24c1
+AUX pcsx2-gcc43.patch 274 RMD160 b0542a3d552b10c4f7bf7a3943d2e34ff724b4a3 SHA1 45783c849f7ae44424f103b80e822cef31a424e6 SHA256 938b4d8050a029f67ad12a3668f7a69a9be7b0dc45a50fd39845f18b29fffdde
+DIST pcsx2-0.9.4.tar.gz 6098636 RMD160 3ae7801900833214613c4a8a346d295065bdaab7 SHA1 a471ce5614efdb5e215c0b09f75cc7550bb7a461 SHA256 208420ff1d83116d95029d0d1da8d01383d06a67aa1c16e10947cfd727d7740c
+EBUILD pcsx2-0.9.4.ebuild 3421 RMD160 8eb84a12dea99812c8a47d57f92afb5602c7a2c2 SHA1 7a3d9d061fca7fc7931465e69ed1091f95535c4d SHA256 e087e67d6698480186b30fc9c2d6de02946133d0a1cb9e7f8a39533413179911
diff --git a/games-emulation/pcsx2/files/pcsx2 b/games-emulation/pcsx2/files/pcsx2
new file mode 100644
index 0000000..2f7f653
--- /dev/null
+++ b/games-emulation/pcsx2/files/pcsx2
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+mkdir -p ~/.PS2E ~/.pcsx2/bios
+cd ~/.pcsx2
+ln -snf %GAMES_DATADIR%/pcsx2/* .
+ln -snf %GAMES_DATADIR%/pcsx2/.pixmaps
+ln -snf %GAMES_LIBDIR%/ps2emu/plugins
+ln -snf plugins/cfg
+ln -snf ../.PS2E inis
+exec %GAMES_BINDIR%/pcsx2.bin ${@}
diff --git a/games-emulation/pcsx2/files/pcsx2-0.9.4-add-nls.patch b/games-emulation/pcsx2/files/pcsx2-0.9.4-add-nls.patch
new file mode 100644
index 0000000..7add9fa
--- /dev/null
+++ b/games-emulation/pcsx2/files/pcsx2-0.9.4-add-nls.patch
@@ -0,0 +1,21 @@
+--- configure.ac.old 2008-02-23 22:42:48.751259786 +0000
++++ configure.ac 2008-02-23 22:44:38.140260060 +0000
+@@ -107,7 +107,12 @@
+ AC_CHECK_LIB(stdc++,main,[LIBS="$LIBS -lstdc++"])
+ AC_CHECK_LIB(z,main,[LIBS="$LIBS -lz"])
+
+-AC_CHECK_HEADER([libintl.h], [AC_DEFINE(ENABLE_NLS,1,[__x86_64__])])
++AC_ARG_ENABLE(nls, AC_HELP_STRING([--disable-nls], [Disable nls support]),
++ nls=$enableval,nls=yes)
++if test "x$nls" == xyes
++then
++ AC_CHECK_HEADER([libintl.h], [AC_DEFINE(ENABLE_NLS,1,[__x86_64__])])
++fi
+
+ AC_OUTPUT([
+ Makefile
+@@ -132,3 +137,4 @@
+ echo " Force sse3? $sse3"
+ echo " Recompilers enabled? $recbuild"
+ echo " Virtual memory build? $vmbuild"
++echo " nls support? $nls"
diff --git a/games-emulation/pcsx2/files/pcsx2-0.9.4-custom-cflags.patch b/games-emulation/pcsx2/files/pcsx2-0.9.4-custom-cflags.patch
new file mode 100644
index 0000000..7bc8df3
--- /dev/null
+++ b/games-emulation/pcsx2/files/pcsx2-0.9.4-custom-cflags.patch
@@ -0,0 +1,34 @@
+--- configure.ac.old 2008-03-02 14:49:49.564590000 +0000
++++ configure.ac 2008-03-02 14:52:53.589590315 +0000
+@@ -11,10 +11,9 @@
+ dnl necessary for compiling assembly
+ AM_PROG_AS
+
+-CFLAGS=
+-CPPFLAGS=
+-CXXFLAGS=
+-CCASFLAGS=
++CFLAGS="-O1 -finline-functions ${CFLAGS}"
++CXXFLAGS="-O1 -finline-functions ${CXXFLAGS}"
++CCASFLAGS="-O1 -finline-functions ${CCASFLAGS}"
+
+ dnl Check for debug build
+ AC_MSG_CHECKING(debug build)
+@@ -23,16 +22,10 @@
+ if test "x$debug" == xyes
+ then
+ AC_DEFINE(_DEBUG,1,[_DEBUG])
+- CFLAGS+=" -g "
+- CPPFLAGS+=" -g "
+- CXXFLAGS+=" -g "
+- CCASFLAGS+=" -D_DEBUG -g "
++ CCASFLAGS+=" -D_DEBUG "
+ MYOBJDIR="Debug"
+ else
+ AC_DEFINE(NDEBUG,1,[NDEBUG])
+- CFLAGS+=" -O3 -fomit-frame-pointer "
+- CPPFLAGS+=" -O3 -fomit-frame-pointer "
+- CXXFLAGS+=" -O3 -fomit-frame-pointer "
+ MYOBJDIR="Release"
+ fi
+ AC_MSG_RESULT($debug)
diff --git a/games-emulation/pcsx2/files/pcsx2-0.9.4-plugin-inis.patch b/games-emulation/pcsx2/files/pcsx2-0.9.4-plugin-inis.patch
new file mode 100644
index 0000000..93d3155
--- /dev/null
+++ b/games-emulation/pcsx2/files/pcsx2-0.9.4-plugin-inis.patch
@@ -0,0 +1,15 @@
+--- Linux.old/GtkGui.c 2007-11-19 07:21:55.000000000 +0000
++++ Linux/GtkGui.c 2008-02-25 11:57:37.167773962 +0000
+@@ -723,12 +723,9 @@
+ strcpy(file, Config.PluginsDir); \
+ strcat(file, plugin); \
+ drv = SysLoadLibrary(file); \
+- getcwd(file, ARRAYSIZE(file)); /* store current dir */ \
+- chdir(Config.PluginsDir); /* change dirs so that plugins can find their config file*/ \
+ if (drv == NULL) return; \
+ conf = (src) SysLoadSym(drv, name); \
+ if (SysLibError() == NULL) conf(); \
+- chdir(file); /* change back*/ \
+ SysCloseLibrary(drv);
+
+ #define TestPlugin(src, confs, plugin, name) \
diff --git a/games-emulation/pcsx2/files/pcsx2-gcc43.patch b/games-emulation/pcsx2/files/pcsx2-gcc43.patch
new file mode 100644
index 0000000..34b89b8
--- /dev/null
+++ b/games-emulation/pcsx2/files/pcsx2-gcc43.patch
@@ -0,0 +1,12 @@
+diff -Nur pcsx2.orig/GS.cpp pcsx2/GS.cpp
+--- pcsx2.orig/GS.cpp 2008-06-03 14:26:12.000000000 +0200
++++ pcsx2/GS.cpp 2008-06-03 14:29:17.000000000 +0200
+@@ -28,6 +28,8 @@
+
+ #include <vector>
+ #include <list>
++#include <cstring>
++#include <cstdlib>
+
+ using namespace std;
+
diff --git a/games-emulation/pcsx2/pcsx2-0.9.4.ebuild b/games-emulation/pcsx2/pcsx2-0.9.4.ebuild
new file mode 100644
index 0000000..1d82364
--- /dev/null
+++ b/games-emulation/pcsx2/pcsx2-0.9.4.ebuild
@@ -0,0 +1,138 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games autotools eutils flag-o-matic
+
+DESCRIPTION="PlayStation2 emulator"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="mirror://sourceforge/pcsx2/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa debug devbuild nls oss vmbuild"
+
+CDEPEND="sys-libs/zlib
+ >=x11-libs/gtk+-2"
+
+DEPEND="${CDEPEND}
+ x11-proto/xproto"
+
+RDEPEND="${CDEPEND}
+ games-emulation/ps2emu-zerogs
+ games-emulation/ps2emu-zeropad
+ games-emulation/ps2emu-cdvdnull
+ games-emulation/ps2emu-dev9null
+ games-emulation/ps2emu-spu2null
+ games-emulation/ps2emu-fwnull
+ >=games-emulation/ps2emu-usbnull-0.4-r1
+ alsa? ( games-emulation/ps2emu-peopsspu2 )
+ oss? ( games-emulation/ps2emu-peopsspu2 )"
+
+LANGS="ar bg cz de du el es fr hb it ja pe pl po po_BR ro ru sh sw tc tr"
+
+for i in ${LANGS}; do
+ IUSE="${IUSE} linguas_${i}"
+done
+
+S="${WORKDIR}/${P}/${PN}"
+
+pkg_setup() {
+ local x
+
+ if ! use nls; then
+ for x in ${LANGS}; do
+ if [ -n "$(usev linguas_${x})" ]; then
+ eerror "Any language other than English is not supported with USE=\"-nls\""
+ die "Language ${x} not supported with USE=\"-nls\""
+ fi
+ done
+ fi
+
+ if use vmbuild; then
+ ewarn "Warning: Compilation is known to fail with the vmbuild use flag"
+ ewarn "enabled. The recommended use flags are USE=\"sse2 -vmbuild\"."
+ ewarn "Do not file a bug unless you are using the above USE flags."
+ ewarn "If you can get it to compile however, please file a bug or "
+ ewarn "contact me at eatnumber1@gmail.com."
+ ebeep 5
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Preserve custom CFLAGS passed to configure.
+ epatch "${FILESDIR}"/${P}-custom-cflags.patch
+
+ # Add nls support to the configure script.
+ epatch "${FILESDIR}"/${P}-add-nls.patch
+
+ # Allow plugin inis to be stored in ~/.pcsx2/inis.
+ epatch "${FILESDIR}"/${P}-plugin-inis.patch
+
+ eautoreconf -v --install || die
+}
+
+src_compile() {
+ local myconf
+ filter-flags -O0
+
+ if ! use x86 && ! use amd64; then
+ einfo "Recompiler not supported on this architecture. Disabling."
+ myconf=" --disable-recbuild"
+ fi
+
+ egamesconf \
+ $(use_enable devbuild) \
+ $(use_enable debug) \
+ $(use_enable nls) \
+ $(use_enable vmbuild) \
+ ${myconf} \
+ || die
+
+ emake || die
+}
+
+src_install() {
+ local x
+
+ keepdir "`games_get_libdir`/ps2emu/plugins"
+ dodoc Docs/*.txt || die "dodoc failed"
+ newgamesbin Linux/${PN} ${PN}.bin || die
+
+ sed \
+ -e "s:%GAMES_BINDIR%:${GAMES_BINDIR}:" \
+ -e "s:%GAMES_DATADIR%:${GAMES_DATADIR}:" \
+ -e "s:%GAMES_LIBDIR%:`games_get_libdir`:" \
+ "${FILESDIR}/${PN}" > "${D}${GAMES_BINDIR}/${PN}" || die
+
+ cd ../bin
+ dohtml -r compat_list/* || die
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r *.xml .pixmaps patches || die
+ insinto "${GAMES_DATADIR}/${PN}/Langs"
+
+ for x in ${LANGS}; do
+ if use linguas_${x}; then
+ [[ "${x/_/}" == "${x}" ]] && x=${x}_`echo ${x} | tr 'a-z' 'A-Z'`
+ doins -r Langs/${x} || die "doins for language ${x} failed"
+ fi
+ done
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ if ! use devbuild; then
+ ewarn "If this package exhibits random crashes, recompile ${PN}"
+ ewarn "with the devbuild use flag enabled. If that fixes it, file a bug."
+ echo
+ fi
+
+ elog "Please note that this ebuild installs does not install all the available"
+ elog "plugins. You will need to install other ps2emu plugins in order for the"
+ elog "for the emulator to be usable."
+}
diff --git a/games-emulation/ps2emu-cdvdiso/Manifest b/games-emulation/ps2emu-cdvdiso/Manifest
new file mode 100644
index 0000000..9662681
--- /dev/null
+++ b/games-emulation/ps2emu-cdvdiso/Manifest
@@ -0,0 +1,2 @@
+DIST pcsx2-0.9.4.tar.gz 6098636 RMD160 3ae7801900833214613c4a8a346d295065bdaab7 SHA1 a471ce5614efdb5e215c0b09f75cc7550bb7a461 SHA256 208420ff1d83116d95029d0d1da8d01383d06a67aa1c16e10947cfd727d7740c
+EBUILD ps2emu-cdvdiso-0.7.ebuild 867 RMD160 6fd2b73a9e20b7dc55b49b30deded69debb28d29 SHA1 4cae537bda6b2352e93957fd369ed310f0d0251c SHA256 118ad3c439425ff8bc93d4104b7c02da292e3b616d1c4f68237e8be3a8786970
diff --git a/games-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.7.ebuild b/games-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.7.ebuild
new file mode 100644
index 0000000..e0ad8c0
--- /dev/null
+++ b/games-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.7.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games
+
+PCSX2="pcsx2-0.9.4"
+
+DESCRIPTION="PS2Emu ISO CDVD plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="mirror://sourceforge/pcsx2/${PCSX2}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/bzip2
+ sys-libs/zlib
+ >=x11-libs/gtk+-2"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PCSX2}/plugins/cdvd/CDVDiso/src/Linux"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e '/^CC =/d' \
+ -e '/\bstrip\b/d' \
+ -e 's/-g\b//g' \
+ -e 's/CFLAGS =/CFLAGS +=/' \
+ Makefile || die
+}
+
+src_install() {
+ exeinto "`games_get_libdir`/ps2emu/plugins"
+ newexe libCDVDiso.so libCDVDiso.so.${PV} || die
+ exeinto "`games_get_libdir`/ps2emu/plugins/cfg"
+ doexe cfgCDVDiso || die
+ dodoc ../../ReadMe.txt || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-cdvdlinuz/Manifest b/games-emulation/ps2emu-cdvdlinuz/Manifest
new file mode 100644
index 0000000..7a3b26b
--- /dev/null
+++ b/games-emulation/ps2emu-cdvdlinuz/Manifest
@@ -0,0 +1,2 @@
+DIST pcsx2-0.9.4.tar.gz 6098636 RMD160 3ae7801900833214613c4a8a346d295065bdaab7 SHA1 a471ce5614efdb5e215c0b09f75cc7550bb7a461 SHA256 208420ff1d83116d95029d0d1da8d01383d06a67aa1c16e10947cfd727d7740c
+EBUILD ps2emu-cdvdlinuz-0.4.ebuild 937 RMD160 416bd146df569ce3a72561771360827bfeee4bf3 SHA1 383a3cc1cfad0426c7bd8ac0eb94cf6f20cdee00 SHA256 1d85f239c4cce477f871fe350094666823967089965a5273ac5fc56f308dac66
diff --git a/games-emulation/ps2emu-cdvdlinuz/ps2emu-cdvdlinuz-0.4.ebuild b/games-emulation/ps2emu-cdvdlinuz/ps2emu-cdvdlinuz-0.4.ebuild
new file mode 100644
index 0000000..d533fb7
--- /dev/null
+++ b/games-emulation/ps2emu-cdvdlinuz/ps2emu-cdvdlinuz-0.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games
+
+PCSX2="pcsx2-0.9.4"
+
+DESCRIPTION="PS2Emu CDVD plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="mirror://sourceforge/pcsx2/${PCSX2}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/bzip2
+ sys-libs/zlib
+ >=x11-libs/gtk+-2"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PCSX2}/plugins/cdvd/CDVDlinuz/Src/Linux"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e '/^CC =/d' \
+ -e '/\bstrip\b/d' \
+ -e 's/-O[0-9]\b//g' \
+ -e 's/-fomit-frame-pointer\b//g' \
+ -e 's/-fPIC/$(CFLAGS) -fPIC/g' \
+ Makefile || die
+}
+
+src_install() {
+ exeinto "`games_get_libdir`/ps2emu/plugins"
+ newexe libCDVDlinuz.so libCDVDlinuz.so.${PV} || die
+ exeinto "`games_get_libdir`/ps2emu/plugins/cfg"
+ doexe cfgCDVDlinuz || die
+ dodoc ../../readme.txt ../../ChangeLog.txt || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-cdvdnull/Manifest b/games-emulation/ps2emu-cdvdnull/Manifest
new file mode 100644
index 0000000..2b424c3
--- /dev/null
+++ b/games-emulation/ps2emu-cdvdnull/Manifest
@@ -0,0 +1,2 @@
+DIST pcsx2-0.9.4.tar.gz 6098636 RMD160 3ae7801900833214613c4a8a346d295065bdaab7 SHA1 a471ce5614efdb5e215c0b09f75cc7550bb7a461 SHA256 208420ff1d83116d95029d0d1da8d01383d06a67aa1c16e10947cfd727d7740c
+EBUILD ps2emu-cdvdnull-0.6.ebuild 817 RMD160 62b373fd61c4e590a1af298a1787f75d4010f5fc SHA1 6412c1f6857bb3b3f32ec26163881a4e979429b6 SHA256 63f446173282a4758ae15216e374cfdff7f52a6653295abef56ff60fd1997fc1
diff --git a/games-emulation/ps2emu-cdvdnull/ps2emu-cdvdnull-0.6.ebuild b/games-emulation/ps2emu-cdvdnull/ps2emu-cdvdnull-0.6.ebuild
new file mode 100644
index 0000000..473c63b
--- /dev/null
+++ b/games-emulation/ps2emu-cdvdnull/ps2emu-cdvdnull-0.6.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games
+
+PCSX2="pcsx2-0.9.4"
+
+DESCRIPTION="PS2Emu null CDVD plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="mirror://sourceforge/pcsx2/${PCSX2}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PCSX2}/plugins/cdvd/CDVDnull/Src"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e '/^CC =/d' \
+ -e '/\${STRIP}/d' \
+ -e 's/-O[0-9]\b//g' \
+ -e 's/-fomit-frame-pointer\b//g' \
+ -e 's/-ffast-math\b//g' \
+ -e "s/^OPTIMIZE = /OPTIMIZE = ${CFLAGS} /" \
+ Makefile || die
+}
+
+src_install() {
+ exeinto "`games_get_libdir`/ps2emu/plugins"
+ newexe libCDVDnull.so libCDVDnull.so.${PV} || die
+ dodoc ../ReadMe.txt || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-dev9null/Manifest b/games-emulation/ps2emu-dev9null/Manifest
new file mode 100644
index 0000000..132d9c2
--- /dev/null
+++ b/games-emulation/ps2emu-dev9null/Manifest
@@ -0,0 +1,2 @@
+DIST pcsx2-0.9.4.tar.gz 6098636 RMD160 3ae7801900833214613c4a8a346d295065bdaab7 SHA1 a471ce5614efdb5e215c0b09f75cc7550bb7a461 SHA256 208420ff1d83116d95029d0d1da8d01383d06a67aa1c16e10947cfd727d7740c
+EBUILD ps2emu-dev9null-0.3.ebuild 742 RMD160 c0c581ab57af8e2f3b18eac0ed71089e59f092f6 SHA1 2d800361415540f5e7510f1c2e73733f2623e9fd SHA256 53a4d4eff13d41c00d828eb84b51fbbdafae94e25790f72a95935fe5b907ac35
diff --git a/games-emulation/ps2emu-dev9null/ps2emu-dev9null-0.3.ebuild b/games-emulation/ps2emu-dev9null/ps2emu-dev9null-0.3.ebuild
new file mode 100644
index 0000000..55ebd64
--- /dev/null
+++ b/games-emulation/ps2emu-dev9null/ps2emu-dev9null-0.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games
+
+PCSX2="pcsx2-0.9.4"
+
+DESCRIPTION="PS2Emu null DEV9 plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="mirror://sourceforge/pcsx2/${PCSX2}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PCSX2}/plugins/dev9/dev9null/src"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e '/^CC =/d' \
+ -e '/\bstrip\b/d' \
+ -e 's/-O[0-9]\b//g' \
+ -e 's/-fomit-frame-pointer\b//g' \
+ Makefile || die
+}
+
+src_install() {
+ exeinto "`games_get_libdir`/ps2emu/plugins"
+ newexe libDEV9null.so libDEV9null.so.${PV} || die
+ dodoc ../ReadMe.txt || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-fwnull/Manifest b/games-emulation/ps2emu-fwnull/Manifest
new file mode 100644
index 0000000..a6c5b10
--- /dev/null
+++ b/games-emulation/ps2emu-fwnull/Manifest
@@ -0,0 +1,2 @@
+DIST pcsx2-0.9.4.tar.gz 6098636 RMD160 3ae7801900833214613c4a8a346d295065bdaab7 SHA1 a471ce5614efdb5e215c0b09f75cc7550bb7a461 SHA256 208420ff1d83116d95029d0d1da8d01383d06a67aa1c16e10947cfd727d7740c
+EBUILD ps2emu-fwnull-0.4.ebuild 839 RMD160 d943dd8d2db73cc84767d31f6a1f96979a28cb2a SHA1 04eb395ede744dfacb597f12f38318049bb781b8 SHA256 3a62dcd272cf1491cc11c8480484444a32613336f95f6b581cacc55850cd5631
diff --git a/games-emulation/ps2emu-fwnull/ps2emu-fwnull-0.4.ebuild b/games-emulation/ps2emu-fwnull/ps2emu-fwnull-0.4.ebuild
new file mode 100644
index 0000000..4216282
--- /dev/null
+++ b/games-emulation/ps2emu-fwnull/ps2emu-fwnull-0.4.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games
+
+PCSX2="pcsx2-0.9.4"
+
+DESCRIPTION="PS2Emu null FireWire plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="mirror://sourceforge/pcsx2/${PCSX2}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=x11-libs/gtk+-2"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PCSX2}/plugins/fw/FWnull/Linux"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e '/^CC =/d' \
+ -e '/\bstrip\b/d' \
+ -e 's/-O[0-9]\b//g' \
+ -e 's/-fomit-frame-pointer\b//g' \
+ Makefile || die
+}
+
+src_install() {
+ exeinto "`games_get_libdir`/ps2emu/plugins"
+ newexe libFWnull.so libFWnull.so.${PV} || die
+ exeinto "`games_get_libdir`/ps2emu/plugins/cfg"
+ doexe cfgFWnull || die
+ dodoc ../ReadMe.txt || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-peopsspu2/Manifest b/games-emulation/ps2emu-peopsspu2/Manifest
new file mode 100644
index 0000000..d02c1b7
--- /dev/null
+++ b/games-emulation/ps2emu-peopsspu2/Manifest
@@ -0,0 +1,2 @@
+DIST pcsx2-0.9.4.tar.gz 6098636 RMD160 3ae7801900833214613c4a8a346d295065bdaab7 SHA1 a471ce5614efdb5e215c0b09f75cc7550bb7a461 SHA256 208420ff1d83116d95029d0d1da8d01383d06a67aa1c16e10947cfd727d7740c
+EBUILD ps2emu-peopsspu2-1.9.0.ebuild 1270 RMD160 64a9ec266efa6629f66cf2aabee0014c2a372bde SHA1 4b73391df098986fe13bdaf9d7391123fe9a9dc2 SHA256 5ffc4af8a90f7b14761e50a216c2547444ef09602124d300b19abb999b82f470
diff --git a/games-emulation/ps2emu-peopsspu2/ps2emu-peopsspu2-1.9.0.ebuild b/games-emulation/ps2emu-peopsspu2/ps2emu-peopsspu2-1.9.0.ebuild
new file mode 100644
index 0000000..a13e59e
--- /dev/null
+++ b/games-emulation/ps2emu-peopsspu2/ps2emu-peopsspu2-1.9.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games
+
+PCSX2="pcsx2-0.9.4"
+
+DESCRIPTION="P.E.Op.S PS2Emu sound plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="mirror://sourceforge/pcsx2/${PCSX2}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa oss"
+
+DEPEND="alsa? ( media-libs/alsa-lib )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PCSX2}/plugins/spu2/PeopsSPU2"
+
+pkg_setup() {
+ if ! use oss && ! use alsa; then
+ die "Either the alsa or oss USE flag must be enabled!"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e '/^CC =/d' \
+ -e '/\bstrip\b/d' \
+ -e 's/-O[0-9]\b//g' \
+ -e 's/-fomit-frame-pointer\b//g' \
+ -e 's/-ffast-math\b//g' \
+ -e 's/CCFLAGS3 =/CCFLAGS3 = $(CFLAGS)/' \
+ Makefile || die
+}
+
+src_compile() {
+ if use oss; then
+ sed -i 's/USEALSA = .*$/USEALSA = FALSE/' Makefile
+ emake || die
+ fi
+
+ if use alsa; then
+ sed -i 's/USEALSA = .*$/USEALSA = TRUE/' Makefile
+ emake || die
+ fi
+}
+
+src_install() {
+ exeinto "`games_get_libdir`/ps2emu/plugins"
+
+ if use oss; then
+ newexe libspu2PeopsOSS.so.* libspu2PeopsOSS.so.${PV} || die
+ fi
+
+ if use alsa; then
+ newexe libspu2PeopsALSA.so.* libspu2PeopsALSA.so.${PV} || die
+ fi
+
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-spu2null/Manifest b/games-emulation/ps2emu-spu2null/Manifest
new file mode 100644
index 0000000..27bc2d8
--- /dev/null
+++ b/games-emulation/ps2emu-spu2null/Manifest
@@ -0,0 +1,2 @@
+DIST pcsx2-0.9.4.tar.gz 6098636 RMD160 3ae7801900833214613c4a8a346d295065bdaab7 SHA1 a471ce5614efdb5e215c0b09f75cc7550bb7a461 SHA256 208420ff1d83116d95029d0d1da8d01383d06a67aa1c16e10947cfd727d7740c
+EBUILD ps2emu-spu2null-0.7.1.ebuild 783 RMD160 36b35ab87c50065a2318fa142bde5150198f0a5c SHA1 c5d98a6528e22b83f8fbf5c7ef697173fb91b08a SHA256 3ee4aa4e9a4e1c1f9baff23aea3b632230852b220516fb30da1d20308d29c17c
diff --git a/games-emulation/ps2emu-spu2null/ps2emu-spu2null-0.7.1.ebuild b/games-emulation/ps2emu-spu2null/ps2emu-spu2null-0.7.1.ebuild
new file mode 100644
index 0000000..28490d0
--- /dev/null
+++ b/games-emulation/ps2emu-spu2null/ps2emu-spu2null-0.7.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games
+
+PCSX2="pcsx2-0.9.4"
+
+DESCRIPTION="PS2Emu null sound plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="mirror://sourceforge/pcsx2/${PCSX2}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=x11-libs/gtk+-2"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PCSX2}/plugins/spu2/SPU2null/Src"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e '/^CC =/d' \
+ -e '/\bstrip\b/d' \
+ -e 's/-O[0-9]\b//g' \
+ -e 's/-fomit-frame-pointer\b//g' \
+ Makefile || die
+}
+
+src_install() {
+ exeinto "`games_get_libdir`/ps2emu/plugins"
+ newexe libSPU2null.so libSPU2null.so.${PV} || die
+ dodoc ../ReadMe.txt Changelog.txt || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-usbnull/Manifest b/games-emulation/ps2emu-usbnull/Manifest
new file mode 100644
index 0000000..a5c18e6
--- /dev/null
+++ b/games-emulation/ps2emu-usbnull/Manifest
@@ -0,0 +1,2 @@
+DIST pcsx2-0.9.4.tar.gz 6098636 RMD160 3ae7801900833214613c4a8a346d295065bdaab7 SHA1 a471ce5614efdb5e215c0b09f75cc7550bb7a461 SHA256 208420ff1d83116d95029d0d1da8d01383d06a67aa1c16e10947cfd727d7740c
+EBUILD ps2emu-usbnull-0.4-r1.ebuild 839 RMD160 72470ff7ae018b4c37b5eda1e30cb6c66b772fb8 SHA1 f157765553ce18d0b1af619d1eb2ed4897aaf357 SHA256 c4e5f8dd6e4ea8bd3e8d1521ff7ed346a0be433d104dc76ff2344b181b18e781
diff --git a/games-emulation/ps2emu-usbnull/ps2emu-usbnull-0.4-r1.ebuild b/games-emulation/ps2emu-usbnull/ps2emu-usbnull-0.4-r1.ebuild
new file mode 100644
index 0000000..8482ed5
--- /dev/null
+++ b/games-emulation/ps2emu-usbnull/ps2emu-usbnull-0.4-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games
+
+PCSX2="pcsx2-0.9.4"
+
+DESCRIPTION="PS2Emu null USB plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="mirror://sourceforge/pcsx2/${PCSX2}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=x11-libs/gtk+-2"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PCSX2}/plugins/usb/USBnull/Linux"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e '/^CC =/d' \
+ -e '/\bstrip\b/d' \
+ -e 's/-O[0-9]\b//g' \
+ -e 's/-fomit-frame-pointer\b//g' \
+ Makefile || die
+}
+
+src_install() {
+ exeinto "`games_get_libdir`/ps2emu/plugins"
+ newexe libUSBnull.so libUSBnull.so.${PV} || die
+ exeinto "`games_get_libdir`/ps2emu/plugins/cfg"
+ doexe cfgUSBnull || die
+ dodoc ../ReadMe.txt || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-zerogs/Manifest b/games-emulation/ps2emu-zerogs/Manifest
new file mode 100644
index 0000000..55b95c9
--- /dev/null
+++ b/games-emulation/ps2emu-zerogs/Manifest
@@ -0,0 +1,3 @@
+AUX ps2emu-zerogs-gcc43.patch 363 RMD160 ab0e7b98e88cdc213e33273ba3c8cde1926e7bfc SHA1 7477c3f4c9d9c582553af63bbc696cbfcdf9b0a8 SHA256 80bd2bad1056fe02526c7b6dc7b45ffdc83419c0610e5ce5cff3faa5114457e1
+DIST pcsx2-0.9.4.tar.gz 6098636 RMD160 3ae7801900833214613c4a8a346d295065bdaab7 SHA1 a471ce5614efdb5e215c0b09f75cc7550bb7a461 SHA256 208420ff1d83116d95029d0d1da8d01383d06a67aa1c16e10947cfd727d7740c
+EBUILD ps2emu-zerogs-0.96.7.ebuild 1230 RMD160 bb772142fc96633c648ff4e0ee98dff969c8ad8d SHA1 b508abf8a1856023d8d49afa7107df3faf23cb24 SHA256 ddc871f65c0da0b59842fd77cdbf5d71cb3334601135f1ae0b0495e9276e690c
diff --git a/games-emulation/ps2emu-zerogs/files/ps2emu-zerogs-gcc43.patch b/games-emulation/ps2emu-zerogs/files/ps2emu-zerogs-gcc43.patch
new file mode 100644
index 0000000..8d28eea
--- /dev/null
+++ b/games-emulation/ps2emu-zerogs/files/ps2emu-zerogs-gcc43.patch
@@ -0,0 +1,12 @@
+diff -Nur opengl.orig/Mem.h opengl/Mem.h
+--- opengl.orig/Mem.h 2008-06-03 11:28:33.000000000 +0200
++++ opengl/Mem.h 2008-06-03 11:35:17.000000000 +0200
+@@ -21,6 +21,8 @@
+
+ #include <assert.h>
+ #include <vector>
++#include <cstring>
++#include <cstdlib>
+
+ // works only when base is a power of 2
+ #define ROUND_UPPOW2(val, base) (((val)+(base-1))&~(base-1))
diff --git a/games-emulation/ps2emu-zerogs/ps2emu-zerogs-0.96.7.ebuild b/games-emulation/ps2emu-zerogs/ps2emu-zerogs-0.96.7.ebuild
new file mode 100644
index 0000000..c16bebc
--- /dev/null
+++ b/games-emulation/ps2emu-zerogs/ps2emu-zerogs-0.96.7.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games autotools
+
+PCSX2="pcsx2-0.9.4"
+
+DESCRIPTION="PS2Emu ZeroGS OpenGL plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="mirror://sourceforge/pcsx2/${PCSX2}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug devbuild sse2"
+
+RDEPEND="media-gfx/nvidia-cg-toolkit
+ media-libs/glew
+ media-libs/jpeg
+ sys-libs/zlib
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ >=x11-libs/gtk+-2"
+DEPEND="${RDEPEND}
+ x11-proto/xproto
+ x11-proto/xf86vidmodeproto"
+
+S="${WORKDIR}/${PCSX2}/plugins/gs/zerogs/opengl"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -r -i \
+ -e 's/-O[0-9]\b//g' \
+ -e 's/-fomit-frame-pointer\b//g' \
+ -e 's/C(..)?FLAGS=/C\1FLAGS+=/' \
+ configure.ac || die
+
+ eautoreconf -v --install || die
+ chmod +x configure
+}
+
+src_compile() {
+ egamesconf \
+ $(use_enable devbuild) \
+ $(use_enable debug) \
+ $(use_enable sse2) \
+ || die
+
+ emake || die
+}
+
+src_install() {
+ exeinto "`games_get_libdir`/ps2emu/plugins"
+ insinto "`games_get_libdir`/ps2emu/plugins"
+ doexe libZeroGSogl*.so.* || die
+ doins ps2hw.fx Win32/ps2hw.dat || die
+ dodoc README.txt || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-zeropad/Manifest b/games-emulation/ps2emu-zeropad/Manifest
new file mode 100644
index 0000000..31a7505
--- /dev/null
+++ b/games-emulation/ps2emu-zeropad/Manifest
@@ -0,0 +1,2 @@
+DIST pcsx2-0.9.4.tar.gz 6098636 RMD160 3ae7801900833214613c4a8a346d295065bdaab7 SHA1 a471ce5614efdb5e215c0b09f75cc7550bb7a461 SHA256 208420ff1d83116d95029d0d1da8d01383d06a67aa1c16e10947cfd727d7740c
+EBUILD ps2emu-zeropad-0.1.0.ebuild 884 RMD160 93ac33d886e8d49150a736f7bffe9b87155617e8 SHA1 d7fa8e92c122f2b58c8e588c931bcd373897b86c SHA256 32f209ace1f4852bd58c2b6f245d6cb9e9135e0b8be7655f065777334a237af9
diff --git a/games-emulation/ps2emu-zeropad/ps2emu-zeropad-0.1.0.ebuild b/games-emulation/ps2emu-zeropad/ps2emu-zeropad-0.1.0.ebuild
new file mode 100644
index 0000000..b854b92
--- /dev/null
+++ b/games-emulation/ps2emu-zeropad/ps2emu-zeropad-0.1.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games autotools
+
+PCSX2="pcsx2-0.9.4"
+
+DESCRIPTION="PS2Emu pad plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+SRC_URI="mirror://sourceforge/pcsx2/${PCSX2}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+RDEPEND=">=x11-libs/gtk+-2"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+S="${WORKDIR}/${PCSX2}/plugins/pad/zeropad"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -r -i \
+ -e '/C(..)?FLAGS=/d' \
+ -e 's/-O[0-9]\b//g' \
+ -e 's/-fomit-frame-pointer\b//g' \
+ -e 's/C(..)?FLAGS\+="/C\1FLAGS+=" /' \
+ configure.ac || die
+
+ eautoreconf -v --install || die
+}
+
+src_compile() {
+ egamesconf `use_enable debug` || die
+ emake || die
+}
+
+src_install() {
+ exeinto "`games_get_libdir`/ps2emu/plugins"
+ doexe libZeroPAD.so.${PV} || die
+ prepgamesdirs
+}