|
|
| |
inherit eutils games | inherit eutils games |
| |
DESCRIPTION="Sequel to Quake 2, an Id 3D first-person shooter" |
DESCRIPTION="Sequel to Quake 2, an id 3D first-person shooter" |
HOMEPAGE="http://www.quake4game.com/" | HOMEPAGE="http://www.quake4game.com/" |
SRC_URI="mirror://idsoftware/quake4/linux/quake4-linux-${PV}.x86.run" | SRC_URI="mirror://idsoftware/quake4/linux/quake4-linux-${PV}.x86.run" |
| |
LICENSE="QUAKE4" | LICENSE="QUAKE4" |
SLOT="0" | SLOT="0" |
KEYWORDS="-* ~amd64 ~x86" | KEYWORDS="-* ~amd64 ~x86" |
IUSE="alsa cdinstall dedicated opengl" |
IUSE="alsa cdinstall dedicated opengl smp" |
RESTRICT="strip" |
RESTRICT="primaryuri strip" |
| |
UIDEPEND="virtual/opengl | UIDEPEND="virtual/opengl |
x86? ( | x86? ( |
|
|
insinto "${dir}" | insinto "${dir}" |
exeinto "${dir}" | exeinto "${dir}" |
| |
doins *.txt README q4icon.bmp us/version.info README-1.2.htm |
rm README~ |
doins -r pb |
doins *.txt README* q4icon.bmp us/version.info |
doexe openurl.sh || die "openurl.sh" |
doins -r pb || die "doins pb" |
doexe bin/Linux/x86/quake4.x86 bin/Linux/x86/q4ded.x86 \ |
doexe openurl.sh || die "doexe openurl.sh" |
bin/Linux/x86/libgcc_s.so.1 bin/Linux/x86/libstdc++.so.* \ |
doexe bin/Linux/x86/{*.x86,*.so*} \ |
|| die "doexe x86 exes/libs" | || die "doexe x86 exes/libs" |
newexe bin/Linux/x86/libSDL-1.2.id.so.0 libSDL-1.2.so.0 || die "libSDL" |
|
| |
insinto ${dir}/q4base |
insinto "${dir}"/q4base |
doins q4base/* us/q4base/* || die "doins q4base" | doins q4base/* us/q4base/* || die "doins q4base" |
if use dedicated | if use dedicated |
then | then |
|
|
| |
if use opengl || ! use dedicated | if use opengl || ! use dedicated |
then | then |
games_make_wrapper quake4 ./quake4.x86 "${dir}" "${dir}" |
if use smp |
games_make_wrapper quake4-smp ./quake4smp.x86 "${dir}" "${dir}" |
then |
|
games_make_wrapper quake4 ./quake4smp.x86 "${dir}" "${dir}" |
|
else |
|
games_make_wrapper quake4 ./quake4.x86 "${dir}" "${dir}" |
|
fi |
# doicon ${FILESDIR}/quake4.png || die "copying icon" | # doicon ${FILESDIR}/quake4.png || die "copying icon" |
# make_desktop_entry quake4 "Quake IV" quake4.png | # make_desktop_entry quake4 "Quake IV" quake4.png |
newicon q4icon.bmp quake4.bmp || die "copying icon" | newicon q4icon.bmp quake4.bmp || die "copying icon" |
make_desktop_entry quake4 "Quake IV" /usr/share/pixmaps/quake4.bmp | make_desktop_entry quake4 "Quake IV" /usr/share/pixmaps/quake4.bmp |
make_desktop_entry quake4-smp "Quake IV (SMP)" /usr/share/pixmaps/quake4.bmp |
|
fi | fi |
| |
prepgamesdirs | prepgamesdirs |