# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_PV=${PV//./-} DESCRIPTION="Object-oriented Graphics Rendering Engine" HOMEPAGE="http://www.ogre3d.org/" SRC_URI="mirror://sourceforge/ogre/${PN}-linux_osx-v${MY_PV}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="cegui cg devil double-precision examples openexr threads" RDEPEND=">=dev-libs/zziplib-0.13.36 \ >=media-libs/freetype-2.1.10 \ threads? ( >=dev-libs/boost-1.33.0 ) \ cegui? ( >=dev-games/cegui-0.4.0 ) \ devil? ( >=media-libs/devil-1.6.7 ) \ openexr? ( >=media-libs/openexr-1.2 ) \ virtual/opengl \ sys-libs/zlib" DEPEND="${RDEPEND} \ sys-devel/flex \ cg? ( >=media-gfx/nvidia-cg-toolkit-1.2 )" S=${WORKDIR}/ogrenew src_unpack() { unpack ${A} cd "${S}" ./bootstrap || die "bootstrap failed" } src_compile() { econf \ --with-cfgtk=cli \ --with-platform=GLX \ $(use_enable devil) \ $(use_enable cg) \ $(use_enable openexr) \ $(use_enable threads threading) \ $(use_enable double-precision double) \ $(use_enable sdl sdltest) \ || die emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "install failed" insinto /usr/share/OGRE/Media doins Samples/Media/* if use examples ; then dohtml -r Docs/* Docs/Tutorials/* insinto /usr/share/doc/${PF}/Samples doins -r Samples/* fi dodoc AUTHORS BUGS LINUX.DEV README Docs/README.linux dohtml Docs/*.html }