1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools eutils
7 DESCRIPTION="Open Dynamics Engine SDK"
8 HOMEPAGE="http://ode.org/"
9 SRC_URI="https://bitbucket.org/odedevs/ode/downloads/${P}.tar.gz"
11 LICENSE="|| ( LGPL-2.1+ BSD )"
13 KEYWORDS="amd64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
14 IUSE="debug doc double-precision examples gyroscopic static-libs"
20 doc? ( app-doc/doxygen )"
22 MY_EXAMPLES_DIR=/usr/share/doc/${PF}/examples
25 epatch "${FILESDIR}"/${PN}-0.14-gcc7.patch
28 -e "s:\$.*/drawstuff/textures:${MY_EXAMPLES_DIR}:" \
29 drawstuff/src/Makefile.am \
30 ode/demo/Makefile.am || die
35 # use bash (bug #335760)
36 CONFIG_SHELL=/bin/bash \
39 $(use_enable static-libs static) \
40 $(use_enable debug asserts) \
41 $(use_enable double-precision) \
42 $(use_enable examples demos) \
43 $(use_enable gyroscopic) \
44 $(use_with examples drawstuff X11)
51 doxygen Doxyfile || die
56 DOCS="CHANGELOG.txt README.md" \
63 docompress -x "${MY_EXAMPLES_DIR}"
64 insinto "${MY_EXAMPLES_DIR}"
65 exeinto "${MY_EXAMPLES_DIR}"
66 doexe drawstuff/dstest/dstest
67 doins ode/demo/*.{c,cpp,h} \
68 drawstuff/textures/*.ppm \
69 drawstuff/dstest/dstest.cpp \
70 drawstuff/src/{drawstuff.cpp,internal.h,x11.cpp}