| Summary: | scorched3d-53.ebuild Scorched3D (3D/OpenGL version of Scorched Tanks) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Grant McDorman <grmcdorman> |
| Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | ben.tyger |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| URL: | http://www.scorched3d.co.uk | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
ebuild for Scorched3D version 35
ebuild for Scorched3D version 35 |
||
|
Description
Grant McDorman
2003-08-03 18:58:35 UTC
Created attachment 15451 [details]
ebuild for Scorched3D version 35
Installs to /usr/share/games/scorched3d, including actual compiled program. A
wrapper script is installed to /usr/games/bin which will automatically detect
if artsd (the KDE sound daemon) is running, and use artsdsp to run scorched3d
if so.
Documents are left in the install directory (/usr/share/games/scorched3d) - not
that there's much documenation right now.
Comment on attachment 15451 [details] ebuild for Scorched3D version 35 ># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># Source is hosted on sourceforge ># From the source web page dependancies: ># OpenGL 1.2. for all game graphics ># Cross Platform (Win32, Linux, Solaris) ># Simple DirectMedia Layer - SDL for cross platform game windowing ># SDL Network layer for cross platform socket library ># SDL Mixer for cross platform sound mixing ># wxWindows for cross platform setup dialogs ># Open Dynamics Engine - ODE for the physics engine ># ZLib compression for COMS compression > >inherit games > >S=${WORKDIR}/scorched > >DESCRIPTION="Multi-player tank battle in 3D (OpenGL)" >HOMEPAGE="http://www.scorched3d.co.uk/" >SRC_URI="mirror://sourceforge/scorched3d/Scorched3D-35-src.tar.gz" >LICENSE="gpl-2" >SLOT="0" >KEYWORDS="x86" >IUSE="X" >DEPEND=">=media-libs/libsdl-1.0.1 > media-libs/sdl-net > media-libs/sdl-mixer > >=x11-libs/wxGTK-2.3.4 > dev-games/ode > >=sys-libs/zlib-1.1.4" > >INSTALLPREFIX="/usr/share/games" >INSTALLDIR="${INSTALLPREFIX}/scorched3d" >EXECDIR="/usr/games/bin" >EXECSCRIPT="${EXECDIR}/scorched3d" > >src_compile() { > # scorched3d is a bit wierd about installdir; --infodir and --mandir are ignored > # and everything is installed under ${prefix}/scorched3d <sigh> > sh -x autogen.sh \ > --host=${CHOST} \ > --prefix=${INSTALLPREFIX} \ > --infodir=/usr/share/info \ > --mandir=/usr/share/man || die > emake || die >} > >src_install() { > # Unfortunately, the install in the makefile is rather stupid; everything is installed > # to ${pkgdir} using cp. pkgdir is ${prefix}/scorched3d. > # To support this, we'll install to /usr/share/games/scorched3d and then install > # a custom script - that supports automagic detection of artsd - to > # /usr/games/bin. > make prefix=${D}${INSTALLPREFIX} install || die > > # fixup permissions in install tree since scorched3d uses cp > # (permissions may get mangled by umask) > chown -R root:games ${D}${INSTALLDIR} || die > chmod -R 0440 ${D}${INSTALLDIR} || die > find ${D}${INSTALLDIR} -type d | xargs chmod u+x,g+x || die > chmod u+x,g+x ${D}${INSTALLDIR}/scorched3d || die > > # install the wrapper script > mkdir -p ${D}${EXECDIR} || die > cat >${D}${EXECSCRIPT} <<EOF || die >#!/bin/sh >PREEXEC="" >if pidof artsd >/dev/null;then > PREEXEC="artsdsp" >fi >exec \${PREEXEC} ${INSTALLDIR}/scorched3d \$@ >EOF > # fixup permissons on the wrapper script > chown root:games ${D}${EXECSCRIPT} || die > chmod 0550 ${D}${EXECSCRIPT} || die >} Comment on attachment 15451 [details] ebuild for Scorched3D version 35 ># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># Source is hosted on sourceforge ># From the source web page dependancies: ># OpenGL 1.2. for all game graphics ># Cross Platform (Win32, Linux, Solaris) ># Simple DirectMedia Layer - SDL for cross platform game windowing ># SDL Network layer for cross platform socket library ># SDL Mixer for cross platform sound mixing ># wxWindows for cross platform setup dialogs ># Open Dynamics Engine - ODE for the physics engine ># ZLib compression for COMS compression > >inherit games > >S=${WORKDIR}/scorched > >DESCRIPTION="Multi-player tank battle in 3D (OpenGL)" >HOMEPAGE="http://www.scorched3d.co.uk/" >SRC_URI="mirror://sourceforge/scorched3d/Scorched3D-35-src.tar.gz" >LICENSE="gpl-2" >SLOT="0" >KEYWORDS="x86" >IUSE="X" >DEPEND=">=media-libs/libsdl-1.0.1 > media-libs/sdl-net > media-libs/sdl-mixer > >=x11-libs/wxGTK-2.3.4 > dev-games/ode > >=sys-libs/zlib-1.1.4" > >INSTALLPREFIX="/usr/share/games" >INSTALLDIR="${INSTALLPREFIX}/scorched3d" >EXECDIR="/usr/games/bin" >EXECSCRIPT="${EXECDIR}/scorched3d" > >src_compile() { > # scorched3d is a bit wierd about installdir; --infodir and --mandir are ignored > # and everything is installed under ${prefix}/scorched3d <sigh> > sh -x autogen.sh \ > --host=${CHOST} \ > --prefix=${INSTALLPREFIX} \ > --infodir=/usr/share/info \ > --mandir=/usr/share/man || die > emake || die >} > >src_install() { > # Unfortunately, the install in the makefile is rather stupid; everything is installed > # to ${pkgdir} using cp. pkgdir is ${prefix}/scorched3d. > # To support this, we'll install to /usr/share/games/scorched3d and then install > # a custom script - that supports automagic detection of artsd - to > # /usr/games/bin. > make prefix=${D}${INSTALLPREFIX} install || die > > # fixup permissions in install tree since scorched3d uses cp > # (permissions may get mangled by umask) > chown -R root:games ${D}${INSTALLDIR} || die > chmod -R 0440 ${D}${INSTALLDIR} || die > find ${D}${INSTALLDIR} -type d | xargs chmod u+x,g+x || die > chmod u+x,g+x ${D}${INSTALLDIR}/scorched3d || die > > # install the wrapper script > mkdir -p ${D}${EXECDIR} || die > cat >${D}${EXECSCRIPT} <<EOF || die >#!/bin/sh >PREEXEC="" >if pidof artsd >/dev/null;then > PREEXEC="artsdsp" >fi >exec \${PREEXEC} ${INSTALLDIR}/scorched3d \$@ >EOF > # fixup permissons on the wrapper script > chown root:games ${D}${EXECSCRIPT} || die > chmod 0550 ${D}${EXECSCRIPT} || die >} Created attachment 15453 [details]
ebuild for Scorched3D version 35
Let's try this again (had a syntax error in the script when changing
ownership).
ebuild for Scorched3D version 35
Installs to /usr/share/games/scorched3d, including actual compiled program. A
wrapper script is installed to /usr/games/bin which will automatically detect
if artsd (the KDE sound daemon) is running, and use artsdsp to run scorched3d
if so.
Documents are left in the install directory (/usr/share/games/scorched3d) - not
that there's much documenation right now.
Sorry about the ebuild as comments - I misunderstood the 'edit attachment' page. *** Bug 25937 has been marked as a duplicate of this bug. *** Dies here: (gcc-3.3-r1) In file included from ../tank/TankAILogic.cpp:25: ../actions/TankMovement.h:45:44: pasting "}" and "TankMovement" does not give a valid preprocessing token In file included from ../tank/TankAILogic.cpp:26: ../actions/TankResign.h:39:42: pasting "}" and "TankResign" does not give a vali d preprocessing token In file included from ../tank/TankAILogic.cpp:27: ../actions/TankFired.h:42:41: pasting "}" and "TankFired" does not give a valid preprocessing token I'd submit the gcc 3.3 errors to the authors of the game, or build using gcc 3.2.x. Under gcc 3.2, these are warnings, not errors. i utilize 3.3 on my box, ill take a hax at it ... lets not bug the authors unless we got a patch ;) Added to CVS. Thanks for the bug report Grant. |