# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-physics/bullet/bullet-2.77.ebuild,v 1.1 2010/11/06 04:13:45 bicatali Exp $ EAPI=2 inherit eutils cmake-utils DESCRIPTION="Continuous Collision Detection and Physics Library" HOMEPAGE="http://www.bulletphysics.com/" SRC_URI="http://bullet.googlecode.com/files/${P}.tgz" LICENSE="ZLIB" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc examples extras" RDEPEND="virtual/opengl media-libs/freeglut" DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}/${P}"-{libdir,soversion}.patch ) src_configure() { mycmakeargs=( -DBUILD_SHARED_LIBS=ON -DBUILD_DEMOS=OFF -DINSTALL_LIBS=ON -DINSTALL_EXTRA_LIBS=ON $(cmake-utils_use_build extras EXTRAS) ) cmake-utils_src_configure } src_install() { cmake-utils_src_install dodoc README ChangeLog AUTHORS if use doc; then insinto /usr/share/doc/${PF} doins *.pdf || die fi if use examples; then insinto /usr/share/doc/${PF}/examples doins -r Extras Demos || die fi }