summaryrefslogtreecommitdiff
path: root/games-fps/redeclipse/redeclipse-1.1.ebuild
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
commit7224c1253228e5c29c78cb3f0f26ce34770f2356 (patch)
tree1684924656132935256e034f35f92abee6623265 /games-fps/redeclipse/redeclipse-1.1.ebuild
Added ebuilds for kogaion desktop
Diffstat (limited to 'games-fps/redeclipse/redeclipse-1.1.ebuild')
-rw-r--r--games-fps/redeclipse/redeclipse-1.1.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/games-fps/redeclipse/redeclipse-1.1.ebuild b/games-fps/redeclipse/redeclipse-1.1.ebuild
new file mode 100644
index 00000000..f3d0d8ef
--- /dev/null
+++ b/games-fps/redeclipse/redeclipse-1.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit eutils games
+
+DESCRIPTION="First-person ego-shooter, built as a total conversion of Cube Engine 2"
+HOMEPAGE="http://www.redeclipse.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}_linux_bsd.tar.bz2"
+
+# According to license.txt file
+LICENSE="as-is ZLIB CCPL-Attribution-ShareAlike-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dedicated"
+
+DEPEND="!dedicated? (
+ media-libs/libsdl[opengl]
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-mixer[mp3,vorbis]
+ virtual/opengl
+ x11-libs/libX11
+ )
+ net-libs/enet:1.3
+ sys-libs/zlib
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${PN}
+
+src_prepare() {
+ # Respect GAMES_DATADIR
+ sed -i -e "s:\(addpackagedir(\"\)data:\1${GAMES_DATADIR}/${PN}/data:" \
+ src/engine/server.cpp || die "sed failed"
+
+ # Unbundle enet
+ sed -i \
+ -e "s:\(client\)\: libenet:\1\::" \
+ -e "s:\(server\)\: libenet:\1\::" \
+ src/Makefile || die "sed failed"
+
+ # Remove strip
+ sed -i "/STRIP=strip/d" src/Makefile || die "sed failed"
+}
+
+src_compile() {
+ cd src
+ if ! use dedicated ; then
+ emake CXXFLAGS="${CXXFLAGS}" client server || die "Make failed"
+ else
+ emake CXXFLAGS="${CXXFLAGS}" server
+ fi
+}
+
+src_install() {
+ newgamesbin src/reserver ${PN}-server || die
+ dodoc readme.txt
+ if ! use dedicated ; then
+ newgamesbin src/reclient ${PN} || die
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data
+ newicon src/site/bits/favicon.png ${PN}.png || die
+ make_desktop_entry ${PN} "Red Eclipse" ${PN}
+ fi
+
+ prepgamesdirs
+}