1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils
8 DESCRIPTION="Open Dynamics Engine SDK"
9 HOMEPAGE="http://ode.org/"
10 SRC_URI="https://bitbucket.org/odedevs/ode/downloads/${P}.tar.gz"
12 LICENSE="|| ( LGPL-2.1+ BSD )"
14 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
15 IUSE="debug doc double-precision examples gyroscopic static-libs"
21 doc? ( app-doc/doxygen )"
23 MY_EXAMPLES_DIR=/usr/share/doc/${PF}/examples
27 -e "s:\$.*/drawstuff/textures:${MY_EXAMPLES_DIR}:" \
28 drawstuff/src/Makefile.am \
29 ode/demo/Makefile.am || die
34 # use bash (bug #335760)
35 CONFIG_SHELL=/bin/bash \
38 $(use_enable static-libs static) \
39 $(use_enable debug asserts) \
40 $(use_enable double-precision) \
41 $(use_enable examples demos) \
42 $(use_enable gyroscopic) \
43 $(use_with examples drawstuff X11)
50 doxygen Doxyfile || die
55 DOCS="CHANGELOG.txt README.md" \
62 docompress -x "${MY_EXAMPLES_DIR}"
63 insinto "${MY_EXAMPLES_DIR}"
64 exeinto "${MY_EXAMPLES_DIR}"
65 doexe drawstuff/dstest/dstest
66 doins ode/demo/*.{c,cpp,h} \
67 drawstuff/textures/*.ppm \
68 drawstuff/dstest/dstest.cpp \
69 drawstuff/src/{drawstuff.cpp,internal.h,x11.cpp}