1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils fixheadtails toolchain-funcs multilib
9 DESCRIPTION="a minimal & complete Object-Oriented thread interface for C++"
10 HOMEPAGE="http://www.openscenegraph.org/"
11 SRC_URI="http://www.openscenegraph.org/downloads/snapshots/OSG_OP_OT-${OSG_V}.zip"
18 DEPEND="app-arch/unzip
19 doc? ( app-doc/doxygen )"
22 S=${WORKDIR}/OSG_OP_OT-${OSG_V}/${MY_PN}
27 epatch "${FILESDIR}"/${P}-build.patch
33 emake CXX=$(tc-getCXX) || die "emake failed"
42 emake INST_LOCATION="${D}"/usr install || die "emake install failed"
44 dosym /usr/$(get_libdir)/lib${MY_PN}.so{.${PV},}
45 dosym /usr/$(get_libdir)/lib${MY_PN}.so.{${PV},${PV%%.*}}
47 insinto /usr/$(get_libdir)/pkgconfig
48 doins Make/openthreads.pc
50 dodoc AUTHORS.txt ChangeLog README.txt TODO.txt
52 use doc && dohtml -r docs/html/*
55 insinto /usr/share/doc/${PF}/examples
56 doins -r examples_src/*