# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Debug tool and wrapper library for OpenGL debugging" HOMEPAGE="http://bugle.sf.net/" SRC_URI="http://unc.dl.sourceforge.net/sourceforge/bugle/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="X ffmpeg" DEPEND=">=sys-devel/gcc-3.2 dev-lang/perl virtual/opengl ffmpeg? (media-video/ffmpeg)" S=${WORKDIR}/${P} src_compile() { local myconf; myconf="$(use_with X)" if use ffmpeg ; then myconf="--with-lavc $myconf" else myconf="--without-lavc $myconf" fi econf $myconf || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die }