summaryrefslogtreecommitdiff
blob: a2cac1c826894d5267a49411d403be2f2de275a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/tuxkart/tuxkart-0.2.0.ebuild,v 1.2 2003/10/06 15:56:28 agriffis Exp $

inherit games eutils

DESCRIPTION="A racing game starring Tux, the linux penguin"
SRC_URI="mirror://sourceforge/tuxkart/${P}.tar.gz"
HOMEPAGE="http://tuxkart.sourceforge.net"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 alpha"

DEPEND=">=media-libs/plib-1.6.0
	virtual/x11
	virtual/glut
	virtual/opengl"

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/01tuxkart.patch

	# apparently <sys/perm.h> doesn't exist on alpha
	if use alpha; then
		epatch ${FILESDIR}/tuxkart-0.2.0-alpha.patch
	fi
}

src_compile() {
	egamesconf --datadir=${GAMES_DATADIR_BASE} || die
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die
	rm -rf ${D}/usr/share/tuxkart/

	dodoc AUTHORS  CHANGES  COPYING  LICENSE  NEWS  README
	dohtml doc/*.html

	prepgamesdirs
}