/[gentoo-x86]/games-roguelike/crossfire-client/crossfire-client-1.70.0.ebuild
Gentoo

Contents of /games-roguelike/crossfire-client/crossfire-client-1.70.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Jan 13 11:38:41 2013 UTC (20 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Stable for x86, wrt bug #450790

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 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.70.0.ebuild,v 1.6 2013/01/11 18:55:07 blueness Exp $
4
5 EAPI=5
6 inherit toolchain-funcs 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 gnome-base/libglade
21 sdl? ( media-libs/libsdl[video]
22 media-libs/sdl-image )
23 lua? ( dev-lang/lua )
24 net-misc/curl
25 media-libs/freeglut
26 media-libs/libpng:0
27 sys-libs/zlib"
28 DEPEND="${RDEPEND}
29 virtual/pkgconfig"
30
31 src_prepare() {
32 sed -ri -e '/^.TH/s:$: 6:' $(find . -name "*man") || die
33 }
34
35 src_configure() {
36 # bugs in configure script so we cant use $(use_enable ...)
37 local myconf
38
39 use sdl || myconf="${myconf} --disable-sdl"
40 use alsa || myconf="${myconf} --disable-alsa9 --disable-alsa"
41 if ! use alsa && ! use oss ; then
42 myconf="${myconf} --disable-sound"
43 fi
44 egamesconf ${myconf}
45 }
46
47 src_compile() {
48 # bug 139785
49 if use alsa || use oss ; then
50 emake -j1 -C sound-src AR="$(tc-getAR)"
51 fi
52 emake AR="$(tc-getAR)"
53 }
54
55 src_install() {
56 local s
57
58 emake DESTDIR="${D}" install
59 dodoc AUTHORS ChangeLog README TODO
60 domenu gtk-v2/crossfire-client.desktop
61 for s in 16 32 48
62 do
63 newicon -s ${s} pixmaps/${s}x${s}.png ${PN}.png
64 done
65 prepgamesdirs
66 }
67
68 pkg_preinst() {
69 games_pkg_preinst
70 gnome2_icon_savelist
71 }
72
73 pkg_postinst() {
74 games_pkg_postinst
75 gnome2_icon_cache_update
76 }
77
78 pkg_postrm() {
79 gnome2_icon_cache_update
80 }

  ViewVC Help
Powered by ViewVC 1.1.20