# 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="sdl opengl allegro doc" DEPEND="sdl? (media-libs/libsdl) opengl? (virtual/opengl) allegro? (media-libs/allegro)" src_compile() { econf || die "econf failed" emake || die "emake failed" # if use doc; then # cd examples # make # fi } src_install() { INCLUDEPATH="/usr/include" dodir ${INCLUDEPATH} find . -name "CVS" | xargs rm -rf find . -name "Makefile*" | xargs rm cp -r include/guichan.hpp include/guichan ${D}${INCLUDEPATH} || die "failed installing headers" dolib src/widgets/libguichan_widgets.la src/libguichan.la if use sdl; then dolib src/sdl/libguichan_sdl.la || die "failed installing SDL bindings" fi if use opengl; then dolib src/opengl/libguichan_opengl.la || die "failed installing OpenGL bindings" fi if use allegro; then dolib src/allegro/libguichan_allegro.la || die "failed installing Allegro bindings" fi if use doc; then dohtml docs/html || die "failed installing docs" fi }