# 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="~x86 ~amd64" IUSE="demos debug" DEPEND="dev-util/jam demos? (virtual/opengl virtual/x11)" RDEPEND="" src_compile() { econf \ $(use_with demos x) \ $(use_with demos mesa) \ $(use_with debug) \ || die "econf failed" jam || die "jam failed" } src_install() { jam -sDESTDIR="${D}" install|| die "installation failed" }