summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-01-12 23:57:50 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-01-12 23:57:50 +0000
commitae3fac29c456fdf4c21a582e8f8be62bd27348bd (patch)
tree4b0405410708ffd2cbd69d33a2d9ee9dbf6b83dd /games-simulation
parentFix bug #109482 (ebuild ... config). (diff)
downloadgentoo-2-ae3fac29c456fdf4c21a582e8f8be62bd27348bd.tar.gz
gentoo-2-ae3fac29c456fdf4c21a582e8f8be62bd27348bd.tar.bz2
gentoo-2-ae3fac29c456fdf4c21a582e8f8be62bd27348bd.zip
Allow sdl to be used instead of glut
(Portage version: 2.1.2_rc4-r8)
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/flightgear/ChangeLog7
-rw-r--r--games-simulation/flightgear/flightgear-0.9.10.ebuild40
2 files changed, 20 insertions, 27 deletions
diff --git a/games-simulation/flightgear/ChangeLog b/games-simulation/flightgear/ChangeLog
index abfd66f24a7f..d8d32193199c 100644
--- a/games-simulation/flightgear/ChangeLog
+++ b/games-simulation/flightgear/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-simulation/flightgear
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/flightgear/ChangeLog,v 1.25 2006/10/17 18:06:42 wolf31o2 Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/flightgear/ChangeLog,v 1.26 2007/01/12 23:57:50 nyhm Exp $
+
+ 12 Jan 2007; Tristan Heaven <nyhm@gentoo.org> flightgear-0.9.10.ebuild:
+ Allow sdl to be used instead of glut
17 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org>
-flightgear-0.9.4.ebuild, -flightgear-0.9.5.ebuild,
diff --git a/games-simulation/flightgear/flightgear-0.9.10.ebuild b/games-simulation/flightgear/flightgear-0.9.10.ebuild
index 678b0946f5ee..6f82ab9a0fbb 100644
--- a/games-simulation/flightgear/flightgear-0.9.10.ebuild
+++ b/games-simulation/flightgear/flightgear-0.9.10.ebuild
@@ -1,12 +1,11 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/flightgear/flightgear-0.9.10.ebuild,v 1.2 2006/10/17 18:06:42 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/flightgear/flightgear-0.9.10.ebuild,v 1.3 2007/01/12 23:57:50 nyhm Exp $
-inherit flag-o-matic games
+inherit games
MY_PN=FlightGear
MY_P=${MY_PN}-${PV}
-S="${WORKDIR}/${MY_P}"
DESCRIPTION="Open Source Flight Simulator"
HOMEPAGE="http://www.flightgear.org/"
SRC_URI="mirror://flightgear/Source/${MY_P}.tar.gz
@@ -15,37 +14,28 @@ SRC_URI="mirror://flightgear/Source/${MY_P}.tar.gz
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-IUSE=""
+IUSE="sdl"
-RDEPEND="virtual/glut
+DEPEND="virtual/glut
~dev-games/simgear-0.3.10
>=media-libs/plib-1.8.4
- media-libs/freealut"
-DEPEND="${RDEPEND}"
+ media-libs/freealut
+ sdl? ( media-libs/libsdl )"
-src_unpack() {
- unpack ${A}
- cd ${S}
- mv ../data ./data
-}
+S=${WORKDIR}/${MY_P}
src_compile() {
- use hppa && replace-flags -march=2.0 -march=1.0
egamesconf \
- --with-multiplayer \
- --with-network-olk \
- --with-threads \
- --with-x || die
+ --disable-dependency-tracking \
+ $(use_enable sdl) \
+ || die
emake -j1 || die "emake failed"
}
src_install() {
- egamesinstall || die
-
- dodir "${GAMES_DATADIR}/${MY_PN}"
- cp -pPR data/* "${D}/${GAMES_DATADIR}/${MY_PN}" || die "cp failed"
-
- dodoc README* ChangeLog AUTHORS NEWS Thanks
-
+ emake DESTDIR="${D}" install || die "emake install failed"
+ insinto "${GAMES_DATADIR}"/${MY_PN}
+ doins -r ../data/* || die "doins failed"
+ dodoc AUTHORS ChangeLog NEWS README Thanks
prepgamesdirs
}