blob: d7b90db6fa99831d05fae4088c610332e475c9af (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3/quake3-1.33_alpha187.ebuild,v 1.1 2005/10/27 07:37:02 vapier Exp $
if [[ ${PV} == "9999" ]] ; then
ESVN_REPO_URI="svn://svn.icculus.org/quake3/trunk"
inherit subversion games toolchain-funcs
SRC_URI=""
S=${WORKDIR}/trunk
elif [[ ${PV} == *_alpha* ]] ; then
inherit games toolchain-funcs
MY_PV=${PV/_alpha*}
SNAP=${PV/*_alpha}
MY_P=${PN}-${MY_PV}_SVN${SNAP}M
SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
S=${WORKDIR}/${MY_P}
else
inherit games toolchain-funcs
SRC_URI="http://icculus.org/quake3/${P}.tar.bz2"
fi
DESCRIPTION="Quake III Arena - 3rd installment of the classic id 3D first-person shooter"
HOMEPAGE="http://icculus.org/quake3/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="dedicated opengl"
RDEPEND="opengl? ( virtual/opengl virtual/x11 )
games-fps/quake3-data"
src_unpack() {
if [[ ${PV} == "9999" ]] ; then
subversion_src_unpack
else
unpack ${A}
fi
}
src_compile() {
emake \
TEMPDIR="${T}" \
CC="$(tc-getCC)" \
ARCH=$(tc-arch-kernel) \
OPTIMIZE="${CFLAGS}" \
DEFAULT_BASEDIR="${GAMES_DATADIR}/quake3" \
|| die
}
src_install() {
dodoc id-readme.txt i_o-q3-readme
cd code/unix
dodoc ChangeLog README*
doicon quake3.xpm
make_desktop_entry quake3 "Quake III Arena" quake3.xpm
cd release*
for x in linux* ; do
newgamesbin ${x} ${x/linux} || die "dobin ${x}"
done
exeinto ${GAMES_LIBDIR}/${PN}/baseq3
doexe baseq3/*.so || die "baseq3 .so"
exeinto ${GAMES_LIBDIR}/${PN}/missionpack
doexe missionpack/*.so || die "missionpack .so"
prepgamesdirs
}
|