Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 90059 Details for
Bug 137520
qudos-0.40.1.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
qudos-9999.ebuild
qudos-9999.ebuild (text/plain), 4.40 KB, created by
Paul Bredbury
on 2006-06-24 15:54:06 UTC
(
hide
)
Description:
qudos-9999.ebuild
Filename:
MIME Type:
Creator:
Paul Bredbury
Created:
2006-06-24 15:54:06 UTC
Size:
4.40 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils subversion toolchain-funcs games > >MY_PN="quake2" > >DESCRIPTION="Enhanced Quake 2 engine" >HOMEPAGE="http://qudos.quakedev.com/" > ># View at http://svn.quakedev.com/viewcvs.cgi/qudos/trunk/ >ESVN_REPO_URI="svn://svn.quakedev.com/${PN}/trunk" > >SRC_URI="" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86" >IUSE="alsa debug dedicated demo dga ipv6 joystick mods opengl qmax oss sdl textures xmms" > >UIDEPEND="alsa? ( media-libs/alsa-lib ) > opengl? ( > virtual/opengl > virtual/glu ) > sdl? ( media-libs/libsdl ) > media-libs/jpeg > media-libs/libogg > media-libs/libpng > media-libs/libvorbis > || ( > ( > x11-libs/libX11 > x11-libs/libXext > x11-libs/libXxf86dga > x11-libs/libXxf86vm ) > virtual/x11 )" >COMMON="${UIDEPEND} > xmms? ( media-sound/xmms )" >RDEPEND="${COMMON} > cdinstall? ( games-fps/quake2-data ) > demo? ( games-fps/quake2-demodata ) > textures? ( games-fps/quake2-textures )" >DEPEND="${COMMON}" > >S=${WORKDIR} >dir=${GAMES_DATADIR}/${MY_PN} >libdir=${GAMES_LIBDIR}/${PN} > >default_client() { > if use opengl || use sdl || ! use dedicated ; then > # Build default client > return 0 > fi > return 1 >} > >pkg_setup() { > games_pkg_setup > > local alert_user > > if ! use qmax && $( use opengl || use sdl ) ; then > einfo "The 'qmax' graphical improvements are recommended." > echo > alert_user=y > fi > > if use debug ; then > ewarn "The 'debug' USE flag may cause compilation to fail with:" > ewarn > ewarn "src/qcommon/cmd.c:364: warning: dereferencing type-punned" > ewarn "pointer will break strict-aliasing rules." > echo > alert_user=y > fi > > # Determine the default sound driver, in order of preference > # snd_drv is not a local variable > snd_drv="" > [[ -z "${snd_drv}" ]] && use oss && snd_drv="oss" > [[ -z "${snd_drv}" ]] && use sdl && snd_drv="sdl" > [[ -z "${snd_drv}" ]] && use alsa && snd_drv="alsa" > # Default if nothing else chosen > [[ -z "${snd_drv}" ]] && snd_drv="oss" > > if default_client ; then > einfo "Selected the ${snd_drv} sound driver." > echo > if [[ "${snd_drv}" = "alsa" ]] ; then > ewarn "The ALSA sound driver for this game is incomplete." > # OSS is the default sound driver in the Makefile > ewarn "The 'oss' USE flag is recommended instead." > echo > alert_user=y > fi > fi > > if [[ -n "${alert_user}" ]] ; then > ebeep > epause > fi >} > >src_unpack() { > subversion_src_unpack > > rm docs/gnu.txt > > # Change default sound driver and its location > sed -i src/client/snd_dma.c \ > -e "s:\"oss\":\"${snd_drv}\":" \ > -e "s:\"\./snd:\"${libdir}/snd:" \ > || die "sed snd_dma.c failed" >} > >src_compile() { > yesno() { useq $1 && echo YES || echo NO ; } > > local client="YES" > default_client || client="NO" > > local type="release" > use debug && type="debug" > > emake -j1 \ > BUILD_QUAKE2="${client}" \ > BUILD_DEDICATED=$(yesno dedicated) \ > BUILD_GLX=$(yesno opengl) \ > BUILD_SDLGL=$(yesno sdl) \ > BUILD_ALSA_SND=$(yesno alsa) \ > BUILD_SDL_SND=$(yesno sdl) \ > BUILD_OSS_SND=$(yesno oss) \ > WITH_XMMS=$(yesno xmms) \ > WITH_DGA_MOUSE=$(yesno dga) \ > WITH_JOYSTICK=$(yesno joystick) \ > TYPE="${type}" \ > DATADIR="${dir}" \ > LOCALBASE=/usr \ > LIBDIR="${GAMES_LIBDIR}/${PN}" \ > WITH_QMAX=$(yesno qmax) \ > BUILD_3ZB2=$(yesno mods) \ > BUILD_CTF=$(yesno mods) \ > BUILD_JABOT=$(yesno mods) \ > BUILD_ROGUE=$(yesno mods) \ > BUILD_XATRIX=$(yesno mods) \ > BUILD_ZAERO=$(yesno mods) \ > WITH_BOTS=$(yesno mods) \ > HAVE_IPV6=$(yesno ipv6) \ > CC="$(tc-getCC)" \ > WITH_X86_ASM=NO \ > WITH_DATADIR=YES \ > WITH_LIBDIR=YES \ > BUILD_DEBUG_DIR=release \ > BUILD_RELEASE_DIR=release \ > || die "emake failed" >} > >src_install() { > if default_client ; then > newgamesbin ${MY_PN}/QuDos ${PN} \ > || die "newgamesbin QuDos failed" > # This icon is not available in the 0.40.1 tarball > newicon src/unix/Q2.png ${PN}.png > make_desktop_entry ${PN} "QuDos" ${PN}.png > fi > > if use dedicated ; then > newgamesbin ${MY_PN}/QuDos-ded ${PN}-ded \ > || die "newgamesbin QuDos-ded failed" > fi > > insinto "${libdir}" > doins -r ${MY_PN}/* || die "doins libs failed" > rm "${D}/${libdir}"/QuDos > > insinto "${libdir}"/baseq2 > doins data/qudos.pk3 || die "doins qudos.pk3 failed" > > dodoc $(find docs -name \*.txt) docs/q2_orig/README* > > prepgamesdirs >} > >pkg_postinst() { > games_pkg_postinst > > if use demo && ! built_with_use "games-fps/quake2-demodata" symlink ; then > ewarn "To play the Quake 2 demo," > ewarn "emerge games-fps/quake2-demodata with the 'symlink' USE flag." > echo > fi >}
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 137520
:
89757
|
89768
|
89802
| 90059 |
90218