diff options
Diffstat (limited to 'games-emulation/ps2emu-zerospu/ps2emu-zerospu-0.4.6.ebuild')
-rw-r--r-- | games-emulation/ps2emu-zerospu/ps2emu-zerospu-0.4.6.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
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 +} |