summaryrefslogtreecommitdiff
blob: ea778484b1b55e942e1cf0be3e49fadb78272fff (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/bzflag/bzflag-1.10.4.ebuild,v 1.5 2004/06/24 21:53:03 agriffis Exp $

inherit games

MY_P="${P}.20040125"
DESCRIPTION="OpenGL accelerated 3d tank combat simulator game"
HOMEPAGE="http://www.BZFlag.org/"
SRC_URI="mirror://sourceforge/bzflag/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc amd64"
IUSE=""

DEPEND="virtual/opengl"

S="${WORKDIR}/${PN}-1.10.4.20040125"

src_unpack() {
	unpack ${A}
	cd ${S}
	if use amd64 ; then
		sed -i \
			-e "s/-mcpu=\$host_cpu//" configure \
			|| die "sed failed"
		chmod +x configure
	fi
}

src_install () {
	make DESTDIR="${D}" install || die "make install failed"
	dodoc AUTHORS README.UNIX TODO README ChangeLog BUGS PORTING
	prepgamesdirs
}

pkg_postinst() {
	games_pkg_postinst
	echo
	ewarn "This version of ${PN} breaks compatibility with all previous releases"
	echo
}