# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="The breve Simulation Environment" HOMEPAGE="http://www.spiderland.org/" SRC_URI="http://www.spiderland.org/download/breve_2.5_source.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86" IUSE="gui" DEPEND=">=virtual/opengl-7.0 \ >=media-libs/freeglut-2.4.0 \ >=dev-games/ode-0.6-r1 \ >=dev-libs/expat-1.95.8 \ >=sys-libs/zlib-1.2.3 \ >=sci-libs/gsl-1.9" RDEPEND="${DEPEND}" S="${WORKDIR}/breve_2.5.1_source" src_unpack() { unpack ${A} cd "${S}" autoconf configure.ac > ./configure || die "autoconf failed" } src_compile() { export CPPFLAGS=-D__STDC_CONSTANT_MACROS econf || die "econf failed" emake || die "emake failed" } src_install() { dobin bin/breve dobin bin/breve_cli dodir /usr/lib/breve into /usr/lib/breve cd lib for f in `find .`; do dolib ${f} done }