| 1 |
# Copyright 1999-2008 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: $ |
| 4 |
|
| 5 |
inherit games |
| 6 |
|
| 7 |
MY_PN="${PN/-bin/}" |
| 8 |
SECURITY_PV=1.8.2 |
| 9 |
DESCRIPTION="Quakeworld client with mqwcl functionality and many more features." |
| 10 |
HOMEPAGE="http://ezquake.sf.net/" |
| 11 |
SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}_linux-x86_${PV}.tar.gz |
| 12 |
security? ( http://uttergrottan.localghost.net/${MY_PN}/security/${MY_PN}_security_${SECURITY_PV}.zip )" |
| 13 |
|
| 14 |
LICENSE="GPL-2" |
| 15 |
SLOT="0" |
| 16 |
KEYWORDS="~x86" |
| 17 |
RESTRICT="strip" |
| 18 |
IUSE="cdinstall opengl security svga" |
| 19 |
|
| 20 |
QA_EXECSTACK_x86="${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake-gl.glx |
| 21 |
${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.x11 |
| 22 |
${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.svga" |
| 23 |
QA_EXECSTACK_amd64="${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake-gl.glx |
| 24 |
${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.x11 |
| 25 |
${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.svga" |
| 26 |
|
| 27 |
RDEPEND=">=dev-libs/expat-2.0 |
| 28 |
sys-libs/glibc |
| 29 |
!svga? ( x11-libs/libXext ) |
| 30 |
svga? ( media-libs/svgalib ) |
| 31 |
opengl? ( virtual/opengl x11-libs/libXext ) |
| 32 |
cdinstall? ( games-fps/quake1-data )" |
| 33 |
DEPEND="${RDEPEND} |
| 34 |
security? ( app-arch/zip )" |
| 35 |
dir=${GAMES_PREFIX_OPT}/${PN} |
| 36 |
|
| 37 |
src_install() { |
| 38 |
exeinto "${dir}" |
| 39 |
insinto "${dir}" |
| 40 |
|
| 41 |
local x BINS="ezquake.x11" |
| 42 |
use svga && BINS="${BINS} ezquake.svga" |
| 43 |
use opengl && BINS="${BINS} ezquake-gl.glx" |
| 44 |
|
| 45 |
doexe ${BINS} || die "doexe" |
| 46 |
if use security ; then |
| 47 |
doexe "${MY_PN}-security.so" || die "doexe" |
| 48 |
fi |
| 49 |
doins -r ezquake qw || die "doins failed" |
| 50 |
|
| 51 |
dosym "${GAMES_DATADIR}"/quake1/id1 "${dir}"/id1 |
| 52 |
|
| 53 |
for x in ${BINS}; do |
| 54 |
games_make_wrapper ${x} ./${x} "${dir}" "${dir}" |
| 55 |
done |
| 56 |
|
| 57 |
prepgamesdirs |
| 58 |
} |
| 59 |
|
| 60 |
pkg_postinst() { |
| 61 |
games_pkg_postinst |
| 62 |
|
| 63 |
if use !cdinstall; then |
| 64 |
elog "NOTE that this client doesn't include .pak files. You *should*" |
| 65 |
elog "enable \"cdinstall\" flag or install quake1-demodata." |
| 66 |
elog "You can also copy the files from your Quake1 CD to" |
| 67 |
elog " ${dir}/quake1/id1 (all names lowercase)" |
| 68 |
elog "" |
| 69 |
elog "You may also want to check:" |
| 70 |
elog " http://fuhquake.quakeworld.nu - complete howto on commands and variables" |
| 71 |
elog " http://equake.quakeworld.nu - free package containing various files" |
| 72 |
fi |
| 73 |
} |