# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $$ inherit games DESCRIPTION="NEXUIZ FPS" HOMEPAGE="http://www.nexuiz.com" SRC_URI="http://heanet.dl.sourceforge.net/sourceforge/nexuiz/nexuiz.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="sdl" RDEPEND="sdl? ( media-libs/libsdl ) virtual/opengl" src_unpack() { unpack ${A} cd "${WORKDIR}/Nexuiz" } src_install() { cd "${WORKDIR}/Nexuiz" dodir /opt/nexuiz exeinto /opt/nexuiz exeopts -m0755 -o $GAMES_USER -g $GAMES_GROUP doexe nexuiz-linux-x86-dedicated nexuiz-linux-x86-glx use sdl && doexe nexuiz-linux-x86-sdl if use amd64 then doexe nexuiz-linux-x86_64-dedicated nexuiz-linux-x86_64-glx use sdl && doexe nexuiz-linux-x86_64-sdl fi dodir /opt/nexuiz/data insinto /opt/nexuiz/data insopts -m0644 -o $GAMES_USER -g $GAMES_GROUP doins data/* if use x86 then use sdl && games_make_wrapper nexuiz-sdl ./nexuiz-linux-x86-sdl /opt/nexuiz games_make_wrapper nexuiz-glx ./nexuiz-linux-x86-glx /opt/nexuiz games_make_wrapper nexuiz-ded ./nexuiz-linux-x86-dedicated /opt/nexuiz else # use amd64 use sdl && games_make_wrapper nexuiz-sdl ./nexuiz-linux-x86_64-sdl /opt/nexuiz games_make_wrapper nexuiz-glx ./nexuiz-linux-x86_64-glx /opt/nexuiz games_make_wrapper nexuiz-ded ./nexuiz-linux-x86_64-dedicated /opt/nexuiz fi }