blob: 49bb1355e9e3feb8d49984aba306eda59e9a6003 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/crossfire-client/crossfire-client-1.71.0.ebuild,v 1.4 2015/04/19 10:07:49 ago Exp $
EAPI=5
inherit toolchain-funcs gnome2-utils games
DESCRIPTION="Client for the nethack-style but more in the line of UO"
HOMEPAGE="http://crossfire.real-time.com/"
SRC_URI="mirror://sourceforge/crossfire/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="alsa lua opengl oss sdl"
RDEPEND="alsa? ( media-libs/alsa-lib )
opengl? ( virtual/opengl
media-libs/freeglut )
x11-libs/gtk+:2
gnome-base/libglade
sdl? ( media-libs/libsdl[video]
media-libs/sdl-image[png] )
lua? ( dev-lang/lua )
net-misc/curl
media-libs/libpng:0
sys-libs/zlib"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
sed -ri -e '/^.TH/s:$: 6:' $(find . -name "*man") || die
}
src_configure() {
# bugs in configure script so we cant use $(use_enable ...)
local myconf
use sdl || myconf="${myconf} --disable-sdl"
use alsa || myconf="${myconf} --disable-alsa9 --disable-alsa"
if ! use alsa && ! use oss ; then
myconf="${myconf} --disable-sound"
fi
egamesconf ${myconf}
}
src_compile() {
# bug 139785
if use alsa || use oss ; then
emake -C sound-src AR="$(tc-getAR)"
fi
emake AR="$(tc-getAR)"
}
src_install() {
local s
default
domenu gtk-v2/crossfire-client.desktop
for s in 16 32 48
do
newicon -s ${s} pixmaps/${s}x${s}.png ${PN}.png
done
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|