# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils SLOT=0 LICENSE=/usr/portage/licenses/wxWinLL-3 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="virtual/opengl dev-libs/openthreads dev-libs/producer" RDEPEND="" CAPSPN="OpenSceneGraph" S=${WORKDIR}/OSG_OP_OT-${PV}/${CAPSPN} src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${PV}-DataFilePath.patch || die epatch ${FILESDIR}/${PV}-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)." }