From: "Marcel Unbehaun" <frostworks@gmx.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-emulation/ps2emu-gsdx/, games-emulation/pcsx2-meta/, ...
Date: Sat, 29 Oct 2011 08:20:06 +0000 (UTC) [thread overview]
Message-ID: <2ece297ec1e4fcff26686d287adf4215d9a7cdd0.frostwork@gentoo> (raw)
commit: 2ece297ec1e4fcff26686d287adf4215d9a7cdd0
Author: Marcel Unbehaun <marcel <AT> frostworx <DOT> de>
AuthorDate: Sat Oct 29 08:19:41 2011 +0000
Commit: Marcel Unbehaun <frostworks <AT> gmx <DOT> de>
CommitDate: Sat Oct 29 08:19:41 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=2ece297e
[games-emulation/pcsx2] added ebuilds for pcsx2+plugins release
---
games-emulation/pcsx2-meta/pcsx2-meta-9999.ebuild | 2 +-
games-emulation/pcsx2/pcsx2-0.9.8.ebuild | 124 ++++++++++++++++++++
.../ps2emu-cdvdiso/ps2emu-cdvdiso-0.9.ebuild | 81 +++++++++++++
.../ps2emu-cdvdlinuz/ps2emu-cdvdlinuz-0.4.ebuild | 73 ++++++++++++
.../ps2emu-cdvdnull/ps2emu-cdvdnull-0.6.ebuild | 71 +++++++++++
.../ps2emu-dev9null/ps2emu-dev9null-0.5.ebuild | 73 ++++++++++++
.../ps2emu-fwnull/ps2emu-fwnull-0.7.ebuild | 73 ++++++++++++
.../ps2emu-gsdx/ps2emu-gsdx-0.1.16.ebuild | 84 +++++++++++++
.../ps2emu-gsnull/ps2emu-gsnull-0.1.ebuild | 73 ++++++++++++
.../ps2emu-onepad/ps2emu-onepad-0.1.ebuild | 75 ++++++++++++
.../ps2emu-padnull/ps2emu-padnull-0.1.ebuild | 73 ++++++++++++
.../ps2emu-spu2-x/ps2emu-spu2-x-1.4.ebuild | 109 +++++++++++++++++
.../ps2emu-spu2null/ps2emu-spu2null-0.8.ebuild | 73 ++++++++++++
.../ps2emu-usbnull/ps2emu-usbnull-0.7.ebuild | 73 ++++++++++++
.../ps2emu-zerogs/ps2emu-zerogs-0.96.7.ebuild | 96 +++++++++++++++
.../ps2emu-zerospu/ps2emu-zerospu-0.4.6.ebuild | 80 +++++++++++++
.../ps2emu-zzogl/ps2emu-zzogl-0.3.ebuild | 109 +++++++++++++++++
17 files changed, 1341 insertions(+), 1 deletions(-)
diff --git a/games-emulation/pcsx2-meta/pcsx2-meta-9999.ebuild b/games-emulation/pcsx2-meta/pcsx2-meta-9999.ebuild
index 6ca31f5..81bde05 100644
--- a/games-emulation/pcsx2-meta/pcsx2-meta-9999.ebuild
+++ b/games-emulation/pcsx2-meta/pcsx2-meta-9999.ebuild
@@ -12,7 +12,7 @@ SRC_URI=""
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS=""
+KEYWORDS="~x86"
RDEPEND=" games-emulation/pcsx2
games-emulation/ps2emu-cdvdiso
diff --git a/games-emulation/pcsx2/pcsx2-0.9.8.ebuild b/games-emulation/pcsx2/pcsx2-0.9.8.ebuild
new file mode 100644
index 0000000..45fda70
--- /dev/null
+++ b/games-emulation/pcsx2/pcsx2-0.9.8.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=${P}-r4600-sources
+
+# no need for amd64 as we will use precompiled wxGTK.
+#if use x86; then
+# inherit wxwidgets
+#fi
+
+inherit games cmake-utils wxwidgets
+
+DESCRIPTION="A PlayStation 2 emulator"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> ${P}.7z"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND="dev-cpp/sparsehash
+ x86? (
+ app-arch/bzip2
+ sys-libs/zlib
+ media-libs/alsa-lib
+ media-libs/glew
+ media-libs/libsdl
+ media-libs/portaudio
+ media-gfx/nvidia-cg-toolkit
+ virtual/jpeg
+ virtual/opengl
+ x11-libs/gtk+:2
+ x11-libs/libICE
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/wxGTK[X]
+ )
+ amd64? ( media-gfx/nvidia-cg-toolkit[multilib]
+ app-emulation/emul-linux-x86-baselibs
+ app-emulation/emul-linux-x86-opengl
+ app-emulation/emul-linux-x86-xlibs
+ app-emulation/emul-linux-x86-gtklibs
+ app-emulation/emul-linux-x86-sdl
+ app-emulation/emul-linux-x86-soundlibs
+ app-emulation/emul-linux-x86-wxGTK
+ )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_PV}
+
+src_prepare() {
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+src_configure() {
+ wxgtk_config=""
+ cg_config=""
+ if use amd64; then
+ # tell cmake to use 32 bit library
+ wxgtk_config="-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-32"
+ cg_config="-DCG_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCg.so
+ -DCG_GL_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCgGL.so"
+ fi
+
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/${PN}
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/${PN}
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_LIBRARY_PATH=$(games_get_libdir)/${PN}
+ ${wxgtk_config}
+ ${cg_config}
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install DESTDIR=${D}
+
+ # move binary files to correct directory
+ mkdir -p ${D}/usr/games/bin
+ mv ${S}/bin/${PN} ${D}/usr/games/bin || die
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ if use amd64; then
+ einfo "We currently use 64bit dev-cpp/sparsehash for compiling pcsx2"
+ einfo "since sparsehash installation contains only header files."
+ einfo "If you encounter any problems with that, try"
+ einfo ""
+ einfo " ABI=\"x86\" emerge sparsehash"
+ einfo ""
+ einfo "and remerge pcsx2 before reporting bugs."
+ fi
+}
diff --git a/games-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.9.ebuild b/games-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.9.ebuild
new file mode 100644
index 0000000..7e57255
--- /dev/null
+++ b/games-emulation/ps2emu-cdvdiso/ps2emu-cdvdiso-0.9.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="cdvdiso plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND="
+ x86? (
+ app-arch/bzip2
+ x11-libs/gtk+:2
+ )
+ amd64? ( app-emulation/emul-linux-x86-baselibs
+ app-emulation/emul-linux-x86-gtklibs
+ )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libCDVDiso.so || die
+ prepgamesdirs
+}
+
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..78116ba
--- /dev/null
+++ b/games-emulation/ps2emu-cdvdlinuz/ps2emu-cdvdlinuz-0.4.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="cdvdlinux plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libCDVDlinuz.so || die
+ prepgamesdirs
+}
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..f5a40cf
--- /dev/null
+++ b/games-emulation/ps2emu-cdvdnull/ps2emu-cdvdnull-0.6.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit games cmake-utils
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+DESCRIPTION="cddvd null plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libCDVDnull.so || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-dev9null/ps2emu-dev9null-0.5.ebuild b/games-emulation/ps2emu-dev9null/ps2emu-dev9null-0.5.ebuild
new file mode 100644
index 0000000..b470fb4
--- /dev/null
+++ b/games-emulation/ps2emu-dev9null/ps2emu-dev9null-0.5.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="dev9null plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libdev9null.so || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-fwnull/ps2emu-fwnull-0.7.ebuild b/games-emulation/ps2emu-fwnull/ps2emu-fwnull-0.7.ebuild
new file mode 100644
index 0000000..21dc268
--- /dev/null
+++ b/games-emulation/ps2emu-fwnull/ps2emu-fwnull-0.7.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="fwnull plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libFWnull.so || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-gsdx/ps2emu-gsdx-0.1.16.ebuild b/games-emulation/ps2emu-gsdx/ps2emu-gsdx-0.1.16.ebuild
new file mode 100644
index 0000000..493e5b1
--- /dev/null
+++ b/games-emulation/ps2emu-gsdx/ps2emu-gsdx-0.1.16.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="gsdx plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND="
+ x86? (
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXext
+
+ )
+ amd64? ( app-emulation/emul-linux-x86-opengl
+ app-emulation/emul-linux-x86-xlibs
+
+ )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(SoundTouch)::g" -i 3rdparty/CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DFORCE_INTERNAL_SDL=1
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libGSdx.so || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-gsnull/ps2emu-gsnull-0.1.ebuild b/games-emulation/ps2emu-gsnull/ps2emu-gsnull-0.1.ebuild
new file mode 100644
index 0000000..0dba445
--- /dev/null
+++ b/games-emulation/ps2emu-gsnull/ps2emu-gsnull-0.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="gsnull plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libGSnull.so || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-onepad/ps2emu-onepad-0.1.ebuild b/games-emulation/ps2emu-onepad/ps2emu-onepad-0.1.ebuild
new file mode 100644
index 0000000..66a1a85
--- /dev/null
+++ b/games-emulation/ps2emu-onepad/ps2emu-onepad-0.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="onepad plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND="
+ x86? ( media-libs/libsdl )
+ amd64? ( app-emulation/emul-linux-x86-sdl )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libonepad.so || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-padnull/ps2emu-padnull-0.1.ebuild b/games-emulation/ps2emu-padnull/ps2emu-padnull-0.1.ebuild
new file mode 100644
index 0000000..2e144b0
--- /dev/null
+++ b/games-emulation/ps2emu-padnull/ps2emu-padnull-0.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="gsnull plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libPADnull.so || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-spu2-x/ps2emu-spu2-x-1.4.ebuild b/games-emulation/ps2emu-spu2-x/ps2emu-spu2-x-1.4.ebuild
new file mode 100644
index 0000000..922d051
--- /dev/null
+++ b/games-emulation/ps2emu-spu2-x/ps2emu-spu2-x-1.4.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils wxwidgets
+
+DESCRIPTION="SPU2-x plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND="dev-cpp/sparsehash
+ x86? (
+ app-arch/bzip2
+ sys-libs/zlib
+ media-libs/alsa-lib
+ media-libs/glew
+ media-libs/libsdl
+ media-libs/portaudio
+ media-libs/libsoundtouch
+ media-gfx/nvidia-cg-toolkit
+ virtual/jpeg
+ virtual/opengl
+ x11-libs/gtk+:2
+ x11-libs/libICE
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/wxGTK[X]
+ )
+ amd64? ( media-gfx/nvidia-cg-toolkit[multilib]
+ app-emulation/emul-linux-x86-baselibs
+ app-emulation/emul-linux-x86-opengl
+ app-emulation/emul-linux-x86-xlibs
+ app-emulation/emul-linux-x86-gtklibs
+ app-emulation/emul-linux-x86-sdl
+ app-emulation/emul-linux-x86-soundlibs
+ app-emulation/emul-linux-x86-wxGTK
+ )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ wxgtk_config=""
+ cg_config=""
+ if use amd64; then
+ # tell cmake to use 32 bit library
+ wxgtk_config="-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-32"
+ cg_config="-DCG_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCg.so
+ -DCG_GL_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCgGL.so"
+ fi
+
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DFORCE_INTERNAL_SOUNDTOUCH=FALSE
+ ${wxgtk_config}
+ ${cg_config}
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libspu2x.so || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-spu2null/ps2emu-spu2null-0.8.ebuild b/games-emulation/ps2emu-spu2null/ps2emu-spu2null-0.8.ebuild
new file mode 100644
index 0000000..d7f772c
--- /dev/null
+++ b/games-emulation/ps2emu-spu2null/ps2emu-spu2null-0.8.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="SPU2null plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libSPU2null.so || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-usbnull/ps2emu-usbnull-0.7.ebuild b/games-emulation/ps2emu-usbnull/ps2emu-usbnull-0.7.ebuild
new file mode 100644
index 0000000..fb04c9e
--- /dev/null
+++ b/games-emulation/ps2emu-usbnull/ps2emu-usbnull-0.7.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="usbnull plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libUSBnull.so || die
+ prepgamesdirs
+}
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..fc5a5cb
--- /dev/null
+++ b/games-emulation/ps2emu-zerogs/ps2emu-zerogs-0.96.7.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="zerogs plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND="dev-cpp/sparsehash
+ x86? (
+ media-libs/glew
+ media-gfx/nvidia-cg-toolkit
+ virtual/opengl
+ x11-libs/libICE
+ x11-libs/libX11
+ x11-libs/libXext
+ )
+ amd64? ( media-gfx/nvidia-cg-toolkit[multilib]
+ app-emulation/emul-linux-x86-opengl
+ app-emulation/emul-linux-x86-xlibs
+ )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:#[\t]add_subdirectory(zerogs):add_subdirectory(zerogs):g" -i plugins/CMakeLists.txt
+ sed -i -e "s:#include \"zlib/zlib.h\":#include <zlib.h>:g" -i plugins/zerogs/opengl/zpipe.cpp
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ cg_config=""
+ if use amd64; then
+ # tell cmake to use 32 bit library
+ wxgtk_config="-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-32"
+ cg_config="-DCG_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCg.so
+ -DCG_GL_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCgGL.so"
+ fi
+
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ ${cg_config}
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libzerogs.so || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-zerospu/ps2emu-zerospu-0.4.6.ebuild b/games-emulation/ps2emu-zerospu/ps2emu-zerospu-0.4.6.ebuild
new file mode 100644
index 0000000..0486128
--- /dev/null
+++ b/games-emulation/ps2emu-zerospu/ps2emu-zerospu-0.4.6.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils
+
+DESCRIPTION="SPU2-x plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND="
+ x86? (
+ media-libs/alsa-lib
+ media-libs/portaudio
+ media-libs/libsoundtouch
+ )
+ amd64? ( app-emulation/emul-linux-x86-soundlibs )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/Utilities)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zzogl TRUE:zzogl FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DFORCE_INTERNAL_SOUNDTOUCH=FALSE
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libzerospu2.so || die
+ prepgamesdirs
+}
diff --git a/games-emulation/ps2emu-zzogl/ps2emu-zzogl-0.3.ebuild b/games-emulation/ps2emu-zzogl/ps2emu-zzogl-0.3.ebuild
new file mode 100644
index 0000000..4810344
--- /dev/null
+++ b/games-emulation/ps2emu-zzogl/ps2emu-zzogl-0.3.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+WX_GTK_VER="2.8"
+MY_PV=pcsx2-0.9.8-r4600-sources
+
+inherit games cmake-utils wxwidgets
+
+DESCRIPTION="zzogl plugin for pcsx2"
+HOMEPAGE="http://www.pcsx2.net"
+SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+if use amd64; then
+ ABI="x86"
+fi
+if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+else
+ CMAKE_BUILD_TYPE="Release"
+fi
+
+DEPEND="dev-cpp/sparsehash
+ x86? (
+ app-arch/bzip2
+ sys-libs/zlib
+ media-libs/alsa-lib
+ media-libs/glew
+ media-libs/libsdl
+ media-libs/portaudio
+ media-gfx/nvidia-cg-toolkit
+ virtual/jpeg
+ virtual/opengl
+ x11-libs/gtk+:2
+ x11-libs/libICE
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/wxGTK[X]
+ )
+ amd64? ( media-gfx/nvidia-cg-toolkit[multilib]
+ app-emulation/emul-linux-x86-baselibs
+ app-emulation/emul-linux-x86-opengl
+ app-emulation/emul-linux-x86-xlibs
+ app-emulation/emul-linux-x86-gtklibs
+ app-emulation/emul-linux-x86-sdl
+ app-emulation/emul-linux-x86-soundlibs
+ app-emulation/emul-linux-x86-wxGTK
+ )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+ sed -i -e "s:INSTALL(FILES:#INSTALL(FILES:g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(locales)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(tools)::g" -i CMakeLists.txt
+ sed -i -e "s:add_subdirectory(common/src/x86emitter)::g" -i CMakeLists.txt
+ sed -i -e "s:pcsx2_core TRUE:pcsx2_core FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDiso TRUE:CDVDiso FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDlinuz TRUE:CDVDlinuz FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:CDVDnull TRUE:CDVDnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:dev9null TRUE:dev9null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:FWnull TRUE:FWnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSdx TRUE:GSdx FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerogs TRUE:zerogs FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:GSnull TRUE:GSnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:PadNull TRUE:PadNull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:onepad TRUE:onepad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zeropad TRUE:zeropad FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:SPU2null TRUE:SPU2null FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:spu2-x TRUE:spu2-x FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:zerospu2 TRUE:zerospu2 FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+ sed -i -e "s:USBnull TRUE:USBnull FALSE:g" -i cmake/SelectPcsx2Plugins.cmake
+}
+
+S=${WORKDIR}/${MY_PV}
+
+src_configure() {
+ wxgtk_config=""
+ cg_config=""
+ if use amd64; then
+ # tell cmake to use 32 bit library
+ wxgtk_config="-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-32"
+ cg_config="-DCG_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCg.so
+ -DCG_GL_LIBRARY=/opt/nvidia-cg-toolkit/lib32/libCgGL.so"
+ fi
+
+ mycmakeargs="
+ -DPACKAGE_MODE=1
+ -DPLUGIN_DIR=$(games_get_libdir)/pcsx2
+ -DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_LIBRARY_PATH=$(games_get_libdir)/pcsx2
+ ${wxgtk_config}
+ ${cg_config}
+ "
+ cmake-utils_src_configure
+}
+
+src_install() {
+ insinto $(games_get_libdir)/pcsx2
+ doins bin/plugins/libzzogl.so bin/plugins/ps2hw.dat || die
+ prepgamesdirs
+}
next reply other threads:[~2011-10-29 8:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-29 8:20 Marcel Unbehaun [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-10-28 20:25 [gentoo-commits] proj/gamerlay:master commit in: games-emulation/ps2emu-gsdx/, games-emulation/pcsx2-meta/, Marcel Unbehaun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2ece297ec1e4fcff26686d287adf4215d9a7cdd0.frostwork@gentoo \
--to=frostworks@gmx.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox