| 1 |
mr_bones_ |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
|
|
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/crossfire-client/crossfire-client-1.12.0.ebuild,v 1.9 2012/05/02 21:06:17 jdhore Exp $
|
| 4 |
|
|
|
| 5 |
|
|
EAPI=2
|
| 6 |
|
|
inherit gnome2-utils games
|
| 7 |
|
|
|
| 8 |
|
|
DESCRIPTION="Client for the nethack-style but more in the line of UO"
|
| 9 |
|
|
HOMEPAGE="http://crossfire.real-time.com/"
|
| 10 |
|
|
SRC_URI="mirror://sourceforge/crossfire/${P}.tar.gz"
|
| 11 |
|
|
|
| 12 |
|
|
LICENSE="GPL-2"
|
| 13 |
|
|
SLOT="0"
|
| 14 |
|
|
KEYWORDS="~amd64 ~ppc ~x86"
|
| 15 |
|
|
IUSE="alsa lua oss sdl"
|
| 16 |
|
|
|
| 17 |
|
|
RDEPEND="alsa? ( media-libs/alsa-lib )
|
| 18 |
|
|
virtual/opengl
|
| 19 |
|
|
x11-libs/gtk+:2
|
| 20 |
|
|
sdl? ( media-libs/libsdl[video]
|
| 21 |
|
|
media-libs/sdl-image )
|
| 22 |
|
|
lua? ( dev-lang/lua )
|
| 23 |
|
|
net-misc/curl
|
| 24 |
|
|
media-libs/freeglut
|
| 25 |
|
|
media-libs/libpng:0
|
| 26 |
|
|
sys-libs/zlib"
|
| 27 |
|
|
DEPEND="${RDEPEND}
|
| 28 |
|
|
virtual/pkgconfig"
|
| 29 |
|
|
|
| 30 |
|
|
src_prepare() {
|
| 31 |
|
|
sed -ri -e '/^.TH/s:$: 6:' $(find . -name "*man") || die
|
| 32 |
|
|
}
|
| 33 |
|
|
|
| 34 |
|
|
src_configure() {
|
| 35 |
|
|
# bugs in configure script so we cant use $(use_enable ...)
|
| 36 |
|
|
local myconf="--disable-dependency-tracking"
|
| 37 |
|
|
|
| 38 |
|
|
use sdl || myconf="${myconf} --disable-sdl"
|
| 39 |
|
|
use alsa || myconf="${myconf} --disable-alsa9 --disable-alsa"
|
| 40 |
|
|
if ! use alsa && ! use oss ; then
|
| 41 |
|
|
myconf="${myconf} --disable-sound"
|
| 42 |
|
|
fi
|
| 43 |
|
|
egamesconf ${myconf}
|
| 44 |
|
|
}
|
| 45 |
|
|
|
| 46 |
|
|
src_compile() {
|
| 47 |
|
|
# bug 139785
|
| 48 |
|
|
if use alsa || use oss ; then
|
| 49 |
|
|
emake -j1 -C sound-src || die
|
| 50 |
|
|
fi
|
| 51 |
|
|
emake || die
|
| 52 |
|
|
}
|
| 53 |
|
|
|
| 54 |
|
|
src_install() {
|
| 55 |
|
|
local s
|
| 56 |
|
|
|
| 57 |
|
|
emake DESTDIR="${D}" install || die
|
| 58 |
|
|
dodoc AUTHORS ChangeLog README TODO
|
| 59 |
|
|
domenu gtk-v2/crossfire-client.desktop
|
| 60 |
|
|
for s in 16 32 48
|
| 61 |
|
|
do
|
| 62 |
|
|
newicon -s ${s} pixmaps/${s}x${s}.png ${PN}.png
|
| 63 |
|
|
done
|
| 64 |
|
|
prepgamesdirs
|
| 65 |
|
|
}
|
| 66 |
|
|
|
| 67 |
|
|
pkg_preinst() {
|
| 68 |
|
|
games_pkg_preinst
|
| 69 |
|
|
gnome2_icon_savelist
|
| 70 |
|
|
}
|
| 71 |
|
|
|
| 72 |
|
|
pkg_postinst() {
|
| 73 |
|
|
games_pkg_postinst
|
| 74 |
|
|
gnome2_icon_cache_update
|
| 75 |
|
|
}
|
| 76 |
|
|
|
| 77 |
|
|
pkg_postrm() {
|
| 78 |
|
|
gnome2_icon_cache_update
|
| 79 |
|
|
}
|