# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Crossfire is a nethack-style game, but more in the line of UO" SRC_URI="mirror://sourceforge/crossfire/${P}.tar.gz" HOMEPAGE="http://crossfire.real-time.com/" KEYWORDS="~x86" SLOT="0" IUSE="sdl gtk alsa" LICENSE="GPL-2" DEPEND=" virtual/x11 sdl? ( media-libs/libsdl x11-libs/gtk+ media-libs/libpng ) gtk? ( x11-libs/gtk+ media-libs/libpng ) alsa? ( media-libs/alsa-lib ) " src_compile() { local myconf="" use alsa \ && myconf="${myconf} --enable-alsa" \ || myconf="${myconf} --disable-alsa" use gtk \ && myconf="${myconf} --enable-png" \ || myconf="${myconf} --disable-gtk --disable-png" use sdl \ && myconf="${myconf} --enable-sdl --enable-png" \ || myconf="${myconf} --disable-sdl --disable--gtk --disable-png" ./configure --prefix=/usr \ --datadir=/usr/share/crossfire-client \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ ${myconf} || die make || die } src_install() { einstall }