aboutsummaryrefslogtreecommitdiff
blob: e0b06324c6f10f3426189c54e3442006222c09e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils toolchain-funcs

DESCRIPTION="Continuous Collision Detection and Physics Library"
HOMEPAGE="http://www.continuousphysics.com/Bullet/"
SRC_URI="mirror://sourceforge/bullet/${P}.tgz"

LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test doc examples"

RDEPEND="examples? ( virtual/opengl )"
DEPEND="${DEPEND}
	dev-util/jam"
#	test? ( dev-util/cppunit )"

src_compile() {
	econf \
		$(use_with examples x) \
		$(use_with examples mesa) \
		|| die "econf failed"
	jam ${MAKEOPTS} || die "jam failed"
}

#src_test() {
#	jam check || die "jam check failed"
#}

src_install() {
	jam -sDESTDIR="${D}" install || die "jam install failed"
	dodoc README ChangeLog.txt AUTHORS
	if use doc; then
		insinto /usr/share/doc/${PF}
		doins *.pdf
	fi
}