| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-simulation/crrcsim/crrcsim-0.9.11.ebuild,v 1.3 2011/11/13 22:15:50 xmw Exp $
|
| 4 |
|
| 5 |
EAPI=3
|
| 6 |
|
| 7 |
inherit autotools eutils games
|
| 8 |
|
| 9 |
DESCRIPTION="model-airplane flight simulation program"
|
| 10 |
HOMEPAGE="http://crrcsim.berlios.de/"
|
| 11 |
SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~x86"
|
| 16 |
IUSE="portaudio"
|
| 17 |
|
| 18 |
RDEPEND="sci-mathematics/cgal
|
| 19 |
media-libs/plib
|
| 20 |
media-libs/libsdl[X,audio,joystick,opengl,video]
|
| 21 |
portaudio? ( media-libs/portaudio )"
|
| 22 |
DEPEND="${RDEPEND}"
|
| 23 |
|
| 24 |
src_prepare() {
|
| 25 |
epatch "${FILESDIR}"/${PN}-buildsystem.patch
|
| 26 |
if built_with_use --missing false sci-mathematics/cgal gmp ; then
|
| 27 |
epatch "${FILESDIR}"/${PN}-cgal_gmp.patch
|
| 28 |
fi
|
| 29 |
|
| 30 |
eautoreconf
|
| 31 |
}
|
| 32 |
|
| 33 |
src_configure() {
|
| 34 |
econf --docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
| 35 |
$(use_with portaudio)
|
| 36 |
}
|
| 37 |
|
| 38 |
src_install() {
|
| 39 |
emake DESTDIR="${D}" install || die
|
| 40 |
|
| 41 |
dodoc AUTHORS HISTORY NEWS README || die
|
| 42 |
|
| 43 |
prepgamesdirs
|
| 44 |
}
|