summaryrefslogtreecommitdiff
blob: 7c41baded621ca40edec6b9009ef4a21e853f1ec (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/ezquake-bin/ezquake-bin-1517.ebuild,v 1.7 2007/12/25 22:17:21 solar Exp $

inherit games

DESCRIPTION="Quakeworld client under active development, forked from fuhquake, including long-wanted mqwcl functionality and many more features."
HOMEPAGE="http://ezquake.sf.net/"
SRC_URI="http://wit.edu.pl/~rzadzinp/ezquake/releases/${PV}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
RESTRICT="strip"
IUSE="opengl svga cdinstall"

QA_EXECSTACK_x86="${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake-gl.glx
	${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.x11
	${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.svga"
QA_EXECSTACK_amd64="${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake-gl.glx
	${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.x11
	${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.svga"

RDEPEND=">=dev-libs/expat-2.0
	sys-libs/glibc
	=dev-libs/glib-1.2*
	!svga? ( x11-libs/libXext )
	svga? ( media-libs/svgalib )
	opengl? ( virtual/opengl x11-libs/libXext )
	cdinstall? ( games-fps/quake1-data )"

S=${WORKDIR}/${PN}

dir=${GAMES_PREFIX_OPT}/${PN}

src_install() {
	exeinto "${dir}"
	insinto "${dir}"
	BINS="ezquake-gl.glx ezquake.x11 ezquake.svga"
	doexe ${BINS} ezquake-security.so || die "doexe"
	doins -r ezquake qw || die "cp dirs"
	dodir "${GAMES_DATADIR}"/quake1/id1
	dosym "${GAMES_DATADIR}"/quake1/id1 "${dir}"/id1

	for x in ${BINS}; do
		games_make_wrapper ${x} ./${x} "${dir}" "${dir}"
	done
	prepgamesdirs
}

pkg_postinst() {
	games_pkg_postinst
	elog "NOTE that this client doesnt include .pak files. You need to copy them from"
	elog "your quake1 CD (see also: http://www.idsoftware.com/store/index.php?view=quake&page=2), "
	elog "(note that quake1 shareware packs are free) and put them in"
	elog "  ${GAMES_PREFIX_OPT}/quake1/id1 (all names lowercase)"
	elog "You may also want to check:"
	elog "--> http://fuhquake.quakeworld.nu  -- complete howto on commands and variables"
	elog "--> http://equake.quakeworld.nu -- free package containing various files"
}