# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils SLOT=0 LICENSE="OSGPL" KEYWORDS="x86" DESCRIPTION="A library for real time 3d graphics using OpenGL." SRC_URI="http://www.openscenegraph.org/downloads/snapshots/OSG_OP_OT-${PV}.zip" HOMEPAGE="http://www.openscenegraph.org/" IUSE="doc" DEPEND="doc? ( app-doc/doxygen ) app-arch/unzip" RDEPEND="virtual/x11 virtual/opengl media-libs/giflib =dev-libs/openthreads-${PV} =dev-libs/producer-${PV}" CAPSPN="OpenSceneGraph" S=${WORKDIR}/OSG_OP_OT-${PV}/${CAPSPN} src_unpack() { unpack ${A} || die cd ${S} epatch ${FILESDIR}/makedef.patch || die } src_compile() { sed -e "s/OPTF.*=.*/OPTF=\"${CFLAGS}\"/" Make/makedefs > makedefs.opt mv makedefs.opt Make/makedefs make INST_LOCATION=/usr || die if use doc; then export OSGHOME=${S} doxygen doc/Doxyfiles/core_Doxyfile fi } src_install() { make INST_LOCATION=${D}/usr install || die dodoc *.txt if use doc; then dohtml -r doc/OpenSceneGraphReferenceDocs/ fi insinto /usr/lib/pkgconfig doins Make/openscenegraph.pc }