Lines 4-18
Link Here
|
4 |
|
4 |
|
5 |
inherit eutils games |
5 |
inherit eutils games |
6 |
|
6 |
|
7 |
DESCRIPTION="Sequel to Quake 2, an Id 3D first-person shooter" |
7 |
DESCRIPTION="Sequel to Quake 2, an id 3D first-person shooter" |
8 |
HOMEPAGE="http://www.quake4game.com/" |
8 |
HOMEPAGE="http://www.quake4game.com/" |
9 |
SRC_URI="mirror://idsoftware/quake4/linux/quake4-linux-${PV}.x86.run" |
9 |
SRC_URI="mirror://idsoftware/quake4/linux/quake4-linux-${PV}.x86.run" |
10 |
|
10 |
|
11 |
LICENSE="QUAKE4" |
11 |
LICENSE="QUAKE4" |
12 |
SLOT="0" |
12 |
SLOT="0" |
13 |
KEYWORDS="-* ~amd64 ~x86" |
13 |
KEYWORDS="-* ~amd64 ~x86" |
14 |
IUSE="alsa cdinstall dedicated opengl" |
14 |
IUSE="alsa cdinstall dedicated opengl smp" |
15 |
RESTRICT="strip" |
15 |
RESTRICT="primaryuri strip" |
16 |
|
16 |
|
17 |
UIDEPEND="virtual/opengl |
17 |
UIDEPEND="virtual/opengl |
18 |
x86? ( |
18 |
x86? ( |
Lines 53-67
Link Here
|
53 |
insinto "${dir}" |
53 |
insinto "${dir}" |
54 |
exeinto "${dir}" |
54 |
exeinto "${dir}" |
55 |
|
55 |
|
56 |
doins *.txt README q4icon.bmp us/version.info README-1.2.htm |
56 |
rm README~ |
57 |
doins -r pb |
57 |
doins *.txt README* q4icon.bmp us/version.info |
58 |
doexe openurl.sh || die "openurl.sh" |
58 |
doins -r pb || die "doins pb" |
59 |
doexe bin/Linux/x86/quake4.x86 bin/Linux/x86/q4ded.x86 \ |
59 |
doexe openurl.sh || die "doexe openurl.sh" |
60 |
bin/Linux/x86/libgcc_s.so.1 bin/Linux/x86/libstdc++.so.* \ |
60 |
doexe bin/Linux/x86/{*.x86,*.so*} \ |
61 |
|| die "doexe x86 exes/libs" |
61 |
|| die "doexe x86 exes/libs" |
62 |
newexe bin/Linux/x86/libSDL-1.2.id.so.0 libSDL-1.2.so.0 || die "libSDL" |
|
|
63 |
|
62 |
|
64 |
insinto ${dir}/q4base |
63 |
insinto "${dir}"/q4base |
65 |
doins q4base/* us/q4base/* || die "doins q4base" |
64 |
doins q4base/* us/q4base/* || die "doins q4base" |
66 |
if use dedicated |
65 |
if use dedicated |
67 |
then |
66 |
then |
Lines 70-82
Link Here
|
70 |
|
69 |
|
71 |
if use opengl || ! use dedicated |
70 |
if use opengl || ! use dedicated |
72 |
then |
71 |
then |
73 |
games_make_wrapper quake4 ./quake4.x86 "${dir}" "${dir}" |
72 |
if use smp |
74 |
games_make_wrapper quake4-smp ./quake4smp.x86 "${dir}" "${dir}" |
73 |
then |
|
|
74 |
games_make_wrapper quake4 ./quake4smp.x86 "${dir}" "${dir}" |
75 |
else |
76 |
games_make_wrapper quake4 ./quake4.x86 "${dir}" "${dir}" |
77 |
fi |
75 |
# doicon ${FILESDIR}/quake4.png || die "copying icon" |
78 |
# doicon ${FILESDIR}/quake4.png || die "copying icon" |
76 |
# make_desktop_entry quake4 "Quake IV" quake4.png |
79 |
# make_desktop_entry quake4 "Quake IV" quake4.png |
77 |
newicon q4icon.bmp quake4.bmp || die "copying icon" |
80 |
newicon q4icon.bmp quake4.bmp || die "copying icon" |
78 |
make_desktop_entry quake4 "Quake IV" /usr/share/pixmaps/quake4.bmp |
81 |
make_desktop_entry quake4 "Quake IV" /usr/share/pixmaps/quake4.bmp |
79 |
make_desktop_entry quake4-smp "Quake IV (SMP)" /usr/share/pixmaps/quake4.bmp |
|
|
80 |
fi |
82 |
fi |
81 |
|
83 |
|
82 |
prepgamesdirs |
84 |
prepgamesdirs |