diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-12-27 19:45:18 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-12-27 19:45:18 +0000 |
commit | e5551898509b2b7802941b16bb580ef7cf34b488 (patch) | |
tree | 002108625a290a29d012cd30b1bcd22707302065 /games-fps/quake2-icculus | |
parent | Added patch from Steven Farmer <steve@megahack.com> to fix bug #36005. (diff) | |
download | gentoo-2-e5551898509b2b7802941b16bb580ef7cf34b488.tar.gz gentoo-2-e5551898509b2b7802941b16bb580ef7cf34b488.tar.bz2 gentoo-2-e5551898509b2b7802941b16bb580ef7cf34b488.zip |
add rogue/xatrix game support #33029
Diffstat (limited to 'games-fps/quake2-icculus')
-rw-r--r-- | games-fps/quake2-icculus/ChangeLog | 5 | ||||
-rw-r--r-- | games-fps/quake2-icculus/files/digest-quake2-icculus-0.15 | 2 | ||||
-rw-r--r-- | games-fps/quake2-icculus/quake2-icculus-0.15.ebuild | 33 |
3 files changed, 30 insertions, 10 deletions
diff --git a/games-fps/quake2-icculus/ChangeLog b/games-fps/quake2-icculus/ChangeLog index 1e4e65fd5afa..164664d9d727 100644 --- a/games-fps/quake2-icculus/ChangeLog +++ b/games-fps/quake2-icculus/ChangeLog @@ -1,9 +1,12 @@ # ChangeLog for games-fps/quake2-icculus # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-icculus/ChangeLog,v 1.2 2003/12/01 04:20:54 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-icculus/ChangeLog,v 1.3 2003/12/27 19:45:18 vapier Exp $ *quake2-relnev-0.15 (29 Jun 2003) + 27 Dec 2003; Mike Frysinger <vapier@gentoo.org> : + Add xatrix/rogue game support #33029. + 30 Jun 2003; Mike Frysinger <vapier@gentoo.org> : renamed (whoops) and added support to build qmax & normal binary. diff --git a/games-fps/quake2-icculus/files/digest-quake2-icculus-0.15 b/games-fps/quake2-icculus/files/digest-quake2-icculus-0.15 index 82a726e09d3b..3f8d9c69a534 100644 --- a/games-fps/quake2-icculus/files/digest-quake2-icculus-0.15 +++ b/games-fps/quake2-icculus/files/digest-quake2-icculus-0.15 @@ -1,2 +1,4 @@ MD5 9e16f29db33715f2f9420b5bb31e6263 quake2-r0.15.tar.gz 2660511 MD5 04d3f1fb7fb4dada7175a41f4595c7eb maxpak.pak 3282742 +MD5 7d5e052839c9e629bad0a6570aa70554 roguesrc320.shar.Z 626769 +MD5 41fc4ecc4f25c068e7d1f488bd4a1e1a xatrixsrc320.shar.Z 455917 diff --git a/games-fps/quake2-icculus/quake2-icculus-0.15.ebuild b/games-fps/quake2-icculus/quake2-icculus-0.15.ebuild index 321310c6e39d..983694efa534 100644 --- a/games-fps/quake2-icculus/quake2-icculus-0.15.ebuild +++ b/games-fps/quake2-icculus/quake2-icculus-0.15.ebuild @@ -1,6 +1,6 @@ # 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 $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-icculus/quake2-icculus-0.15.ebuild,v 1.2 2003/12/27 19:45:18 vapier Exp $ inherit games eutils gcc @@ -10,27 +10,41 @@ 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 )" + !noqmax? ( http://icculus.org/quake2/files/maxpak.pak ) + rogue? ( ftp://ftp.idsoftware.com/idstuff/quake2/source/roguesrc320.shar.Z ) + xatrix? ( ftp://ftp.idsoftware.com/idstuff/quake2/source/xatrixsrc320.shar.Z )" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc sparc" -IUSE="svga X sdl aalib opengl noqmax" +IUSE="svga X sdl aalib opengl noqmax rogue xatrix" # default to X11 if svga/X/sdl/aalib are not in USE -DEPEND="svga? ( media-libs/svgalib ) +RDEPEND="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 )" +DEPEND="${RDEPEND} + app-arch/sharutils" 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 + ln -s `which echo` ${T}/more + for g in `use rogue` `use xatrix` ; do + mkdir -p ${S}/src/${g} + cd ${S}/src/${g} + unpack ${g}src320.shar.Z + sed -i 's:^read ans:ans=yes :' ${g}src320.shar + env PATH="${T}:${PATH}" unshar ${g}src320.shar + rm ${g}src320.shar + done + use rogue && sed -i 's:<nan\.h>:<bits/nan.h>:' ${S}/src/rogue/g_local.h } yesno() { @@ -58,8 +72,8 @@ src_compile() { BUILD_SDL=`yesno sdl` \ BUILD_SDLGL=`yesno sdl opengl` \ BUILD_CTFDLL=YES \ - BUILD_XATRIX=NO \ - BUILD_ROGUE=NO \ + BUILD_XATRIX=`yesno xatrix` \ + BUILD_ROGUE=`yesno rogue` \ BUILD_JOYSTICK=`yesno joystick` \ BUILD_DEDICATED=YES \ BUILD_AA=`yesno aalib` \ @@ -72,6 +86,7 @@ src_compile() { || die "make failed" #HAVE_IPV6=`yesno ipv6` \ # now we save the build dir ... except for the object files ... + rm release*/*/*.o mv release* my-rel-${BUILD_QMAX} cd my-rel-${BUILD_QMAX} rm -rf ref_{gl,soft} ded game client ctf/*.o @@ -89,8 +104,8 @@ src_install() { # regular q2 files dodir ${q2dir} - cp -rf my-rel-NO/* ${D}/${q2dir} - strip my-rel-NO/{*,*/*} + cp -rf my-rel-NO/* ${D}/${q2dir}/ +# strip my-rel-NO/{*,*/*} into ${GAMES_PREFIX} newbin ${FILESDIR}/quake2.start quake2 @@ -125,8 +140,8 @@ src_install() { } pkg_postinst() { + games_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 } |