1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="high-level interface for low-level physics engines"
8 HOMEPAGE="http://opal.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
11 LICENSE="|| ( BSD LGPL-2.1 )"
14 IUSE="debug double-precision examples"
16 RDEPEND="dev-games/ode"
21 S="${WORKDIR}/${P}-src"
25 if use double-precision; then
29 myconf="${myconf} debug=true"
32 # the install flag just triggers moving around some files
33 scons ODE ${myconf} install
38 -e "s:ogre\/:OGRE\/:g" \
39 samples/src/ExampleApplication.h \
40 samples/src/ExampleFrameListener.h \
41 || die "sed samples failed"
42 #clean up some directories
43 rm -r samples/playpen/{vc71,vc8}
44 rm -r samples/simple/{vc71,vc8}
49 dolib build/posix/release/libopal-ode.so
50 insinto /usr/include/opal
51 doins build/posix/release/include/opal/*
53 insinto /usr/$(get_libdir)/pkgconfig/
58 if use examples ; then
59 insinto /usr/share/doc/${PF}/samples
60 doins -r samples/* || die "copying examples failed"