summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-01-07 22:05:38 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-01-07 22:05:38 +0000
commit54aeb854ec8a7a4b27cd5a6f86250d79f2330767 (patch)
tree3b2b0beb80e1540bf2fbf4df50a86af6eac6b58e /games-fps/openarena
parentwhitespace (diff)
downloadgentoo-2-54aeb854ec8a7a4b27cd5a6f86250d79f2330767.tar.gz
gentoo-2-54aeb854ec8a7a4b27cd5a6f86250d79f2330767.tar.bz2
gentoo-2-54aeb854ec8a7a4b27cd5a6f86250d79f2330767.zip
version bump with ebuild submitted by scarabeus (bug #245759)
(Portage version: 2.1.6.4/cvs/Linux 2.6.27.8 i686)
Diffstat (limited to 'games-fps/openarena')
-rw-r--r--games-fps/openarena/ChangeLog10
-rw-r--r--games-fps/openarena/files/openarena-0.8.1-makefile.patch21
-rw-r--r--games-fps/openarena/openarena-0.8.1.ebuild78
3 files changed, 107 insertions, 2 deletions
diff --git a/games-fps/openarena/ChangeLog b/games-fps/openarena/ChangeLog
index 370baf935ae5..9c54f7bc985c 100644
--- a/games-fps/openarena/ChangeLog
+++ b/games-fps/openarena/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-fps/openarena
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/openarena/ChangeLog,v 1.5 2008/06/05 20:22:27 wolf31o2 Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/openarena/ChangeLog,v 1.6 2009/01/07 22:05:38 mr_bones_ Exp $
+
+*openarena-0.8.1 (07 Jan 2009)
+
+ 07 Jan 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/openarena-0.8.1-makefile.patch, +openarena-0.8.1.ebuild:
+ version bump with ebuild submitted by scarabeus (bug #245759)
05 Jun 2008; Chris Gianelloni <wolf31o2@gentoo.org> metadata.xml:
Removing myself as maintainer.
diff --git a/games-fps/openarena/files/openarena-0.8.1-makefile.patch b/games-fps/openarena/files/openarena-0.8.1-makefile.patch
new file mode 100644
index 000000000000..bb556119802c
--- /dev/null
+++ b/games-fps/openarena/files/openarena-0.8.1-makefile.patch
@@ -0,0 +1,21 @@
+--- openarena-engine-0.8.1/Makefile 2008-08-09 22:22:37.000000000 +0200
++++ openarena-engine-0.8.1/Makefile.new 2009-01-07 19:33:31.000000000 +0100
+@@ -231,8 +231,7 @@
+ endif
+ endif
+
+- BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
+- -pipe -DUSE_ICON $(shell sdl-config --cflags)
++ BASE_CFLAGS = %CFLAGS% -DUSE_ICON $(shell sdl-config --cflags)
+
+ ifeq ($(USE_OPENAL),1)
+ BASE_CFLAGS += -DUSE_OPENAL
+@@ -323,7 +322,7 @@
+ endif
+
+ DEBUG_CFLAGS = $(BASE_CFLAGS) -g -O0
+- RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
++ RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG
+
+ else # ifeq Linux
+
diff --git a/games-fps/openarena/openarena-0.8.1.ebuild b/games-fps/openarena/openarena-0.8.1.ebuild
new file mode 100644
index 000000000000..c2cb0373ddb5
--- /dev/null
+++ b/games-fps/openarena/openarena-0.8.1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/openarena/openarena-0.8.1.ebuild,v 1.1 2009/01/07 22:05:38 mr_bones_ Exp $
+
+EAPI=1
+inherit versionator games
+
+MY_PV=$(delete_all_version_separators)
+
+DESCRIPTION="Open-source replacement for Quake 3 Arena"
+HOMEPAGE="http://openarena.ws/"
+SRC_URI="http://download.tuxfamily.org/openarena/rel/${MY_PV}/oa${MY_PV}.zip
+ http://openarena.ws/svn/source/${MY_PV}/${PN}-engine-${PV}-1.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+curl +openal +vorbis"
+
+RDEPEND="virtual/opengl
+ media-libs/libsdl
+ x11-libs/libXext
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ curl? ( net-misc/curl )
+ openal? ( media-libs/openal )
+ vorbis? ( media-libs/libvorbis )"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+MY_S=${WORKDIR}/${PN}-engine-${PV}
+BUILD_DIR=${PN}-build
+DIR=${GAMES_DATADIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${WORKDIR}"
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ sed -i \
+ -e "s:%CFLAGS%:${CFLAGS}:g" \
+ "${MY_S}"/Makefile || die "seding cflags failed"
+}
+
+src_compile() {
+ local myopts
+
+ # use always internal speex and enable voip through it, disable mumble
+ # also build always server and use smp by default
+ myopts="USE_INTERNAL_SPEEX=1 USE_VOIP=1 USE_MUMBLE=0
+ BUILD_SERVER=1 BUILD_CLIENT_SMP=1 USE_LOCAL_HEADERS=0"
+ use curl || myopts="${myopts} USE_CURL=0"
+ use openal || myopts="${myopts} USE_OPENAL=0"
+ use vorbis || myopts="${myopts} USE_CODEC_VORBIS=0"
+
+ cd "${MY_S}"
+ emake \
+ DEFAULT_BASEDIR="${DIR}" \
+ BR="${BUILD_DIR}" \
+ ${myopts} \
+ || die "emake failed"
+}
+
+src_install() {
+ cd "${MY_S}"/"${BUILD_DIR}"
+ newgamesbin openarena-smp.* "${PN}" || die "binary install failed"
+ newgamesbin oa_ded.* "${PN}-ded" || die "dedicated binary not found"
+ cd "${S}"
+
+ insinto "${DIR}"
+ doins -r baseoa missionpack || die "doins -r failed"
+
+ dodoc CHANGES CREDITS LINUXNOTES README
+ newicon "${MY_S}"/misc/quake3.png ${PN}.png
+ make_desktop_entry ${PN} "OpenArena"
+
+ prepgamesdirs
+}