| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-action/extreme-tuxracer/extreme-tuxracer-0.5_beta.ebuild,v 1.5 2012/05/03 03:02:34 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
inherit eutils games
|
| 7 |
|
| 8 |
DESCRIPTION="High speed arctic racing game based on Tux Racer"
|
| 9 |
HOMEPAGE="http://www.extremetuxracer.com/"
|
| 10 |
SRC_URI="mirror://sourceforge/extremetuxracer/extremetuxracer-${PV/_/}.tar.gz"
|
| 11 |
|
| 12 |
LICENSE="GPL-2"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="amd64 x86"
|
| 15 |
IUSE="nls"
|
| 16 |
|
| 17 |
RDEPEND="virtual/opengl
|
| 18 |
virtual/glu
|
| 19 |
dev-lang/tcl
|
| 20 |
media-libs/libsdl[X,audio,video]
|
| 21 |
media-libs/sdl-mixer[mod,vorbis]
|
| 22 |
media-libs/freetype:2
|
| 23 |
media-libs/libpng
|
| 24 |
x11-libs/libXmu
|
| 25 |
x11-libs/libXi
|
| 26 |
virtual/libintl"
|
| 27 |
DEPEND="${RDEPEND}
|
| 28 |
nls? ( sys-devel/gettext )
|
| 29 |
virtual/pkgconfig"
|
| 30 |
|
| 31 |
S=${WORKDIR}/${P/_}
|
| 32 |
|
| 33 |
src_prepare() {
|
| 34 |
sed -i \
|
| 35 |
-e '/^localedir/s:=.*:=@localedir@:' \
|
| 36 |
src/Makefile.in \
|
| 37 |
|| die "sed failed"
|
| 38 |
|
| 39 |
epatch "${FILESDIR}"/${P}-libpng14.patch
|
| 40 |
}
|
| 41 |
|
| 42 |
src_configure() {
|
| 43 |
egamesconf \
|
| 44 |
--disable-dependency-tracking \
|
| 45 |
--localedir=/usr/share/locale \
|
| 46 |
$(use_enable nls)
|
| 47 |
}
|
| 48 |
|
| 49 |
src_install() {
|
| 50 |
emake DESTDIR="${D}" install || die "emake install failed"
|
| 51 |
dodoc AUTHORS ChangeLog
|
| 52 |
doicon "${FILESDIR}"/${PN}.svg
|
| 53 |
make_desktop_entry etracer "Extreme Tux Racer"
|
| 54 |
prepgamesdirs
|
| 55 |
}
|