# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-games/ogre/ogre-1.4.2.ebuild,v 1.1 2007/06/13 11:55:15 nyhm Exp $ inherit eutils autotools DESCRIPTION="Object-oriented Graphics Rendering Engine" HOMEPAGE="http://www.ogre3d.org/" SRC_URI="mirror://sourceforge/ogre/ogre-linux-osx-v${PV//./-}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc cegui cg devil double-precision examples freeimage gtk openexr threads" RESTRICT="test" #139905 RDEPEND="dev-libs/zziplib >=media-libs/freetype-2.1.10 virtual/opengl virtual/glu x11-libs/libXt x11-libs/libXaw x11-libs/libXrandr x11-libs/libX11 cegui? ( >=dev-games/cegui-0.5 ) cg? ( media-gfx/nvidia-cg-toolkit ) devil? ( media-libs/devil ) freeimage? ( media-libs/freeimage ) gtk? ( >=dev-cpp/gtkmm-2.4 >=dev-cpp/libglademm-2.4 ) openexr? ( >=media-libs/openexr-1.2 ) threads? ( dev-libs/boost )" DEPEND="${RDEPEND} x11-proto/xf86vidmodeproto dev-util/pkgconfig" S=${WORKDIR}/ogrenew pkg_setup() { if use threads && has_version " Samples/Common/bin/ogre.cfg sed -e 's,/usr/local,/usr,g' Samples/Common/bin/plugins.cfg >plugins.cfg.tmp mv plugins.cfg.tmp Samples/Common/bin/plugins.cfg insopts -m644 doins Samples/Common/bin/*.cfg insopts -m666 doins Samples/Common/bin/ogre.cfg cp -a Samples/Media "${D}/usr/share/OGRE/" fi dodoc AUTHORS BUGS LINUX.DEV README }