public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gamerlay:master commit in: games-emulation/ps2emu-spu2-x/, games-emulation/ps2emu-zerospu/
@ 2011-10-30 12:39 Marcel Unbehaun
  0 siblings, 0 replies; only message in thread
From: Marcel Unbehaun @ 2011-10-30 12:39 UTC (permalink / raw
  To: gentoo-commits

commit:     196415525069e15258f288cf14766b53e7ddd148
Author:     Marcel Unbehaun <marcel <AT> frostworx <DOT> de>
AuthorDate: Sun Oct 30 13:39:41 2011 +0000
Commit:     Marcel Unbehaun <frostworks <AT> gmx <DOT> de>
CommitDate: Sun Oct 30 13:39:41 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=19641552

[games-emulation/ps2emu-zerospu+spu2-x]	added soundtouch useflag to allow choosing system/internal soundtouch

---
 .../ps2emu-spu2-x/ps2emu-spu2-x-1.4.ebuild         |   10 +++++++---
 .../ps2emu-spu2-x/ps2emu-spu2-x-9999.ebuild        |   10 +++++++---
 .../ps2emu-zerospu/ps2emu-zerospu-0.4.6.ebuild     |    8 +++++---
 .../ps2emu-zerospu/ps2emu-zerospu-9999.ebuild      |    8 +++++---
 4 files changed, 24 insertions(+), 12 deletions(-)

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
index 922d051..1fdfd89 100644
--- a/games-emulation/ps2emu-spu2-x/ps2emu-spu2-x-1.4.ebuild
+++ b/games-emulation/ps2emu-spu2-x/ps2emu-spu2-x-1.4.ebuild
@@ -16,7 +16,7 @@ SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~x86"
-IUSE="debug"
+IUSE="debug soundtouch"
 if use amd64; then
 	ABI="x86"
 fi
@@ -52,11 +52,15 @@ DEPEND="dev-cpp/sparsehash
 		app-emulation/emul-linux-x86-sdl
 		app-emulation/emul-linux-x86-soundlibs
 		app-emulation/emul-linux-x86-wxGTK
-	)"
+	)
+	soundtouch? ( media-libs/libsoundtouch )
+	"
 RDEPEND="${DEPEND}"
 
 src_prepare() {
+	if use soundtouch; then
 	sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+	fi
 	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
@@ -95,7 +99,7 @@ src_configure() {
 		-DPLUGIN_DIR=$(games_get_libdir)/pcsx2
 		-DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
 		-DCMAKE_INSTALL_PREFIX=/usr
-		-DFORCE_INTERNAL_SOUNDTOUCH=FALSE
+		$(cmake-utils_use !soundtouch FORCE_INTERNAL_SOUNDTOUCH)
 		${wxgtk_config}
 		${cg_config}
 		"

diff --git a/games-emulation/ps2emu-spu2-x/ps2emu-spu2-x-9999.ebuild b/games-emulation/ps2emu-spu2-x/ps2emu-spu2-x-9999.ebuild
index 16ec3ac..f8c120b 100644
--- a/games-emulation/ps2emu-spu2-x/ps2emu-spu2-x-9999.ebuild
+++ b/games-emulation/ps2emu-spu2-x/ps2emu-spu2-x-9999.ebuild
@@ -21,7 +21,7 @@ ESVN_PROJECT="pcsx2"
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS=""
-IUSE="debug"
+IUSE="debug soundtouch"
 if use amd64; then
 	ABI="x86"
 fi
@@ -57,11 +57,15 @@ DEPEND="dev-cpp/sparsehash
 		app-emulation/emul-linux-x86-sdl
 		app-emulation/emul-linux-x86-soundlibs
 		app-emulation/emul-linux-x86-wxGTK
-	)"
+	)
+	soundtouch? ( media-libs/libsoundtouch )	
+	"
 RDEPEND="${DEPEND}"
 
 src_prepare() {
+	if use soundtouch; then
 	sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+	fi
 	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
@@ -99,7 +103,7 @@ src_configure() {
 		-DPLUGIN_DIR=$(games_get_libdir)/pcsx2
 		-DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
 		-DCMAKE_INSTALL_PREFIX=/usr
-		-DFORCE_INTERNAL_SOUNDTOUCH=FALSE
+		$(cmake-utils_use !soundtouch FORCE_INTERNAL_SOUNDTOUCH)
 		${wxgtk_config}
 		${cg_config}
 		"

diff --git a/games-emulation/ps2emu-zerospu/ps2emu-zerospu-0.4.6.ebuild b/games-emulation/ps2emu-zerospu/ps2emu-zerospu-0.4.6.ebuild
index 0486128..bb7b97f 100644
--- a/games-emulation/ps2emu-zerospu/ps2emu-zerospu-0.4.6.ebuild
+++ b/games-emulation/ps2emu-zerospu/ps2emu-zerospu-0.4.6.ebuild
@@ -16,7 +16,7 @@ SRC_URI="http://forums.pcsx2.net/attachment.php?aid=28280 -> pcsx2-0.9.8.7z"
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~x86"
-IUSE="debug"
+IUSE="debug soundtouch"
 if use amd64; then
 	ABI="x86"
 fi
@@ -26,7 +26,7 @@ else
 	CMAKE_BUILD_TYPE="Release"
 fi
 
-DEPEND="
+DEPEND="soundtouch? ( media-libs/libsoundtouch )
 	x86? (
 		media-libs/alsa-lib
 		media-libs/portaudio
@@ -36,7 +36,9 @@ DEPEND="
 RDEPEND="${DEPEND}"
 
 src_prepare() {
+	if use soundtouch; then
 	sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+	fi
 	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
@@ -68,7 +70,7 @@ src_configure() {
 		-DPLUGIN_DIR=$(games_get_libdir)/pcsx2
 		-DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
 		-DCMAKE_INSTALL_PREFIX=/usr
-		-DFORCE_INTERNAL_SOUNDTOUCH=FALSE
+		$(cmake-utils_use !soundtouch FORCE_INTERNAL_SOUNDTOUCH)
 		"
 	cmake-utils_src_configure
 }

diff --git a/games-emulation/ps2emu-zerospu/ps2emu-zerospu-9999.ebuild b/games-emulation/ps2emu-zerospu/ps2emu-zerospu-9999.ebuild
index aca7024..f3b0851 100644
--- a/games-emulation/ps2emu-zerospu/ps2emu-zerospu-9999.ebuild
+++ b/games-emulation/ps2emu-zerospu/ps2emu-zerospu-9999.ebuild
@@ -16,7 +16,7 @@ ESVN_PROJECT="pcsx2"
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS=""
-IUSE="debug"
+IUSE="debug soundtouch"
 if use amd64; then
 	ABI="x86"
 fi
@@ -26,7 +26,7 @@ else
 	CMAKE_BUILD_TYPE="Release"
 fi
 
-DEPEND="
+DEPEND="soundtouch? ( media-libs/libsoundtouch )
 	x86? (
 		media-libs/alsa-lib
 		media-libs/portaudio
@@ -36,7 +36,9 @@ DEPEND="
 RDEPEND="${DEPEND}"
 
 src_prepare() {
+	if use soundtouch; then
 	sed -i -e "s:add_subdirectory(3rdparty)::g" -i CMakeLists.txt
+	fi
 	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
@@ -66,7 +68,7 @@ src_configure() {
 		-DPLUGIN_DIR=$(games_get_libdir)/pcsx2
 		-DPLUGIN_DIR_COMPILATION=$(games_get_libdir)/pcsx2
 		-DCMAKE_INSTALL_PREFIX=/usr
-		-DFORCE_INTERNAL_SOUNDTOUCH=FALSE
+		$(cmake-utils_use !soundtouch FORCE_INTERNAL_SOUNDTOUCH)
 		"
 	cmake-utils_src_configure
 }



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-30 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-30 12:39 [gentoo-commits] proj/gamerlay:master commit in: games-emulation/ps2emu-spu2-x/, games-emulation/ps2emu-zerospu/ Marcel Unbehaun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox