# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="Open Source PAK Files for Quake based games" HOMEPAGE="http://openquartz.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${PN}-2002-01-22.tar.gz http://www.squawkrpg.net/openquartz/free_wad.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="games-utils/openquartz-utils >=app-text/tetex-2" RDEPEND=">=sys-apps/sed-4" S=${WORKDIR}/${PN}/pak0 src_unpack() { unpack ${PN}-2002-01-22.tar.gz || die "unpacking files failed" cd ${S} rm -rf gfx.w mkdir maps/gfx cd maps/gfx unpack free_wad.zip || die "unpacking wad-file failed" mv free.wad QuArK.wad } src_compile() { sed -i "s/..\/utils\/qutils\/bin\//\${GAMES_BINDIR}\/qutils\//g" makefile || die "sed failed" # BAD, BAD, BAD, BAD HACK!!!!! # make crashes during map-creation, because one file does not support light-rendering # but it doesn't matter, since you can still use is without light, so the second make # will find a .bsp (compiled map file) and will not try to recompile it emake || make || die "make failed" } src_install() { dodir ${GAMES_DATADIR}/quake-data/openq echo "map void1" > autoexec.cfg mv * ${D}/${GAMES_DATADIR}/quake-data/openq einfo "To play this game, make a symbolic link from" ewarn " ${GAMES_DATADIR}/quake-data/openq" einfo "to" ewarn " ${GAMES_DATADIR}/quake-data/id1" einfo "and run quakeforge" einfo "This is not done by default, to support more than one game content" }