1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs multilib fixheadtails
9 DESCRIPTION="a cross-platform C++/OpenGL library that is focused on Camera control"
10 HOMEPAGE="http://openscenegraph.org/"
11 SRC_URI="http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-${OSG_V}/source/OSG_OP_OT-${OSG_V}.zip"
18 RDEPEND="virtual/opengl
19 >=dev-libs/openthreads-1.4.3
24 doc? ( app-doc/doxygen )"
26 S="${WORKDIR}/OSG_OP_OT-${OSG_V}/${MY_PN}"
31 epatch "${FILESDIR}"/${P}-build.patch
37 emake CXX="$(tc-getCXX)" || die "emake failed"
46 emake INST_LOCATION="${D}"/usr install || die "emake install failed"
48 dosym /usr/$(get_libdir)/lib${MY_PN}.so{.${PV},}
49 dosym /usr/$(get_libdir)/lib${MY_PN}.so.{${PV},${PV%%.*}}
51 insinto /usr/$(get_libdir)/pkgconfig
52 doins Make/producer.pc
56 use doc && dohtml -r doc/Doxygen/html/*
59 insinto /usr/share/doc/${PF}/examples
60 doins -r doc/Tutorial/SourceCode/*