summaryrefslogtreecommitdiff
blob: b01c3c7119acd635269590a8bd8ed5b829525973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2
inherit games git autotools flag-o-matic

DESCRIPTION="A graphical frontend for the FlightGear Flight Simulator"
HOMEPAGE="http://sourceforge.net/projects/fgrun"
EGIT_REPO_URI="git://mapserver.flightgear.org/${PN}/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="nls"

DEPEND="dev-games/simgear
	|| (
		<x11-libs/fltk-1.1.9:1.1[opengl]
		>=x11-libs/fltk-1.1.9:1.1[opengl,threads]
	)
	x11-libs/libXi
	x11-libs/libXmu
	nls? ( virtual/libintl )"

RDEPEND="${DEPEND}
	>=games-simulation/flightgear-1.9.0"

pkg_setup() {
	append-ldflags -Wl,--no-as-needed
}

src_prepare() {
	epatch "${FILESDIR}/${PN}"-1.5.1-fltk.patch
	eautoreconf
}

src_configure() {
	egamesconf \
	$(use_enable nls) \
	|| die "configure failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS NEWS
	prepgamesdirs
}