/[gentoo-x86]/sci-physics/bullet/bullet-2.81.ebuild
Gentoo

Contents of /sci-physics/bullet/bullet-2.81.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Mar 4 22:32:13 2013 UTC (4 years, 11 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Version bump

(Portage version: 2.2.01.21688-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-physics/bullet/bullet-2.80.ebuild,v 1.6 2012/12/04 10:30:30 ago Exp $
4
5 EAPI=5
6
7 inherit eutils cmake-utils
8
9 # version release, check http://code.google.com/p/bullet/downloads/list
10 MYP=${P}-rev2613
11
12 DESCRIPTION="Continuous Collision Detection and Physics Library"
13 HOMEPAGE="http://www.bulletphysics.com/"
14 SRC_URI="http://bullet.googlecode.com/files/${MYP}.tgz"
15
16 LICENSE="ZLIB"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
19 IUSE="doc double-precision examples extras"
20
21 RDEPEND="
22 virtual/opengl
23 media-libs/freeglut"
24 DEPEND="${RDEPEND}
25 doc? ( app-doc/doxygen[dot] )"
26
27 PATCHES=( "${FILESDIR}"/${PN}-2.78-soversion.patch )
28
29 S="${WORKDIR}/${MYP}"
30
31 src_prepare() {
32 # allow to generate docs
33 sed -i -e 's/GENERATE_HTMLHELP.*//g' Doxyfile || die
34 }
35
36 src_configure() {
37 local mycmakeargs=(
38 -DBUILD_SHARED_LIBS=ON
39 -DBUILD_CPU_DEMOS=OFF
40 -DBUILD_DEMOS=OFF
41 -DUSE_GRAPHICAL_BENCHMARK=OFF
42 -DINSTALL_LIBS=ON
43 -DINSTALL_EXTRA_LIBS=ON
44 $(cmake-utils_use_build extras EXTRAS)
45 $(cmake-utils_use_use double-precision DOUBLE_PRECISION)
46 )
47 cmake-utils_src_configure
48 }
49
50 src_compile() {
51 cmake-utils_src_compile
52 if use doc; then
53 doxygen || die
54 fi
55 }
56
57 src_install() {
58 cmake-utils_src_install
59 use doc && dodoc *.pdf && dohtml -r html/*
60 if use examples; then
61 insinto /usr/share/doc/${PF}/examples
62 doins -r Extras Demos
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20