# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-games/cegui/cegui-0.2.0.ebuild,v 1.1 2005/05/03 21:57:51 vapier Exp $ inherit eutils DESCRIPTION="Crazy Eddie's GUI System" HOMEPAGE="http://www.cegui.org.uk/" SRC_URI="mirror://sourceforge/crayzedsgui/${PN}_mk2-${PV}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="opengl devil doc" RDEPEND="=media-libs/freetype-2* >=dev-libs/xerces-c-2.6.0 opengl? ( virtual/opengl ) devil? ( >=media-libs/devil-1.5 )" DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.15.0 doc? ( >=app-doc/doxygen-1.3.8 )" S=${WORKDIR}/cegui_mk2 src_compile() { # stupid configure script has broken opengl handling local myconf="" use opengl || myconf="${myconf} --disable-opengl-renderer" econf \ $(use_with devil) \ ${myconf} \ || die emake || die "emake failed" use doc && doxygen } src_install() { make install DESTDIR="${D}" || die dodoc AUTHORS ChangeLog README TODO ReadMe.html use doc && dohtml -r documentation/api_reference/* }