blob: 95e0a24772f1b4d6284d110e6705a966bc6cf06d (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/doom3/doom3-1.1.1282.ebuild,v 1.5 2004/11/09 21:52:00 wolf31o2 Exp $
inherit games eutils
DESCRIPTION="Doom III - 3rd installment of the classic id 3D first-person shooter"
HOMEPAGE="http://www.doom3.com/"
SRC_URI="ftp://ftp.idsoftware.com/idstuff/${PN}/linux/${PN}-linux-${PV}.x86.run
ftp://dl.xs4all.nl/pub/mirror/idsoftware/idstuff/${PN}/linux/${PN}-linux-${PV}.x86.run
mirror://gentoo/doom3.png"
LICENSE="DOOM3"
SLOT="0"
KEYWORDS="-* x86 amd64"
IUSE="cdinstall opengl dedicated"
RESTRICT="nostrip"
DEPEND="app-arch/bzip2
app-arch/tar"
RDEPEND="virtual/libc
opengl? ( virtual/opengl )
dedicated? ( app-misc/screen )
amd64? ( app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-xlibs
app-emulation/emul-linux-x86-nvidia )"
S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
pkg_setup() {
check_license
use cdinstall && cdrom_get_cds Setup/Data/base/pak002.pk4 \
Setup/Data/base/pak000.pk4 \
Setup/Data/base/pak003.pk4
games_pkg_setup
}
src_unpack() {
unpack_makeself ${PN}-linux-${PV}.x86.run
}
src_install() {
dodir ${dir}
insinto ${dir}
doins License.txt README version.info
exeinto ${dir}
doexe libgcc_s.so.1 libstdc++.so.5 || die "doexe libs"
doexe bin/Linux/x86/glibc-2.1/doom{,ded}.x86 || die "doexe exes"
insinto ${dir}/base
doins base/* || die "doins base"
if use cdinstall; then
einfo "Copying files from Disk 1..."
doins ${CDROM_ROOT}/Setup/Data/base/pak002.pk4 \
|| die "copying pak002"
cdrom_load_next_cd
einfo "Copying files from Disk 2..."
doins ${CDROM_ROOT}/Setup/Data/base/pak00* \
|| die "copying pak000 and pak001"
cdrom_load_next_cd
einfo "Copying files from Disk 3..."
doins ${CDROM_ROOT}/Setup/Data/base/pak00* \
|| die "copying pak003 and pak004"
fi
games_make_wrapper doom3 ./doom.x86 ${dir}
games_make_wrapper doom3-ded ./doomded.x86 ${dir}
use cdinstall && find ${Ddir} -exec touch '{}' \;
insinto /usr/share/pixmaps
doins ${DISTDIR}/doom3.png
prepgamesdirs
make_desktop_entry doom3 "Doom III" doom3.png
}
pkg_postinst() {
games_pkg_postinst
if use cdinstall; then
einfo "To play the game run:"
einfo " doom3"
else
einfo "You need to copy pak000.pk4, pak001.pk4, pak002.pk4, pak003.pk4, and"
einfo "pak004.pk4 from either your installation media or your hard drive to"
einfo "${dir}/base before running the game."
echo
einfo "To play the game run:"
einfo " doom3"
fi
# IA32 Emulation required for amd64
if use amd64 ; then
echo
ewarn "NOTE: IA32 Emulation must be compiled into your kernel for Doom3 to run."
fi
}
|