# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-games/quakeforge/quakeforge-0.5.0.ebuild,v 1.2 2002/08/22 02:51:30 bass Exp $ DESCRIPTION="A new 3d engine based off of id Softwares's legendary Quake and QuakeWorld game engine" HOMEPAGE="http://www.quakeforge.org/" SRC_URI="http://gentoo.wh0rd.ca/quakeforge/${P}.tar.bz2" #http://www.quakeforge.net/files/quakeforge-current.tar.bz2 LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" # static, ncurses, oggvorbis, zlib, dga, vidmode (xfree86 ext), sdl, xmms, alsa, oss, pic, # fbdev, svga, x, amd, ip6 DEPEND="virtual/glibc ncurses? ( sys-libs/ncurses ) oggvorbis? ( media-libs/libogg media-libs/libvorbis ) zlib? ( sys-libs/zlib ) sdl? ( media-libs/libsdl ) xmms? ( media-sound/xmms ) alsa? ( media-libs/alsa-lib ) svga? ( media-libs/svgalib ) opengl? ( virtual/opengl ) X? ( x11-base/xfree )" RDEPEND="${DEPEND}" S=${WORKDIR}/quakeforge src_compile() { env WANT_AUTOMAKE_1_6=1 ./bootstrap || die "bootstrap failed" local myconf myconf="--with-gnu-ld" # if [ -z "`use static`" ] ; then # myconf="${myconf} --enable-shared=yes --enable-static=no" # else # myconf="${myconf} --enable-shared=no --enable-static=yes" # fi use ncurses || myconf="${myconf} --disable-curses" use zlib || myconf="${myconf} --disable-zlib" use xv || myconf="${myconf} --disable-vidmode" use dga || myconf="${myconf} --disable-dga" use sdl || myconf="${myconf} --disable-sdl --disable-sdltest" use xmms || myconf="${myconf} --disable-xmms" use alsa || myconf="${myconf} --disable-alsa" use oss || myconf="${myconf} --disable-oss" use oggvorbis && myconf="${myconf} --with-ogg=/usr --with-vorbis=/usr" use fbcon && myconf="${myconf} --with-fbdev" use ipv6 && myconf="${myconf} --with-ipv6" use X && myconf="${myconf} --with-x" use svga && myconf="${myconf} --with-svga=/usr" use sdl && myconf="${myconf} --with-sdl-prefix=/usr" use xmms && myconf="${myconf} --with-xmms-prefix=/usr" #guys broken in gcc3.2 but not gcc2.95.x ... if [ "`gcc -dumpversion`" == "2.95.3" ] ; then use pic && myconf="${myconf} --with-pic" fi echo ${myconf} ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ ${myconf} || die "./configure failed" #Bug 5596 (gcc3.2 doesnt like /usr/include as non-system) cd ${S}/libs/video/targets cp Makefile Makefile.old sed -e "s:-I/usr/include$::" \ Makefile.old > Makefile #gcc3.2 dies on line 55 in qw/source/net_udp6.c # cd ${S}/qw/source # cp net_udp6.c net_udp6.c.old # sed -e "s:# define model_t:# undef model_t\n# define model_t:" \ # net_udp6.c.old > net_udp6.c cd ${S} make || die "make failed" } src_install () { make DESTDIR=${D} install || die } pkg_postinst () { einfo "Before you can play, you must make sure" einfo "QuakeForge can find your Quake .pak files" einfo "" einfo "You have 2 choices to do this" einfo "1 Copy pak*.pak files to /usr/share/games/quakeforge/id1" einfo "2 Symlink pak*.pak files in /usr/share/games/quakeforge/id1" einfo "" einfo "Example:" einfo "my pak*.pak files are in /mnt/secondary/Games/Quake/Id1/" einfo "ln -s /mnt/secondary/Games/Quake/Id1/pak0.pak /usr/share/games/quakeforge/id1/pak0.pak" einfo "" einfo "You only need pak0.pak to play the demo version," einfo "the others are needed for registered version" }