# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="a portable C++ GUI library designed for games using Allegro, SDL and/or OpenGL" HOMEPAGE="http://guichan.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~x86" IUSE="X sdl opengl allegro" DEPEND="sdl? (media-libs/libsdl media-libs/sdl-image) opengl? (virtual/opengl) allegro? (media-libs/allegro)" S=${WORKDIR}/${P}-src src_compile() { econf \ `use_enable allegro` \ `use_enable sdl` \ `use_enable sdl sdlimage` \ `use_enable opengl` \ `use_with X x` \ || die "Configuration failed" emake || die "Build failed" } src_install() { einstall || die "Installation failed" }