# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-simulation/flightgear/flightgear-0.9.3.ebuild,v 1.9 2004/06/24 23:22:24 agriffis Exp $ inherit flag-o-matic 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 mirror://flightgear/Shared/fgfs-base-${PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc" IUSE="" DEPEND="=dev-games/simgear-0.3.4* >=sys-apps/sed-4" src_unpack() { unpack ${A} cd ${S} sed -i \ -e 's:#include :#include :g' \ configure || die "sed configure failed" } src_compile() { use hppa && replace-flags -march=2.0 -march=1.0 egamesconf \ --with-multiplayer \ --with-network-olk \ --with-threads \ --with-x || die emake -j1 || die "emake failed" } src_install() { egamesinstall || die dodir ${GAMES_LIBDIR}/${MY_PN} cp -a data/* ${D}/${GAMES_LIBDIR}/${MY_PN} dodoc README* ChangeLog AUTHORS NEWS Thanks prepgamesdirs }