1 # Copyright 1999-2007 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 DEPEND="dev-util/scons
20 S="${WORKDIR}/${P}-src"
24 if use double-precision; then
28 myconf="${myconf} debug=true"
31 # the install flag just triggers moving around some files
32 scons ODE ${myconf} install
37 -e "s:ogre\/:OGRE\/:g" \
38 samples/src/ExampleApplication.h \
39 samples/src/ExampleFrameListener.h \
40 || die "sed samples failed"
41 #clean up some directories
42 rm -r samples/playpen/{vc71,vc8}
43 rm -r samples/simple/{vc71,vc8}
48 dolib build/posix/release/libopal-ode.so
49 insinto /usr/include/opal
50 doins build/posix/release/include/opal/*
52 insinto /usr/$(get_libdir)/pkgconfig/
57 if use examples ; then
58 insinto /usr/share/doc/${PF}/samples
59 doins -r samples/* || die "copying examples failed"