summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-11-30 06:03:46 +0000
committerMike Frysinger <vapier@gentoo.org>2003-11-30 06:03:46 +0000
commit26b24f7cc035ebf2b59fc611e48825ef6d79b1fe (patch)
treebdc9f22df5d27254cc722aaecf4e641df0b9282a /games-fps/quake2-icculus
parentnow in quake2-icculus (diff)
downloadhistorical-26b24f7cc035ebf2b59fc611e48825ef6d79b1fe.tar.gz
historical-26b24f7cc035ebf2b59fc611e48825ef6d79b1fe.tar.bz2
historical-26b24f7cc035ebf2b59fc611e48825ef6d79b1fe.zip
moved from quake2-relnev
Diffstat (limited to 'games-fps/quake2-icculus')
-rw-r--r--games-fps/quake2-icculus/ChangeLog22
-rw-r--r--games-fps/quake2-icculus/Manifest9
-rw-r--r--games-fps/quake2-icculus/files/0.15-Makefile-gcc3.patch19
-rw-r--r--games-fps/quake2-icculus/files/0.15-Makefile-optflags.patch10
-rw-r--r--games-fps/quake2-icculus/files/README-postinstall69
-rw-r--r--games-fps/quake2-icculus/files/digest-quake2-icculus-0.152
-rw-r--r--games-fps/quake2-icculus/files/q2ded.start3
-rw-r--r--games-fps/quake2-icculus/files/quake2.start3
-rw-r--r--games-fps/quake2-icculus/files/sdlquake2.start3
-rw-r--r--games-fps/quake2-icculus/quake2-icculus-0.15.ebuild132
10 files changed, 272 insertions, 0 deletions
diff --git a/games-fps/quake2-icculus/ChangeLog b/games-fps/quake2-icculus/ChangeLog
new file mode 100644
index 000000000000..17ab19a09eb0
--- /dev/null
+++ b/games-fps/quake2-icculus/ChangeLog
@@ -0,0 +1,22 @@
+# ChangeLog for games-fps/quake2-relnev
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-icculus/ChangeLog,v 1.1 2003/11/30 06:03:46 vapier Exp $
+
+*quake2-relnev-0.15 (29 Jun 2003)
+
+ 30 Jun 2003; Mike Frysinger <vapier@gentoo.org> :
+ renamed (whoops) and added support to build qmax & normal binary.
+
+ 29 Jun 2003; Mike Frysinger <vapier@gentoo.org> :
+ Reworked and cleaned up to close #8222.
+ All optional features are supported and qmax has been added.
+
+*quake2-0.15.1 (18 Nov 2002)
+
+ 18 Nov 2002; Mike Frysinger <vapier@gentoo.org> :
+ Version bump from lundy.
+
+*quake2-0.14.1 (06 Nov 2002)
+
+ 06 Nov 2002; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by Mike Lundy <novas007@gmx.net>.
diff --git a/games-fps/quake2-icculus/Manifest b/games-fps/quake2-icculus/Manifest
new file mode 100644
index 000000000000..45d4da0ac445
--- /dev/null
+++ b/games-fps/quake2-icculus/Manifest
@@ -0,0 +1,9 @@
+MD5 ecddf52aa45b2df83597b5d2607fe42c ChangeLog 799
+MD5 9e4f9e507c59659f9eea13e6d30dddb4 quake2-icculus-0.15.ebuild 3659
+MD5 ad5de2e8c5c06b69b3b5a2dd926a758f files/0.15-Makefile-optflags.patch 260
+MD5 2219e82edb75f4e2a9fa232afc365c5d files/0.15-Makefile-gcc3.patch 787
+MD5 d1eaa9430228f2926baf4d828fb48ba8 files/digest-quake2-icculus-0.15 121
+MD5 705532a27c8fcec984b7f5273c726901 files/README-postinstall 2661
+MD5 b4df11798b5b2777a1097c4d9a61c0df files/sdlquake2.start 46
+MD5 da3eb5b7690c63cbf1f2796f2e3aa969 files/q2ded.start 42
+MD5 2baa3c18b4ee41b7174014771b692f80 files/quake2.start 43
diff --git a/games-fps/quake2-icculus/files/0.15-Makefile-gcc3.patch b/games-fps/quake2-icculus/files/0.15-Makefile-gcc3.patch
new file mode 100644
index 000000000000..938baba52061
--- /dev/null
+++ b/games-fps/quake2-icculus/files/0.15-Makefile-gcc3.patch
@@ -0,0 +1,19 @@
+--- Makefile.orig 2003-01-23 17:26:45.000000000 -0500
++++ Makefile 2003-01-23 17:26:54.000000000 -0500
+@@ -82,12 +82,12 @@
+ endif
+
+ ifeq ($(ARCH),i386)
+-RELEASE_CFLAGS=$(BASE_CFLAGS) -O2 -ffast-math -funroll-loops -malign-loops=2 \
+- -malign-jumps=2 -malign-functions=2 -g
++RELEASE_CFLAGS=$(BASE_CFLAGS) -O2 -ffast-math -funroll-loops -falign-loops=2 \
++ -falign-jumps=2 -falign-functions=2 -g
+ # compiler bugs with gcc 2.96 and 3.0.1 can cause bad builds with heavy opts.
+ #RELEASE_CFLAGS=$(BASE_CFLAGS) -O6 -m486 -ffast-math -funroll-loops \
+-# -fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
+-# -malign-jumps=2 -malign-functions=2
++# -fomit-frame-pointer -fexpensive-optimizations -falign-loops=2 \
++# -falign-jumps=2 -falign-functions=2
+ endif
+
+ VERSION=3.21+rCVS
diff --git a/games-fps/quake2-icculus/files/0.15-Makefile-optflags.patch b/games-fps/quake2-icculus/files/0.15-Makefile-optflags.patch
new file mode 100644
index 000000000000..71a674a2e63f
--- /dev/null
+++ b/games-fps/quake2-icculus/files/0.15-Makefile-optflags.patch
@@ -0,0 +1,10 @@
+--- Makefile.orig 2003-06-28 22:04:22.000000000 -0400
++++ Makefile 2003-06-28 22:04:54.000000000 -0400
+@@ -342,6 +342,7 @@
+ TARGETS += $(BUILDDIR)/ref_softaa.$(SHLIBEXT)
+ endif
+
++RELEASE_CFLAGS += $(OPTCFLAGS)
+ all: build_debug build_release
+
+ build_debug:
diff --git a/games-fps/quake2-icculus/files/README-postinstall b/games-fps/quake2-icculus/files/README-postinstall
new file mode 100644
index 000000000000..20bae30ad469
--- /dev/null
+++ b/games-fps/quake2-icculus/files/README-postinstall
@@ -0,0 +1,69 @@
+This was taken from the README file in the source distribution
+and cleaned up a bit. Read all of this, or at least skim it. Please?
+
+Note:
+1. If you install a new compile of quake2, you'll lose your savegames. I'm
+sorry. Don't upgrade in the middle of a single-player game.
+
+To install the Quake2 demo data:
+--------------------------------
+1. download ftp://ftp.idsoftware.com/idstuff/quake2/q2-314-demo-x86.exe
+2. unzip -L q2-314-demo-x86.exe into a temp directory
+3. cp baseq2/pak0.pak to /usr/share/games/quake2/baseq2/pak0.pak
+
+===============================================================================
+
+To install the Quake2 gamedata from game CD:
+-------------------------------
+(assuming the cdrom is mounted at /cdrom)
+
+1. cp /cdrom/Install/Data/baseq2/pak0.pak /usr/share/games/quake2/baseq2/
+
+2. cp /cdrom/Install/Data/baseq2/video/ /usr/share/games/quake2/baseq2/
+ (optional)
+
+3. Download ftp://ftp.idsoftware.com/idstuff/quake2/q2-3.20-x86-full.exe
+ and extract the contents to a temporary directory (use unzip -L, as this
+ is a standard zip file).
+
+4. cp <temp directory>/baseq2/pak1.pak /usr/share/games/quake2/baseq2/
+5. cp <temp directory>/baseq2/pak2.pak /usr/share/games/quake2/baseq2/
+6. cp <temp directory>/baseq2/players/ /usr/share/games/quake2/baseq2/
+
+7. if you really want to use the crakhor model, you can find the
+ skins/sounds on websites like http://www.mike-d.com/games/modskins.html
+ (optional)
+
+===============================================================================
+
+Capture The Flag:
+-----------
+To run Capture The Flag, you need to do the following:
+
+1. Download ftp://ftp.idsoftware.com/idstuff/quake2/q2-3.20-x86-full-ctf.exe
+2. unzip that file (using unzip -L) into a temp directory
+3. cp <temp directory>/ctf /usr/share/games/quake2/
+
+Execute quake2 with:
+
+quake2 +set game ctf +set dedicated 1
+ -- or --
+q2ded +set game ctf
+===============================================================================
+
+Joystick Support:
+-----------------
+Joystick should function on all compatible SDL platforms using the sdlquake2
+binary as well as on linux using the linux kernel joystick API.
+
+Joystick obeys the same free-look/strafe rules as mouse. You can set these in
+the options menu.
+
+There are four command line settings for joystick:
+1. j_invert_y [1],0 if set to zero pulling back on the joystick points down
+2. j_lr_axis [0] set the axis which controls left right movement
+3. j_ud_axis [1] set the axis which controls up down (in free-look) or
+ forward back (freelock off)
+4. j_throttle [3] set the axis which controls the players forward backward
+ throttle (if free-look is true)
+
diff --git a/games-fps/quake2-icculus/files/digest-quake2-icculus-0.15 b/games-fps/quake2-icculus/files/digest-quake2-icculus-0.15
new file mode 100644
index 000000000000..82a726e09d3b
--- /dev/null
+++ b/games-fps/quake2-icculus/files/digest-quake2-icculus-0.15
@@ -0,0 +1,2 @@
+MD5 9e16f29db33715f2f9420b5bb31e6263 quake2-r0.15.tar.gz 2660511
+MD5 04d3f1fb7fb4dada7175a41f4595c7eb maxpak.pak 3282742
diff --git a/games-fps/quake2-icculus/files/q2ded.start b/games-fps/quake2-icculus/files/q2ded.start
new file mode 100644
index 000000000000..b6be9f77f4b8
--- /dev/null
+++ b/games-fps/quake2-icculus/files/q2ded.start
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd GENTOO_LIBDIR
+./q2ded "${@}"
diff --git a/games-fps/quake2-icculus/files/quake2.start b/games-fps/quake2-icculus/files/quake2.start
new file mode 100644
index 000000000000..26da947220be
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2.start
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd GENTOO_LIBDIR
+./quake2 "${@}"
diff --git a/games-fps/quake2-icculus/files/sdlquake2.start b/games-fps/quake2-icculus/files/sdlquake2.start
new file mode 100644
index 000000000000..e8007eb1bdf8
--- /dev/null
+++ b/games-fps/quake2-icculus/files/sdlquake2.start
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd GENTOO_LIBDIR
+./sdlquake2 "${@}"
diff --git a/games-fps/quake2-icculus/quake2-icculus-0.15.ebuild b/games-fps/quake2-icculus/quake2-icculus-0.15.ebuild
new file mode 100644
index 000000000000..321310c6e39d
--- /dev/null
+++ b/games-fps/quake2-icculus/quake2-icculus-0.15.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-icculus/quake2-icculus-0.15.ebuild,v 1.1 2003/11/30 06:03:46 vapier Exp $
+
+inherit games eutils gcc
+
+MY_P=quake2-r${PV}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="The icculus.org linux port of iD's quake2 engine"
+HOMEPAGE="http://icculus.org/quake2/"
+SRC_URI="http://icculus.org/quake2/files/${MY_P}.tar.gz
+ !noqmax? ( http://icculus.org/quake2/files/maxpak.pak )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc sparc"
+IUSE="svga X sdl aalib opengl noqmax"
+
+# default to X11 if svga/X/sdl/aalib are not in USE
+DEPEND="svga? ( media-libs/svgalib )
+ arts? ( kde-base/arts )
+ X? ( virtual/x11 )
+ sdl? ( media-libs/libsdl )
+ aalib? ( media-libs/aalib )
+ opengl? ( virtual/opengl )
+ || ( svga? ( "" ) X? ( "" ) sdl? ( "" ) aalib? ( "" ) virtual/x11 )"
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ cd ${S}
+ [ `gcc-major-version` == 3 ] && epatch ${FILESDIR}/${PV}-Makefile-gcc3.patch
+ epatch ${FILESDIR}/${PV}-Makefile-optflags.patch
+}
+
+yesno() {
+ for f in $@ ; do
+ [ `use $f` ] || { echo NO ; return 1 ; }
+ done
+ echo YES
+ return 0
+}
+
+src_compile() {
+ BUILD_X11=`yesno X`
+ use sdl || use X || use svga || use aalib || BUILD_X11=YES
+
+ # xatrix fails to build
+ # rogue fails to build
+ for BUILD_QMAX in YES NO ; do
+ [ `use noqmax` ] && [ "${BUILD_QMAX}" == "YES" ] && continue
+ make clean || die "cleaning failed"
+ make build_release \
+ BUILD_SDLQUAKE2=`yesno sdl` \
+ BUILD_SVGA=`yesno svga` \
+ BUILD_X11=${BUILD_X11} \
+ BUILD_GLX=`yesno opengl X` \
+ BUILD_SDL=`yesno sdl` \
+ BUILD_SDLGL=`yesno sdl opengl` \
+ BUILD_CTFDLL=YES \
+ BUILD_XATRIX=NO \
+ BUILD_ROGUE=NO \
+ BUILD_JOYSTICK=`yesno joystick` \
+ BUILD_DEDICATED=YES \
+ BUILD_AA=`yesno aalib` \
+ BUILD_QMAX=${BUILD_QMAX} \
+ HAVE_IPV6=NO \
+ BUILD_ARTS=NO \
+ SDLDIR=/usr/lib \
+ BUILD_ARTS=`yesno arts` \
+ OPTCFLAGS="${CFLAGS}" \
+ || die "make failed"
+ #HAVE_IPV6=`yesno ipv6` \
+ # now we save the build dir ... except for the object files ...
+ mv release* my-rel-${BUILD_QMAX}
+ cd my-rel-${BUILD_QMAX}
+ rm -rf ref_{gl,soft} ded game client ctf/*.o
+ mkdir baseq2
+ mv game*.so baseq2/
+ cd ..
+ done
+}
+
+src_install() {
+ local q2dir=${GAMES_LIBDIR}/${PN}
+ local q2maxdir=${GAMES_LIBDIR}/${PN}-qmax
+
+ dodoc readme.txt README TODO ${FILESDIR}/README-postinstall
+
+ # regular q2 files
+ dodir ${q2dir}
+ cp -rf my-rel-NO/* ${D}/${q2dir}
+ strip my-rel-NO/{*,*/*}
+
+ into ${GAMES_PREFIX}
+ newbin ${FILESDIR}/quake2.start quake2
+ newbin ${FILESDIR}/q2ded.start q2ded
+ if [ `use sdl` ] ; then
+ newbin ${FILESDIR}/sdlquake2.start sdlquake2
+ dosed "s:GENTOO_LIBDIR:${q2dir}:" ${GAMES_BINDIR}/sdlquake2
+ fi
+ dosed "s:GENTOO_LIBDIR:${q2dir}:" ${GAMES_BINDIR}/quake2
+ dosed "s:GENTOO_LIBDIR:${q2dir}:" ${GAMES_BINDIR}/q2ded
+
+ # q2max files
+ if [ ! `use noqmax` ] ; then
+ dodir ${q2maxdir}
+ cp -rf my-rel-YES/* ${D}/${q2maxdir}/
+
+ into ${GAMES_PREFIX}
+ newbin ${FILESDIR}/quake2.start quake2-qmax
+ newbin ${FILESDIR}/q2ded.start q2ded-qmax
+ if [ `use sdl` ] ; then
+ newbin ${FILESDIR}/sdlquake2.start sdlquake2-qmax
+ dosed "s:GENTOO_LIBDIR:${q2maxdir}:" ${GAMES_BINDIR}/sdlquake2-qmax
+ fi
+ dosed "s:GENTOO_LIBDIR:${q2maxdir}:" ${GAMES_BINDIR}/quake2-qmax
+ dosed "s:GENTOO_LIBDIR:${q2maxdir}:" ${GAMES_BINDIR}/q2ded-qmax
+
+ insinto ${q2maxdir}/baseq2
+ doins ${DISTDIR}/maxpak.pak
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ einfo "Go read /usr/share/doc/${PF}/README-postinstall.gz right now!"
+ einfo "It's important- This install is just the engine, you still need"
+ einfo "the data paks. Go read."
+ games_pkg_postinst
+}