# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/freeglut/freeglut-2.6.0_rc1.ebuild,v 1.2 2009/08/21 08:41:11 scarabeus Exp $ EAPI="2" inherit eutils flag-o-matic libtool DESCRIPTION="A completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library" HOMEPAGE="http://freeglut.sourceforge.net/" SRC_URI="mirror://sourceforge/freeglut/${P/_/-}.tar.gz" LICENSE="X11" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="debug" RDEPEND="virtual/opengl virtual/glu !media-libs/glut" DEPEND="${RDEPEND}" S="${WORKDIR}/${P/_*/}" src_prepare() { # Needed for sane .so versionning on bsd, please don't drop elibtoolize } src_configure() { econf \ --disable-warnings \ --disable-warnings-as-errors \ --enable-replace-glut \ $(use_enable debug) } src_install() { emake DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed" dohtml -r doc/*.html doc/*.png || die "dohtml failed" }