Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 107343 Details for
Bug 144591
games-fps/joequake (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
joequake-0.15_beta1329.ebuild
joequake-0.15_beta1329.ebuild (text/plain), 5.18 KB, created by
Paul Bredbury
on 2007-01-18 03:59:59 UTC
(
hide
)
Description:
joequake-0.15_beta1329.ebuild
Filename:
MIME Type:
Creator:
Paul Bredbury
Created:
2007-01-18 03:59:59 UTC
Size:
5.18 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils flag-o-matic games > >MY_PV="${PV/_beta/b}" >MY_SRC="${PN}-v${MY_PV}-source.zip" >MY_URL="http://runecentral.com/${PN}" >MY_WINDOWS="${PN}-v${MY_PV}-win32.zip" >MY_WAD="${PN}_wad.zip" >MY_HIPNOTIC="hipnotic_wad.zip" >MY_LIGHTS="fuhquake-lits.rar" > >DESCRIPTION="Improved Quake 1 engine with ZQuake and FuhQuake graphical effects" >HOMEPAGE="http://www.runecentral.com/joequake/" ># http://www.freebsd.org/cgi/cvsweb.cgi/ports/games/joequake/files/ ># Alternative download for source: ># mirror://freebsd/ports/distfiles/${PN}/${PN}-v${MY_PV}-source.zip >SRC_URI="${MY_URL}/${MY_SRC} > ${MY_URL}/${MY_WAD} > ${MY_URL}/${MY_WINDOWS} > soa? ( ${MY_URL}/${MY_HIPNOTIC} ) > lights? ( http://www.fuhquake.net/files/extras/${MY_LIGHTS} )" > >LICENSE="GPL-2" >SLOT="0" ># Broken on amd64 - http://forums.gentoo.org/viewtopic-t-398434.html >KEYWORDS="-* ~x86" ># Info at http://www.freebsd.org/cgi/cvsweb.cgi/ports/games/joequake/Makefile ># Is not compatible with the demo data. >IUSE="cdinstall cdsound doe lights skins soa textures" > >UIDEPEND="media-libs/jpeg > media-libs/libpng > virtual/opengl > x11-libs/libX11 > x11-libs/libXau > x11-libs/libXdmcp > x11-libs/libXext > x11-libs/libXxf86dga > x11-libs/libXxf86vm" >RDEPEND="${UIDEPEND} > cdinstall? ( games-fps/quake1-data ) > doe? ( games-fps/quake1-doe ) > skins? ( games-fps/quake1-skins ) > soa? ( games-fps/quake1-soa ) > textures? ( >=games-fps/quake1-textures-20050820 )" >DEPEND="${UIDEPEND} > lights? ( || ( > app-arch/unrar > app-arch/rar ) ) > app-arch/unzip" > >S=${WORKDIR}/src >dir=${GAMES_DATADIR}/quake1 > >QA_EXECSTACK=${GAMES_BINDIR:1}/${PN} > >src_unpack() { > # Windows file is needed for pak0.pak and docs > unpack "${MY_WINDOWS}" > unpack "${MY_SRC}" > rm *.exe ${PN}/*.dll > > mkdir -p ${PN}/textures > cd ${PN}/textures > unpack "${MY_WAD}" > > if use soa ; then > mkdir hipnotic > cd hipnotic > unpack "${MY_HIPNOTIC}" > mv wad/* . > rmdir wad > fi > > if use lights ; then > cd "${WORKDIR}"/${PN} > mkdir lits > cd lits > unpack "${MY_LIGHTS}" > fi > > cd "${S}" > > # Download & apply FreeBSD's patches. Don't know of a better way to do it. > einfo "Downloading FreeBSD patches" > wget --user-agent=gentoo http://www.freebsd.org/cgi/cvsweb.cgi/ports/games/joequake/files/files.tar.gz?tarball=1 \ > || die "wget files.tar.gz failed" > mv -f files.tar.gz{?tarball=1,} || die "mv files.tar.gz failed" > unpack ./files.tar.gz > local f > for f in files/* ; do > epatch "${f}" > done > > # -O6 & -O2 stop the OpenGL screen from updating properly between frames. > # Need -O0 to stop audio crackling. > # Only additional CFLAGS optimization is the -march flag. > local march=$(get-flag -march) > sed -i \ > -e "s:-O1:-O0:" \ > -e "s:-march=pentiumpro:${march}:" \ > Makefile.linux || die "sed Makefile.linux failed" > > # The FreeBSD patches already make a similar change, expecting > # the config file in ~/.joequake/joequake/config.cfg > #sed -i \ > # -e "s:com_argv\[i+1\]));:com_argv\[i+1\]));\n\n\tmkdir (va(\"%s/%s\", getenv (\"HOME\"), \".${PN}\"), 0755);\n\tCOM_AddGameDirectory (va(\"%s/%s\", getenv (\"HOME\"), \".${PN}\"));:" \ > # common.c || die "sed common.c failed" > > # Set shared & user directories. > # Change default "-mem" parameter to cope with large maps. > # 128mb is the default in the "qrack" Quake 1 engine. > sed -i \ > -e "s:basedir = \".\":basedir = \"${dir}\":" \ > -e "s:parms.memsize = 16:parms.memsize = 128:" \ > sys_linux.c || die "sed sys_linux.c failed" > > # Save *all* the cvars by default, to easily edit config.cfg > sed -i \ > -e "s:savevars\", \"0:savevars\", \"2:" \ > cvar.c || die "sed cvar.c failed" > > if ! use cdsound ; then > # Turn the CD accesses off > sed -i \ > -e "s:/dev/cdrom:/dev/null:" \ > -e 's:COM_CheckParm("-nocdaudio"):1:' \ > cd_linux.c || die "sed cd_linux.c failed" > fi > > # Use native libs > local f ref > for f in jconfig jmorecfg jerror jpeglib png pngconf ; do > ref="/usr/include/${f}.h" > [[ -e "${ref}" ]] || die "${ref} lib not installed" > sed -i \ > -e "s:\"${f}.h\":\<${ref}\>:" \ > -e "s:\"jpeg-linux/${f}.h\":\<${ref}\>:" \ > *.c \ > || die "sed ${f} libs failed" > rm -f "${f}.h" || die "rm ${f}.h failed" > done > rm -rf jpeg-linux pngasmrd >} > >src_compile() { > emake \ > Q1DIR="${dir}" \ > LOCALBASE=/usr \ > -f Makefile.linux \ > glx \ > || die "emake failed" >} > >src_install() { > newgamesbin release_glx/${PN}-gl.glx ${PN} \ > || die "newgamesbin opengl failed" > > insinto "${dir}" > doins -r "${WORKDIR}/${PN}" || die "doins ${PN} failed" > rm -r "${D}/${dir}/${PN}/doc" > > if use cdinstall ; then > make_desktop_entry ${PN} "JoeQuake" ${PN}.png > fi > if use doe ; then > games_make_wrapper ${PN}-doe "${PN} -rogue" > make_desktop_entry ${PN}-doe "JoeQuake - Dissolution of Eternity" ${PN}.png > fi > if use soa ; then > games_make_wrapper ${PN}-soa "${PN} -hipnotic" > make_desktop_entry ${PN}-soa "JoeQuake - Scourge of Armagon" ${PN}.png > fi > > dodoc "${WORKDIR}/${PN}/doc"/* > > prepgamesdirs >} > >pkg_postinst() { > games_pkg_postinst > > elog "To run the game conveniently," > elog "set up a ~/bin/joequake script containing e.g.:" > elog > # This is the correct way of setting the sound speed in JoeQuake > elog "exec ${GAMES_BINDIR}/${PN} -nokdga -width 1024 -height 768 -fullscreen -bpp 32 +set s_khz 44 \$@" > echo >}
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 144591
:
94747
|
94748
|
95057
|
100035
|
106171
|
107311
|
107342
|
107343
|
110301
|
133259