diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2008-03-17 07:31:13 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2008-03-17 07:31:13 +0000 |
commit | def33116a86eaab0de40f8cd814a62cbef270c63 (patch) | |
tree | a4b504b30ceb6bd2528f0667a10710bee7dcdce0 /games-fps/warsow/warsow-0.4.2.ebuild | |
parent | Bump (diff) | |
download | gentoo-2-def33116a86eaab0de40f8cd814a62cbef270c63.tar.gz gentoo-2-def33116a86eaab0de40f8cd814a62cbef270c63.tar.bz2 gentoo-2-def33116a86eaab0de40f8cd814a62cbef270c63.zip |
Version bump to 0.4.2 requested via bug #212706
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-fps/warsow/warsow-0.4.2.ebuild')
-rw-r--r-- | games-fps/warsow/warsow-0.4.2.ebuild | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/games-fps/warsow/warsow-0.4.2.ebuild b/games-fps/warsow/warsow-0.4.2.ebuild new file mode 100644 index 000000000000..17f7ba0f7931 --- /dev/null +++ b/games-fps/warsow/warsow-0.4.2.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/warsow-0.4.2.ebuild,v 1.1 2008/03/17 07:31:12 tupone Exp $ + +inherit eutils toolchain-funcs versionator games + +MY_P=${PN}_$(delete_version_separator 2) +DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)" +HOMEPAGE="http://www.warsow.net/" +SRC_URI="http://tastyspleen.net/quake/downloads/mods/warsow/${MY_P}_unified.zip + http://tastyspleen.net/quake/downloads/mods/warsow/${MY_P}_sdk.zip + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug dedicated irc openal opengl" + +UIRDEPEND="media-libs/jpeg + media-libs/libvorbis + media-libs/libsdl + net-misc/curl + virtual/opengl + x11-libs/libXinerama + x11-libs/libXxf86dga + x11-libs/libXxf86vm + openal? ( media-libs/openal )" +RDEPEND="opengl? ( ${UIRDEPEND} ) + !opengl? ( !dedicated? ( ${UIRDEPEND} ) )" +UIDEPEND="x11-proto/xineramaproto + x11-proto/xf86dgaproto + x11-proto/xf86vidmodeproto" +DEPEND="${RDEPEND} + app-arch/unzip + x11-misc/makedepend + opengl? ( ${UIDEPEND} ) + !opengl? ( !dedicated? ( ${UIDEPEND} ) )" + +S=${WORKDIR}/${MY_P}_src/source + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i \ + -e "/fs_basepath =/ s:\.:${GAMES_DATADIR}/${PN}:" \ + qcommon/files.c \ + || die "sed files.c failed" + + epatch "${FILESDIR}"/${P}-build.patch +} + +src_compile() { + yesno() { use ${1} && echo YES || echo NO ; } + + local client="NO" irc="NO" openal="NO" + if use opengl || ! use dedicated ; then + client="YES" + use irc && irc="YES" + use openal && openal="YES" + fi + + emake \ + BUILD_CLIENT=${client} \ + BUILD_SERVER=$(yesno dedicated) \ + BUILD_TV_SERVER=$(yesno dedicated) \ + BUILD_IRC=${irc} \ + BUILD_SND_OPENAL=${openal} \ + BUILD_SND_QF=${client} \ + DEBUG_BUILD=$(yesno debug) \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC)" \ + || die "emake failed" +} + +src_install() { + cd release + + if use opengl || ! use dedicated ; then + newgamesbin ${PN}.* ${PN} || die "newgamesbin ${PN} failed" + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} Warsow + fi + + if use dedicated ; then + newgamesbin wsw_server.* ${PN}-ded || die "newgamesbin ${PN}-ded failed" + newgamesbin wswtv_server.* ${PN}-tv || die "newgamesbin ${PN}-tv failed" + fi + + exeinto "$(games_get_libdir)"/${PN} + doexe */*.so || die "doexe failed" + + insinto "${GAMES_DATADIR}"/${PN} + doins -r "${WORKDIR}"/${MY_P}_unified/basewsw || die "doins failed" + + local so + for so in basewsw/*.so ; do + dosym "$(games_get_libdir)"/${PN}/${so##*/} \ + "${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed" + done + + dodir "${GAMES_DATADIR}"/${PN}/libs + for so in libs/*.so ; do + dosym "$(games_get_libdir)"/${PN}/${so##*/} \ + "${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed" + done + + dodoc "${WORKDIR}"/docs/* + prepgamesdirs +} |