blob: a197496dccbbaf8a0e9770cfee9efe7e68834086 (
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
41
42
43
44
45
46
47
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-physics/bullet/bullet-2.67.ebuild,v 1.1 2008/03/11 19:10:20 bicatali Exp $
inherit eutils toolchain-funcs
DESCRIPTION="Continuous Collision Detection and Physics Library"
HOMEPAGE="http://www.continuousphysics.com/Bullet/"
SRC_URI="http://bullet.googlecode.com/files/${P}.tgz"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc examples"
RDEPEND="examples? ( virtual/opengl virtual/glut )"
DEPEND="${DEPEND}
|| ( dev-util/jam dev-util/ftjam )"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e 's:-O3 -fomit-frame-pointer -ffast-math::' \
Jamrules || die "sed Jamrules failed"
}
src_compile() {
econf \
$(use_with examples x) \
$(use_with examples mesa) \
|| die "econf failed"
jam -qa || 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 || die
if use doc; then
insinto /usr/share/doc/${PF}
doins *.pdf || die
fi
}
|