summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-06-29 22:33:34 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-06-29 22:33:34 +0000
commitcfd80720203eb7fd557cbc450f10532bcce52e77 (patch)
tree2282a98ac6652bdf477a0cbfdc589207bd941522 /games-fps/warsow
parentVersion bump (diff)
downloadgentoo-2-cfd80720203eb7fd557cbc450f10532bcce52e77.tar.gz
gentoo-2-cfd80720203eb7fd557cbc450f10532bcce52e77.tar.bz2
gentoo-2-cfd80720203eb7fd557cbc450f10532bcce52e77.zip
Version bump
(Portage version: 2.1.3_rc6)
Diffstat (limited to 'games-fps/warsow')
-rw-r--r--games-fps/warsow/ChangeLog8
-rw-r--r--games-fps/warsow/files/digest-warsow-0.3.19
-rw-r--r--games-fps/warsow/files/warsow-0.3.1-build.patch37
-rw-r--r--games-fps/warsow/warsow-0.3.1.ebuild103
4 files changed, 156 insertions, 1 deletions
diff --git a/games-fps/warsow/ChangeLog b/games-fps/warsow/ChangeLog
index 2bc952f1c6ec..0336c6dbf34b 100644
--- a/games-fps/warsow/ChangeLog
+++ b/games-fps/warsow/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-fps/warsow
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.5 2007/05/20 23:46:31 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/ChangeLog,v 1.6 2007/06/29 22:33:34 nyhm Exp $
+
+*warsow-0.3.1 (29 Jun 2007)
+
+ 29 Jun 2007; Tristan Heaven <nyhm@gentoo.org>
+ +files/warsow-0.3.1-build.patch, +warsow-0.3.1.ebuild:
+ Version bump
20 May 2007; Tristan Heaven <nyhm@gentoo.org> warsow-0.3.ebuild:
Fix for missing sound modules, bug #179281
diff --git a/games-fps/warsow/files/digest-warsow-0.3.1 b/games-fps/warsow/files/digest-warsow-0.3.1
new file mode 100644
index 000000000000..da9815e2f496
--- /dev/null
+++ b/games-fps/warsow/files/digest-warsow-0.3.1
@@ -0,0 +1,9 @@
+MD5 d5eac4a33b3543dbc40d984b84e657f8 warsow.png 1692
+RMD160 098a1505a74a20eb4bdfeda4cf2c537a9524ce23 warsow.png 1692
+SHA256 086968e72271b248ef32609ed1818ff9f5c355297b1eee3cbee9e41f4e18a954 warsow.png 1692
+MD5 74fc786f3a983d82b6ea37868c76a148 warsow_0.31_linux.tar.gz 92611004
+RMD160 fa1dfab5797e25cf52821491858cf3d62e98e013 warsow_0.31_linux.tar.gz 92611004
+SHA256 69c4a6464c3132240d50f9ad39a7521ebadee0c113b5f09fc3a4ace1a048e5eb warsow_0.31_linux.tar.gz 92611004
+MD5 10b684718f7108e7eca42d5ddde3d5e3 warsow_0.31_sdk.zip 17903715
+RMD160 8187d62ca7b581ef71e0d5f27194058e58aa71ed warsow_0.31_sdk.zip 17903715
+SHA256 83df0b458cabebc742de042b8649a695d23b07a611a8215cbca907d6eae64db0 warsow_0.31_sdk.zip 17903715
diff --git a/games-fps/warsow/files/warsow-0.3.1-build.patch b/games-fps/warsow/files/warsow-0.3.1-build.patch
new file mode 100644
index 000000000000..86510a42de7a
--- /dev/null
+++ b/games-fps/warsow/files/warsow-0.3.1-build.patch
@@ -0,0 +1,37 @@
+--- source/Makefile
++++ source/Makefile
+@@ -100,9 +100,9 @@
+ LOCALBASE?=/usr/local
+ X11BASE?=/usr/X11R6
+
+-CFLAGS_COMMON=$(CFLAGS) -I. -I$(LOCALBASE)/include -I$(X11BASE)/include -Wall
+-CFLAGS_RELEASE=-O2 -fno-strict-aliasing -ffast-math -funroll-loops -DNDEBUG
+-CFLAGS_DEBUG=-O0 -ggdb -D_DEBUG
++CFLAGS_COMMON=$(CFLAGS) -I. -fno-strict-aliasing -Wall
++CFLAGS_RELEASE=-DNDEBUG
++CFLAGS_DEBUG=-D_DEBUG
+ ifeq ($(DEBUG_BUILD),YES)
+ CFLAGS_COMMON+=$(CFLAGS_DEBUG)
+ else
+@@ -116,7 +116,7 @@
+ ifeq ($(OS),FreeBSD)
+ LDFLAGS_COMMON=-L/usr/local/lib -lm
+ else
+-LDFLAGS_COMMON=-L/usr/local/lib -ldl -lm
++LDFLAGS_COMMON=$(LDFLAGS) -ldl -lm
+ endif
+
+ ifeq ($(ARCH),x86_64)
+@@ -287,10 +287,10 @@
+
+ all: client openal qf ded cgame game ui irc
+
+-client: $(BUILDDIRS) message-client compile-client link-client start-script-client
++client: $(BUILDDIRS) message-client compile-client link-client
+ openal: $(BUILDDIRS) message-openal compile-openal link-openal
+ qf: $(BUILDDIRS) message-qf compile-qf link-qf
+-ded: $(BUILDDIRS) message-ded compile-ded link-ded start-script-ded
++ded: $(BUILDDIRS) message-ded compile-ded link-ded
+ cgame: $(BUILDDIRS) message-cgame compile-cgame link-cgame
+ game: $(BUILDDIRS) message-game compile-game link-game
+ ui: $(BUILDDIRS) message-ui compile-ui link-ui
diff --git a/games-fps/warsow/warsow-0.3.1.ebuild b/games-fps/warsow/warsow-0.3.1.ebuild
new file mode 100644
index 000000000000..317ecfe3219d
--- /dev/null
+++ b/games-fps/warsow/warsow-0.3.1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/warsow-0.3.1.ebuild,v 1.1 2007/06/29 22:33:34 nyhm 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://k3rmit.org/wsw/${MY_P}_linux.tar.gz
+ http://k3rmit.org/wsw/${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} ) )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ x11-misc/makedepend"
+
+S=${WORKDIR}/${MY_P}/source
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -f "${WORKDIR}"/${PN}/docs/gnu.txt
+
+ sed -i \
+ -e '/fs_usehomedir =/ s:0:1:' \
+ -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 ; }
+
+ if use opengl || ! use dedicated ; then
+ local client="YES"
+ else
+ local client="NO"
+ fi
+
+ emake \
+ BUILD_CLIENT=${client} \
+ BUILD_SERVER=$(yesno dedicated) \
+ BUILD_IRC=$(yesno irc) \
+ BUILD_SND_OPENAL=$(yesno openal) \
+ 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"
+ fi
+
+ exeinto "$(games_get_libdir)"/${PN}
+ doexe */*.so || die "doexe failed"
+
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r "${WORKDIR}"/${PN}/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}"{/${PN},}/docs/*
+ prepgamesdirs
+}