# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-arcade/ppracer/ppracer-0.3.1.ebuild,v 1.8 2006/01/13 22:07:01 genstef Exp $ inherit flag-o-matic gnuconfig games multilib DESCRIPTION="take on the role of Tux, the Linux Penguin, as he races down steep, snow-covered mountains" HOMEPAGE="http://developer.berlios.de/projects/ppracer/" SRC_URI="http://download.berlios.de/ppracer/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86" IUSE="X" DEPEND="virtual/opengl virtual/glu X? ( || ( ( x11-libs/libXt media-libs/mesa ) virtual/x11 ) ) >=dev-lang/tcl-8.4 media-libs/libsdl media-libs/sdl-mixer media-libs/libpng >=media-libs/freetype-2 sys-libs/zlib" RDEPEND="${DEPEND} || ( ( x11-libs/libICE x11-libs/libSM x11-libs/libX11 x11-libs/libXext x11-libs/libXi x11-libs/libXmu ) virtual/x11 )" src_unpack() { unpack ${A} cd "${S}" epatch ${FILESDIR}/ppracer-0.3.1-gcc41.patch gnuconfig_update autoconf || die "autoconf failed" } src_compile() { # alpha needs -mieee for this game to avoid FPE use alpha && append-flags -mieee egamesconf \ --disable-dependency-tracking \ --with-data-dir="${GAMES_DATADIR}/${PN}" \ --with-tcl=/usr/$(get_libdir) \ $(use_with X x) \ || die emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "install failed" dodoc AUTHORS ChangeLog dohtml -r html/* prepgamesdirs }