# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Made by SpanKY (vapier@netzero.com) 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://www.quakeforge.org/files/quakeforge-current.tar.bz2" LICENSE="GPL" SLOT="0" KEYWORDS="x86 ppc alpha mips" # 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 )" S=${WORKDIR}/quakeforge src_compile() { ./bootstrap local myconf myconf="--with-gnu-ld" # use static || myconf="${myconf} --enable-static=no" 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 pic && myconf="${myconf} --with-pic" use oggvorbis && myconf="${myconf} --with-ogg=/usr --with-vorbis=/usr" use ipv6 && myconf="${myconf} --with-ipv6" use fbcon && myconf="${myconf} --with-fbdev" 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" echo ${myconf} ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ ${myconf} || die "./configure failed" make || die } 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" }