# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs eutils kde-functions MY_P=${P//.2.2/.2-r2} DESCRIPTION="KFreeFlight is a GUI-Frontend for FlightGear and it can launch it with the most common options." HOMEPAGE="http://kfreeflight.sourceforge.net/" SRC_URI="mirror://sourceforge/kfreeflight/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="arts" DEPEND=" >=games-simulation/flightgear-0.9.9 =x11-libs/qt-3* arts? kde-base/arts >=media-libs/plib-1.8.4 dev-games/simgear" S="${WORKDIR}/${MY_P//-r2/}/" src_unpack() { # unpack the client unpack ${MY_P}.tar.gz cd "${S}" } src_compile() { # configuration process econf \ $(use_with arts) \ || die "Configure process failed!" # compilation process emake -j2 || die "Compilation process failed!" } src_install() { #make DEST_DIR=${D} install || die "Installation process failed" einstall || die "Installation process failed" #dodoc AUTHORS README } pkg_postinst() { # final message einfo "" einfo "To start the program type: kfreeflight" einfo "" }