blob: c2abdcee7c46522a1f0336772bc336ea669ef6b4 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-util/xqf/xqf-1.0.ebuild,v 1.2 2004/08/17 01:41:19 vapier Exp $
DESCRIPTION="A server browser for many FPS games (frontend for qstat)"
HOMEPAGE="http://www.linuxgames.com/xqf/"
SRC_URI="mirror://sourceforge/xqf/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc hppa amd64"
IUSE="nls geoip gtk2"
DEPEND="virtual/libc
gtk2? ( =x11-libs/gtk+-2* )
!gtk2? (
=x11-libs/gtk+-1*
media-libs/gdk-pixbuf
)
nls? ( sys-devel/gettext )
geoip? ( dev-libs/geoip )
app-arch/bzip2"
RDEPEND="${DEPEND}
>=games-util/qstat-2.6"
src_unpack() {
unpack ${A}
cd "${S}"
# "splash.png" is pretty generic. (bug #55949)
sed -i \
-e 's:splash\.png:xqfsplash.png:' \
src/{splash.c,dialogs.c} pixmaps/Makefile.in \
|| die "sed failed"
mv pixmaps/{,xqf}splash.png || die "mv failed"
}
src_compile() {
# bzip/debug/profiling options are all incorrect in the
# configure script atm so don't use them unless you check
# the source first
# http://sourceforge.net/tracker/index.php?func=detail&aid=1010440&group_id=13296&atid=113296
econf \
--disable-dependency-tracking \
$(use_enable gtk2) \
$(use_enable nls) \
$(use_enable geoip) \
--enable-bzip2 \
|| die
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS BUGS ChangeLog NEWS README TODO
}
|