summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-03-03 14:42:58 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-03-03 14:42:58 +0000
commit5dfb7beb563863e0a7360a0122033f8eefae3d01 (patch)
tree20353f630552cd156f7cd03ef5185405479ed8c5 /games-simulation/flightgear
parentVersion bump to 2.0.0 (diff)
downloadgentoo-2-5dfb7beb563863e0a7360a0122033f8eefae3d01.tar.gz
gentoo-2-5dfb7beb563863e0a7360a0122033f8eefae3d01.tar.bz2
gentoo-2-5dfb7beb563863e0a7360a0122033f8eefae3d01.zip
Version bump to 2.0.0 Bug #307201
(Portage version: 2.1.7.16/cvs/Linux i686)
Diffstat (limited to 'games-simulation/flightgear')
-rw-r--r--games-simulation/flightgear/ChangeLog8
-rw-r--r--games-simulation/flightgear/files/flightgear-2.0.0-sdl.patch11
-rw-r--r--games-simulation/flightgear/flightgear-2.0.0.ebuild48
3 files changed, 66 insertions, 1 deletions
diff --git a/games-simulation/flightgear/ChangeLog b/games-simulation/flightgear/ChangeLog
index dfaf6ba2084d..ef419cea0671 100644
--- a/games-simulation/flightgear/ChangeLog
+++ b/games-simulation/flightgear/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-simulation/flightgear
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/flightgear/ChangeLog,v 1.40 2010/03/02 10:36:40 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/flightgear/ChangeLog,v 1.41 2010/03/03 14:42:57 tupone Exp $
+
+*flightgear-2.0.0 (03 Mar 2010)
+
+ 03 Mar 2010; Tupone Alfredo <tupone@gentoo.org> +flightgear-2.0.0.ebuild,
+ +files/flightgear-2.0.0-sdl.patch:
+ Version bump to 2.0.0 Bug #307201 by Joe
02 Mar 2010; Christian Faulhammer <fauli@gentoo.org>
flightgear-1.9.1.ebuild:
diff --git a/games-simulation/flightgear/files/flightgear-2.0.0-sdl.patch b/games-simulation/flightgear/files/flightgear-2.0.0-sdl.patch
new file mode 100644
index 000000000000..835d0f4c0006
--- /dev/null
+++ b/games-simulation/flightgear/files/flightgear-2.0.0-sdl.patch
@@ -0,0 +1,11 @@
+--- configure.ac.orig 2008-09-08 12:57:35.000000000 -0400
++++ configure.ac 2008-09-08 12:58:50.000000000 -0400
+@@ -268,6 +268,8 @@
+ AC_SEARCH_LIBS(glutGetModifiers, [ glut freeglut ])
+ if test "x$enable_sdl" = "xyes"; then
+ AC_SEARCH_LIBS(SDL_Init, SDL)
++ CFLAGS="$CFLAGS `sdl-config --cflags`"
++ CXXFLAGS="$CXXFLAGS `sdl-config --cflags`"
+ fi
+ ;;
+
diff --git a/games-simulation/flightgear/flightgear-2.0.0.ebuild b/games-simulation/flightgear/flightgear-2.0.0.ebuild
new file mode 100644
index 000000000000..c33aa47a3426
--- /dev/null
+++ b/games-simulation/flightgear/flightgear-2.0.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/flightgear/flightgear-2.0.0.ebuild,v 1.1 2010/03/03 14:42:57 tupone Exp $
+
+EAPI=2
+inherit autotools eutils games
+
+MY_PN=FlightGear
+MY_P=${MY_PN}-${PV}
+DESCRIPTION="Open Source Flight Simulator"
+HOMEPAGE="http://www.flightgear.org/"
+SRC_URI="mirror://flightgear/Source/${MY_P}.tar.gz
+ mirror://flightgear/Shared/${MY_PN}-data-1.9.0.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="sdl"
+
+RDEPEND="virtual/glut
+ ~dev-games/simgear-2.0.0
+ dev-games/openscenegraph
+ x11-libs/libXmu"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-sdl.patch
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ --disable-dependency-tracking \
+ $(use_enable sdl) \
+ || die "configure failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ insinto "${GAMES_DATADIR}"/${MY_PN}
+ doins -r ../data/* || die "doins failed"
+ newicon ../data/Aircraft/A6M2/thumbnail.jpg ${PN}.jpg
+ make_desktop_entry fgfs FlightGear /usr/share/pixmaps/${PN}.jpg
+ dodoc AUTHORS ChangeLog NEWS README Thanks
+ prepgamesdirs
+}