blob: e348946354ae8a72e1e20e4fc2d3a40c10e91a55 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-physics/bullet/bullet-2.74.ebuild,v 1.1 2009/03/24 19:05:07 bicatali Exp $
EAPI=2
inherit eutils autotools
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="~amd64 ~x86"
IUSE="doc examples threads"
RDEPEND=""
DEPEND="${RDEPEND}"
src_prepare() {
rm -rf Extras/LibXML
rm -f Extras/CDTestFramework/AntTweakBar/lib/libAntTweakBar.so
epatch "${FILESDIR}"/${P}-noextra.patch
eautoreconf
edos2unix install-sh || die
}
src_configure() {
econf \
--disable-demos \
$(use_enable threads multithreaded)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README ChangeLog AUTHORS || die
if use doc; then
insinto /usr/share/doc/${PF}
doins *.pdf || die
fi
if use examples; then
emake distclean
insinto /usr/share/doc/${PF}/examples
doins -r Extras Demos || die
fi
}
|