# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games flag-o-matic DESCRIPTION="a graphic adventure engine" HOMEPAGE="http://www.nongnu.org/advent/" SRC_URI="http://ftp.gnu.org/savannah/files/advent/dist/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="opengl" RDEPEND="dev-games/clanlib dev-util/guile" DEPEND="${RDEPEND} dev-util/pkgconfig" src_compile() { # this is ugly but the configure script / clanlib sucks append-ldflags $(clanlib0.6-config --libs) append-flags $(clanlib0.6-config --cflags) egamesconf $(use_with opengl clanGL) || die emake || die } src_install() { make install DESTDIR="${D}" || die dodoc AUTHORS ChangeLog NEWS README TODO prepgamesdirs }