You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.4 KiB
63 lines
1.4 KiB
9 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit eutils cmake-utils
|
||
|
|
||
|
DESCRIPTION="Continuous Collision Detection and Physics Library"
|
||
|
HOMEPAGE="http://www.bulletphysics.com/"
|
||
9 years ago
|
SRC_URI="https://github.com/bulletphysics/bullet3/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
11 years ago
|
|
||
|
LICENSE="ZLIB"
|
||
|
SLOT="0/${PV}"
|
||
|
KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||
9 years ago
|
IUSE="+bullet3 doc double-precision examples extras"
|
||
11 years ago
|
|
||
|
RDEPEND="
|
||
|
virtual/opengl
|
||
|
media-libs/freeglut"
|
||
|
DEPEND="${RDEPEND}
|
||
|
doc? ( app-doc/doxygen[dot] )"
|
||
|
|
||
|
PATCHES=( "${FILESDIR}"/${PN}-2.78-soversion.patch )
|
||
|
|
||
9 years ago
|
S="${WORKDIR}/${PN}3-${PV}"
|
||
11 years ago
|
|
||
|
src_prepare() {
|
||
|
# allow to generate docs
|
||
|
sed -i -e 's/GENERATE_HTMLHELP.*//g' Doxyfile || die
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
-DBUILD_SHARED_LIBS=ON
|
||
|
-DBUILD_CPU_DEMOS=OFF
|
||
9 years ago
|
-DBUILD_OPENGL3_DEMOS=OFF
|
||
|
-DBUILD_BULLET2_DEMOS=OFF
|
||
11 years ago
|
-DUSE_GRAPHICAL_BENCHMARK=OFF
|
||
|
-DINSTALL_LIBS=ON
|
||
|
-DINSTALL_EXTRA_LIBS=ON
|
||
9 years ago
|
$(cmake-utils_use_build bullet3 BULLET3)
|
||
11 years ago
|
$(cmake-utils_use_build extras EXTRAS)
|
||
|
$(cmake-utils_use_use double-precision DOUBLE_PRECISION)
|
||
|
)
|
||
|
cmake-utils_src_configure
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
cmake-utils_src_compile
|
||
|
if use doc; then
|
||
|
doxygen || die
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
cmake-utils_src_install
|
||
9 years ago
|
use doc && dodoc docs/*.pdf && dohtml -r html/*
|
||
11 years ago
|
if use examples; then
|
||
|
insinto /usr/share/doc/${PF}/examples
|
||
9 years ago
|
doins -r Extras examples
|
||
11 years ago
|
fi
|
||
|
}
|