Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 25846
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Grant McDorman <grmcdorman@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
scorched3d-35.ebuild ebuild for Scorched3D version 35 text/plain Grant McDorman 2003-08-03 19:15 0000 2.38 KB Details
scorched3d-35.ebuild ebuild for Scorched3D version 35 text/plain Grant McDorman 2003-08-03 19:30 0000 2.38 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 25846 depends on: Show dependency tree
Bug 25846 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-08-03 18:58 0000
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 From Grant McDorman 2003-08-03 19:15:03 0000 -------
Created an attachment (id=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 From Grant McDorman 2003-08-03 19:25:54 0000 -------
(From update of attachment 15451 [details])
># 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 From Grant McDorman 2003-08-03 19:27:52 0000 -------
(From update of attachment 15451 [details])
># 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 From Grant McDorman 2003-08-03 19:30:26 0000 -------
Created an attachment (id=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 From Grant McDorman 2003-08-03 19:32:11 0000 -------
Sorry about the ebuild as comments - I misunderstood the 'edit attachment'
page. 

------- Comment #6 From Mr. Bones. 2003-08-05 02:05:40 0000 -------
*** Bug 25937 has been marked as a duplicate of this bug. ***

------- Comment #7 From Aaron Gyes 2003-08-05 16:43:51 0000 -------
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 From Grant McDorman 2003-08-05 16:58:44 0000 -------
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 From SpanKY 2003-08-05 21:21:27 0000 -------
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 From Mr. Bones. 2003-08-06 02:06:27 0000 -------
Added to CVS.  Thanks for the bug report Grant.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug