Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 133448 Details for
Bug 111566
games-fps/sauerbraten add build-from-source ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
sauerbraten-20070904.ebuild
sauerbraten-20070904.ebuild (text/plain), 3.38 KB, created by
Jon Severinsson
on 2007-10-14 15:09:06 UTC
(
hide
)
Description:
sauerbraten-20070904.ebuild
Filename:
MIME Type:
Creator:
Jon Severinsson
Created:
2007-10-14 15:09:06 UTC
Size:
3.38 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header$ > >WANT_AUTOMAKE="latest" >WANT_AUTOCONF="latest" >inherit autotools eutils games > >#MY_PV=${PV:0:4}_${PV:4:2}_${PV:6:2} >MY_PV="2007_08_29" >PATCH="2007-09-04" >EDITION="summer_edition" > >DESCRIPTION="Open Source Game Engine (major rewrite of Cube FPS) and two freeware games: Sauerbraten (FPS) and Eisenstern (RPG in early development)" >HOMEPAGE="http://sauerbraten.org" >SRC_URI="mirror://sourceforge/${PN}/${PN}_${MY_PV}_${EDITION}_linux.tar.bz2 > mirror://sourceforge/${PN}/patch-${PATCH}_linux.tar.gz" >LICENSE="ZLIB freedist" >SLOT="0" >KEYWORDS="~amd64 ~x86" >IUSE="debug dedicated" > >DEPEND=" > !dedicated? ( > >=media-libs/libsdl-1.2 > >=media-libs/sdl-mixer-1.2 > >=media-libs/sdl-image-1.2 > media-libs/libpng > sys-libs/zlib > virtual/opengl )" > >S=${WORKDIR}/${PN} > >LIBEXECDIR="${GAMES_PREFIX}/libexec" >DATADIR="${GAMES_DATADIR}/${PN}" >STATEDIR="${GAMES_STATEDIR}/${PN}" > >src_unpack() { > unpack ${A} > > # Remove cruft > # Not technically nessesary, but will guard against some potential trouble > find -name CVS -print0 | xargs -0 rm -rf > rm -rf "${S}"/sauerbraten_unix "${S}"/bin_unix "${S}"/src/{include,lib,mingw,vcpp,xcode} > > # Remove static_wiki to avoid upgrade breakage > # Remove this section when portage doesn't break on filenames with spaces. > rm -rf "${S}"/docs/static_wiki > epatch "${FILESDIR}"/${P}-no-static-wiki.diff > > # Patch the makefile to honor global CXXFLAGS > epatch "${FILESDIR}"/${P}-makefile.diff > > # Enable debugging support in Makefile > if use debug ; then > sed -i "${S}"/src/Makefile \ > -e 's:^CXXFLAGS.*$:& -D_DEBUG:g' \ > || die "sed Makefile failed" > fi > > # Use a global statedir instead of ${PWD} > for FILE in {autoexec,config,servers}.cfg ; do > sed -i "${S}"/src/engine/{command,main,serverbrowser}.cpp \ > -e "s:${FILE}:${STATEDIR}/${FILE}:" \ > || die "sed cfg ${FILE} failed" > done > > # Fix links so they point to the correct directory > sed -i "${S}"/README.html \ > -e 's:docs/::' \ > || die "sed README.html failed" > > # Recreate the enet configure script > cd "${S}/src/enet" > eautoreconf > chmod +x configure >} > >src_compile() { > cd "${S}/src/enet" > econf || die "econf enet failed" > emake || die "emake enet failed" > > cd "${S}/src" > if use dedicated ; then > emake server || die "make failed!" > else > emake client || die "make failed!" > fi >} > >src_install() { > if use dedicated ; then > newgamesbin src/sauer_server ${PN}-server > else > # Setup the global statedir > dodir "${STATEDIR}" > for FILE in {autoexec,config,servers}.cfg ; do > touch "${D}${STATEDIR}/${FILE}" || die "touch ${FILE} failed" > fperms 660 "${STATEDIR}/${FILE}" || die "fperms ${FILE} failed" > done > > # Install the game data > insinto "${DATADIR}" > doins -r data packages > > # Install the executable > exeinto "${LIBEXECDIR}" > newexe src/sauer_client ${PN} > > # Install the wrappers > games_make_wrapper "${PN}-client" "${LIBEXECDIR}/${PN}" "${DATADIR}" > games_make_wrapper "${PN}-server" "${LIBEXECDIR}/${PN} -d" "${DATADIR}" > games_make_wrapper "eisenstern" "${LIBEXECDIR}/${PN} -grpg" "${DATADIR}" > > # Create menu entries > insinto /usr/share/pixmaps > doins "${FILESDIR}"/${PN}.png > make_desktop_entry ${PN}-client "Sauerbraten" ${PN}.png "Game;ActionGame" > # make_desktop_entry eisenstern "Eisenstern" ${PN}.png "Game;RolePlaying" > fi > > dodoc src/*.txt docs/dev/*.txt > dohtml -r README.html docs/* > > prepgamesdirs >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 111566
:
72192
|
72193
|
78674
|
81067
|
81105
|
83051
|
85513
|
89323
|
89519
|
92628
|
92669
|
96861
|
100392
|
104570
|
104704
|
104899
|
104900
|
104902
|
104903
|
104905
|
116408
|
116410
|
116411
|
133448
|
133449
|
133450
|
139476
|
139478
|
152457
|
152459
|
157443
|
190408
|
190448
|
190465
|
190468
|
190470
|
190472
|
190546
|
190547
|
190548
|
190550
|
190622
|
190657
|
190660
|
199353
|
239489
|
239491
|
239493
|
239593
|
239789
|
240635