/[gentoo-x86]/games-engines/stratagus/stratagus-2.2.4.ebuild
Gentoo

Contents of /games-engines/stratagus/stratagus-2.2.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Jan 10 21:15:56 2011 UTC (3 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.1.9.25/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-engines/stratagus/stratagus-2.2.4.ebuild,v 1.4 2010/11/29 06:40:37 mr_bones_ Exp $
4
5 inherit eutils games
6
7 DESCRIPTION="A realtime strategy game engine"
8 HOMEPAGE="http://stratagus.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/stratagus/${P}-src.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~x86"
14 IUSE="bzip2 debug doc mikmod mng opengl theora vorbis"
15
16 RDEPEND="x11-libs/libX11
17 >=dev-lang/lua-5
18 media-libs/libpng
19 media-libs/libsdl
20 mikmod? ( media-libs/libmikmod )
21 mng? ( media-libs/libmng )
22 opengl? ( virtual/opengl )
23 theora? ( media-libs/libtheora )
24 vorbis? ( media-libs/libvorbis )"
25 DEPEND="${RDEPEND}
26 doc? ( app-doc/doxygen )"
27
28 src_unpack() {
29 unpack ${A}
30 cd "${S}"
31 sed -i \
32 -e '/SDLCONFIG --libs/s:"$: -lX11":' \
33 -e 's/-O.*\(-fsigned-char\).*/\1"/' \
34 configure \
35 || die "sed failed"
36 epatch "${FILESDIR}"/${P}-gcc43.patch \
37 "${FILESDIR}"/${P}-gcc44.patch
38 }
39
40 src_compile() {
41 econf \
42 $(use_enable debug) \
43 $(use_with bzip2) \
44 $(use_with mikmod) \
45 $(use_with mng) \
46 $(use_with opengl) \
47 $(use_with theora) \
48 $(use_with vorbis) \
49 || die
50 emake -j1 || die "emake failed"
51
52 if use doc ; then
53 emake doc || die "emake doc failed"
54 fi
55 }
56
57 src_install() {
58 dogamesbin stratagus || die "dogamesbin failed"
59 dodoc README
60 dohtml -r doc/*
61 use doc && dohtml -r srcdoc/html/*
62 prepgamesdirs
63 }

  ViewVC Help
Powered by ViewVC 1.1.20