diff options
author | 2010-07-31 17:19:51 +0200 | |
---|---|---|
committer | 2010-07-31 17:19:51 +0200 | |
commit | f3417972f5e5a3df495e50934391c9e20c7c93ee (patch) | |
tree | 9a907148a025ab9749c159679e336428fbfd02f5 | |
parent | vs-data: fixed intro monologue (diff) | |
download | nikai-f3417972f5e5a3df495e50934391c9e20c7c93ee.tar.gz nikai-f3417972f5e5a3df495e50934391c9e20c7c93ee.tar.bz2 nikai-f3417972f5e5a3df495e50934391c9e20c7c93ee.zip |
vs: added threads USE flag
Added preliminary support for SMP configuration.
-rw-r--r-- | games-simulation/vegastrike/Manifest | 4 | ||||
-rw-r--r-- | games-simulation/vegastrike/metadata.xml | 3 | ||||
-rw-r--r-- | games-simulation/vegastrike/vegastrike-9999.ebuild | 19 |
3 files changed, 20 insertions, 6 deletions
diff --git a/games-simulation/vegastrike/Manifest b/games-simulation/vegastrike/Manifest index c03f219..cd7b4f8 100644 --- a/games-simulation/vegastrike/Manifest +++ b/games-simulation/vegastrike/Manifest @@ -1,2 +1,2 @@ -EBUILD vegastrike-9999.ebuild 4122 RMD160 a4d5e108f64bb8c0a0d1c623220181cf08b8df34 SHA1 5b7baa2f0d937481d00d6c7da5ba94bb0e13cc80 SHA256 6a711a782c8686bda06f0e974a4d72a8eb5995e1a8aaa9800b98f5eb7174107e -MISC metadata.xml 792 RMD160 37d782449538030c26821001db9a0287355ec8d0 SHA1 2baec92dae0593cc10a2b57b694af333df4fe0a0 SHA256 bf8f677f4555c04febfd6a81115f5efeaf0cb0b5be9f7fd0a542a9db8a688bb5 +EBUILD vegastrike-9999.ebuild 4313 RMD160 845799d54fdecc5d8cfec0caff232bae4f771964 SHA1 e74f1355e087dc4da1df583cc0f218e444a69dad SHA256 0c95bfadef53f836ea9b36347b19aacff5a9fff5fbc78f287b34cbe6edf1a3b9 +MISC metadata.xml 874 RMD160 7c37a6eea60200987c9d0d3eabc91047332507a5 SHA1 f5095aa8175af0e8468424b52252c1ddf22f83e4 SHA256 2eece9cc437c435697609032149871f4ed8921e3dc76d2646bef0cea14bd908f diff --git a/games-simulation/vegastrike/metadata.xml b/games-simulation/vegastrike/metadata.xml index 31df043..d11235b 100644 --- a/games-simulation/vegastrike/metadata.xml +++ b/games-simulation/vegastrike/metadata.xml @@ -7,9 +7,10 @@ </maintainer> <longdescription>Vega Strike is an Open Source 3D Action-Space-Sim that lets you trade, fight, and explore in a vast universe. The vegastrike branch contains the game source code.</longdescription> <use> - <flag name='boost'>Enable support for system <pkg>dev-libs/boost</pkg> instead of included one. Recommended.</flag> + <flag name='boost'>Enables support for system <pkg>dev-libs/boost</pkg> instead of included one. Recommended.</flag> <flag name='gtk'>Uses <pkg>x11-libs/gtk+</pkg> for graphical configuration (vssetup).</flag> <flag name='ffmpeg'>Enables support for <pkg>media-video/ffmpeg</pkg>. Recommended.</flag> + <flag name='threads'>Enables preliminary support for SMP configuration.</flag> <flag name='debug'>Enable debugging support.</flag> </use> </pkgmetadata> diff --git a/games-simulation/vegastrike/vegastrike-9999.ebuild b/games-simulation/vegastrike/vegastrike-9999.ebuild index 20e4855..cdb940c 100644 --- a/games-simulation/vegastrike/vegastrike-9999.ebuild +++ b/games-simulation/vegastrike/vegastrike-9999.ebuild @@ -16,7 +16,7 @@ HOMEPAGE="http://vegastrike.sourceforge.net/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" -IUSE="boost ffmpeg gtk debug" +IUSE="boost ffmpeg gtk threads debug" # FIXME: check dependencies RDEPEND=" @@ -87,11 +87,18 @@ src_unpack() { } src_compile() { - MYCMAKEARGS="$(MYCMAKEARGS) -DNV_CUBE_MAP" - MYCMAKEARGS="$(MYCMAKEARGS) -DBOOST_PYTHON_NO_PY_SIGNATURES" + mycmakeargs=( + "NV_CUBE_MAP" + "BOOST_PYTHON_NO_PY_SIGNATURES" + ) # -DBOOST_PYTHON_STATIC_LIB # -DDATA_DIR=\"${GAMES_DATADIR}/${PN}/data\" + if use threads; then + CPU_SMP=4 + einfo "Configuring for use with ${CPU_SMP} CPUs." + fi + if use debug; then CMAKE_BUILD_TYPE="Debug" else @@ -100,6 +107,12 @@ src_compile() { cmake-utils_src_configure + if use threads; then + sed -i \ + -e "s!CPU_SMP:STRING=1!CPU_SMP:STRING=${CPU_SMP}!" \ + vegastrike_build/CMakeCache.txt + fi + cmake-utils_src_make } |