diff options
author | eroen <eroen@occam.eroen.eu> | 2012-12-18 20:05:18 +0100 |
---|---|---|
committer | eroen <eroen@occam.eroen.eu> | 2012-12-18 20:05:18 +0100 |
commit | 8cee41f83c30bbf50aedc1e9ff464af37e3eafc3 (patch) | |
tree | 4d9e25831ee0f0307cf25c5791571789017fcd92 /games-engines | |
parent | punted version form portage (diff) | |
download | eroen-8cee41f83c30bbf50aedc1e9ff464af37e3eafc3.tar.gz eroen-8cee41f83c30bbf50aedc1e9ff464af37e3eafc3.tar.bz2 eroen-8cee41f83c30bbf50aedc1e9ff464af37e3eafc3.zip |
new ebuild fs2_open-3.6.14
Diffstat (limited to 'games-engines')
-rw-r--r-- | games-engines/fs2_open/Manifest | 5 | ||||
-rw-r--r-- | games-engines/fs2_open/files/fs2_open-3.6.14-01-remove-spurious-toolchain.patch | 40 | ||||
-rw-r--r-- | games-engines/fs2_open/files/fs2_open.ini.sample | 10 | ||||
-rw-r--r-- | games-engines/fs2_open/fs2_open-3.6.14.ebuild | 94 | ||||
-rw-r--r-- | games-engines/fs2_open/metadata.xml | 12 |
5 files changed, 161 insertions, 0 deletions
diff --git a/games-engines/fs2_open/Manifest b/games-engines/fs2_open/Manifest new file mode 100644 index 0000000..b441884 --- /dev/null +++ b/games-engines/fs2_open/Manifest @@ -0,0 +1,5 @@ +AUX fs2_open-3.6.14-01-remove-spurious-toolchain.patch 1166 SHA256 67aa83f658738ee8c127a64cbf8385c0e5010c5bae37d7d62cfc350435883caa SHA512 a1c833610cb8017011185be0392881a6c3743f4928e57df70228a7c4971ff01a5732c0de21817fc20cc8b04034a0914a7d98cbc17a9dea926c0794b15f140455 WHIRLPOOL 63e537a6ffdae21768e42a5a2bae1a89214522d02d5360d04cb65316cd8ea5e089b8ae79fecc6f17c1dc1671a06e195c79287c1e09a4ef7ff49c84597ecb2b9f +AUX fs2_open.ini.sample 113 SHA256 c5620ae76b61a52e7882ceb3e32b9cfaf303cdd85073b0e3dfac33409b8e6ab5 SHA512 32c6844d2a35df04e453938a2cb954338773743ed7f16feeb4678195a9649e66e9115a5045c83ee8af76a52d8de8911baee0b0f386f40cbd964056a14756cd40 WHIRLPOOL 47938469fc426e82d7f07c3b8db209634da348b5a71bcda133516d6c374006fd945a43501778a119a01041548436a645a2262e8cc9f60215e38a2fb78a23022e +DIST fs2_open_3_6_14_src.tgz 10018554 SHA256 3ffb0bd0ad60329439cea19414606755174051979da1cb5bf23b316c6c0e055e SHA512 2862fa3deb3f092569b6b780efb50cc8d681161d9d414280cbdae7e1ce8c43d01e3a653d16c2cd83d776154d988b5112779bae794ab82b30f439ee9df9dce3bb WHIRLPOOL 4f18dd9cba69fad69788fdbe5f40683b8a4795ad29d1cad58b91440266ad092c0ed8aa5e9b9a607fd4aa24e360f2ec64eeb1c6da8fc47a7305e073c5fa778ce9 +EBUILD fs2_open-3.6.14.ebuild 1722 SHA256 20be3a3991c02041b4bb9e8cb4d46fe2145261027f9bb2d7ac0ab2812d4598c6 SHA512 8c6a956758c71d6cf42f4aea6b6978aa30066c0813e14ff9a23a88d69da13048b73ad87346c5e6fff01afc86318d64a249fa95bfc656c71fb45bb682a46ce268 WHIRLPOOL 18878b084de2a8964f7a2dbcfe1021411e5ff9480d6dbcb97a0018120cb7d918887e903b54d9279f1e725ef6d38c3df1f1eaa61774ef185de9ff78ec41e1dca1 +MISC metadata.xml 380 SHA256 7139335316952b632ec169fe633bf9c339845bc6afd0931684190a7fbd076c4b SHA512 5ac70a5fc2ee0682b331f2bd1648b6dead38f771621d9174f057a8633c4f760e665dfa08718cb380c5d168839b5e48ff8153cc9c951848c3283b3b194b013d3c WHIRLPOOL f3b3e8092c702780b29f32f2192fc72eda76c4d5607020753c9e9e08365961e326618224e1c4c5bb1bb61e9dfdf2126c60e1b854a4cc54304d4339bdf968e7fc diff --git a/games-engines/fs2_open/files/fs2_open-3.6.14-01-remove-spurious-toolchain.patch b/games-engines/fs2_open/files/fs2_open-3.6.14-01-remove-spurious-toolchain.patch new file mode 100644 index 0000000..0fc4297 --- /dev/null +++ b/games-engines/fs2_open/files/fs2_open-3.6.14-01-remove-spurious-toolchain.patch @@ -0,0 +1,40 @@ +remove spurious toolchain flags + +From: eroen <eroen@occam.eroen.eu> + + +--- + configure.ac | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 49d1f85..ec27e9d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -115,7 +115,7 @@ case "$target" in + # linux + echo "Using 64-bit Unix defines (for $host_os)" + fs2_os_unix="yes" +- D_CFLAGS="$D_CFLAGS -m64 -march=athlon64 -ansi" ++ D_CFLAGS="$D_CFLAGS -ansi" + D_CFLAGS="$D_CFLAGS -DLUA_USE_LINUX" + ;; + *-*-linux*) +@@ -180,7 +180,7 @@ fi + + if test "$fs2_debug" = "yes" ; then + AC_DEFINE([_DEBUG]) +- D_CFLAGS="$D_CFLAGS -O0 -g -Wall -Wextra -Wno-unused-parameter -Wno-write-strings -Wshadow -funroll-loops" ++ D_CFLAGS="$D_CFLAGS -g -Wall -Wextra -Wno-unused-parameter -Wno-write-strings -Wshadow" + D_LDFLAGS="$D_LDFLAGS -g" + + if test "$fs2_fred" = "yes" ; then +@@ -198,7 +198,7 @@ if test "$fs2_debug" = "yes" ; then + fi + else + AC_DEFINE([NDEBUG]) +- D_CFLAGS="$D_CFLAGS -O2 -Wall -Wno-write-strings -funroll-loops" ++ D_CFLAGS="$D_CFLAGS -Wall -Wno-write-strings" + D_LDFLAGS="$D_LDFLAGS " + + if test "$fs2_fred" = "yes" ; then diff --git a/games-engines/fs2_open/files/fs2_open.ini.sample b/games-engines/fs2_open/files/fs2_open.ini.sample new file mode 100644 index 0000000..b6f5e23 --- /dev/null +++ b/games-engines/fs2_open/files/fs2_open.ini.sample @@ -0,0 +1,10 @@ +[Default] +VideocardFs2open=OGL -(1024x768)x32 bit +LastPlayer=ES + +[PXO] +FS2OpenPXO=0 +Login= +Password= +SquadName= + diff --git a/games-engines/fs2_open/fs2_open-3.6.14.ebuild b/games-engines/fs2_open/fs2_open-3.6.14.ebuild new file mode 100644 index 0000000..02fb3e9 --- /dev/null +++ b/games-engines/fs2_open/fs2_open-3.6.14.ebuild @@ -0,0 +1,94 @@ +# Copyright 2012 Eroen +# Distributed under the terms of the BSD 2-clause license +# $Header: $ + +EAPI=5 + +inherit eutils versionator games + +MY_PV="$(replace_all_version_separators '_')" +MY_P="${PN}_${MY_PV}" + +DESCRIPTION="Opensourced engine from Freespace 2" +HOMEPAGE="http://scp.indiegames.us/" +SRC_URI="http://swc.fs2downloads.com/builds/${MY_P}_src.tgz" + +LICENSE="fs2_open" +SLOT="0" +KEYWORDS="~amd64" +IUSE="inferno speech doxygen" + +COMMON_DEPEND=" + dev-lang/lua + media-libs/libogg + media-libs/libpng + media-libs/libsdl + media-libs/libtheora + media-libs/libvorbis + media-libs/openal + virtual/glu + virtual/jpeg + virtual/opengl + " +DEPEND="${COMMON_DEPEND} + sys-devel/automake + sys-devel/autoconf + doxygen? ( app-doc/doxygen ) + " +RDEPEND="${COMMON_DEPEND} + " + +S="${WORKDIR}/${MY_P}" + +src_prepare () { + rm -rf libjpeg + rm -rf libpng + rm -rf lua + rm -rf oggvorbis + rm -rf openal + rm -rf speech + rm -rf zlib + epatch "${FILESDIR}"/${P}-01-remove-spurious-toolchain.patch +} + +src_configure () { + MY_CONF=( + --disable-debug + # Editor, fails to -I wx dirs. + --disable-wxfred2 + $( use_enable inferno ) + $( use_enable speech ) + ) + + ./autogen.sh + egamesconf ${MY_CONF[*]} +} + +src_compile () { + emake + if use doxygen; then + doxygen -u fs2open.Doxyfile + doxygen fs2open.Doxyfile + fi +} + +src_install () { + use inferno && MY_BIN=code/${PN}_${PV} + ! use inferno && MY_BIN=code/${PN}_${PV}_NOINF + dogamesbin ${MY_BIN} + dodoc AUTHORS + dodoc ChangeLog + dodoc FS2OpenSCPReadMe.doc + if use doxygen; then + dodoc -r documentation/doxygen + fi +} + +pkg_postinst () { + games_pkg_postinst + + elog fs2_open needs to be run from a directory containing the *.vp files + elog from a Freespace 2 install. + elog + elog User data is stored in ~/.fs2_open/ +} diff --git a/games-engines/fs2_open/metadata.xml b/games-engines/fs2_open/metadata.xml new file mode 100644 index 0000000..11488a6 --- /dev/null +++ b/games-engines/fs2_open/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription lang="en"> + </longdescription> + <use> + <flag name="doxygen">Generate developer documentation</flag> + <flag name="inferno">Build with enhanced limits</flag> + <flag name="speech">Support for text-to-speach</flag> + </use> +</pkgmetadata> + |