Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25846 - scorched3d-53.ebuild Scorched3D (3D/OpenGL version of Scorched Tanks)
Summary: scorched3d-53.ebuild Scorched3D (3D/OpenGL version of Scorched Tanks)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://www.scorched3d.co.uk
Whiteboard:
Keywords:
: 25937 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-03 18:58 UTC by Grant McDorman
Modified: 2003-08-06 02:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for Scorched3D version 35 (scorched3d-35.ebuild,2.38 KB, text/plain)
2003-08-03 19:15 UTC, Grant McDorman
Details
ebuild for Scorched3D version 35 (scorched3d-35.ebuild,2.38 KB, text/plain)
2003-08-03 19:30 UTC, Grant McDorman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grant McDorman 2003-08-03 18:58:35 UTC
Please find attached an ebuild for Scorched3D. 
 
Scorched3D is an 3D/OpenGL version of Scorched Tanks, a single or multiplayer 
tank battle. 
 
I suggest app-games/scorched3d.
Comment 1 Grant McDorman 2003-08-03 19:15:03 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 2 Grant McDorman 2003-08-03 19:25:54 UTC
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 3 Grant McDorman 2003-08-03 19:27:52 UTC
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 4 Grant McDorman 2003-08-03 19:30:26 UTC
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.
Comment 5 Grant McDorman 2003-08-03 19:32:11 UTC
Sorry about the ebuild as comments - I misunderstood the 'edit attachment' page. 
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2003-08-05 02:05:40 UTC
*** Bug 25937 has been marked as a duplicate of this bug. ***
Comment 7 Aaron Gyes 2003-08-05 16:43:51 UTC
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
Comment 8 Grant McDorman 2003-08-05 16:58:44 UTC
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. 
Comment 9 SpanKY gentoo-dev 2003-08-05 21:21:27 UTC
i utilize 3.3 on my box, ill take a hax at it ... 
 
lets not bug the authors unless we got a patch ;) 
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2003-08-06 02:06:27 UTC
Added to CVS.  Thanks for the bug report Grant.