# -*- sh -*- SLOT=0 LICENSE=/usr/portage/licenses/wxWinLL-3 KEYWORDS=x86 DESCRIPTION="A library for real time 3d graphics using OpenGL." SRC_URI=ftp://ftp.sourceforge.net/pub/sourceforge/o/op/openscenegraph/${P}.tar.gz HOMEPAGE=http://www.openscenegraph.org/ IUSE="doc" DEPEND="virtual/opengl =dev-libs/OpenThreads-1.3 =dev-libs/Producer-0.8.5" RDEPEND="" S=${WORKDIR}/OSG_OP_OT-0.9.7/${P} src_unpack() { tar -xzf ${DISTDIR}/${A} || die cd ${S} patch -p0 < ${FILESDIR}/0.9.7-DataFilePath.patch || die patch -p0 < ${FILESDIR}/0.9.7-instexamplesrc.patch || die } src_compile() { make || die } src_install() { make INST_LOCATION=${D}/usr install || die dobin ${S}/bin/Linux32/osgviewer dodoc *.txt ChangeLog use doc && cp -R doc ${D}/usr/share/doc/${P}/html } pkg_postinst() { has_version dev-libs/OpenSceneGraph-Data || einfo "The package \"OpenSceneGraph-Data\", while not required, is highly recomended as it contains example data files (including fonts)." }