# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_PN="OpenSceneGraph" 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/" SLOT=0 LICENSE="wxWinLL-3" KEYWORDS="~x86" IUSE="doc" DEPEND="virtual/opengl >=dev-libs/openthreads-1.3 >=dev-libs/producer-0.9.1" RDEPEND="" S=${WORKDIR}/OSG_OP_OT-${PV}/${MY_PN} src_unpack() { unpack ${A} cd "${S}" epatch ${FILESDIR}/${PV}-DataFilePath.patch || die "failed patching DataFilePath" epatch ${FILESDIR}/${PV}-instexamplesrc.patch || die "failed patching instexamplesrc" epatch ${FILESDIR}/${PV}-libungif.patch || die "failed patching libungif" } src_install() { emake INST_LOCATION=${D}/usr install || die "emake install failed" dobin ${S}/bin/Linux32/osgviewer || die "failed installing osgviewer" dodoc *.txt ChangeLog use doc && dohtml doc } 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)." }