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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Sep 17 16:50:03 2011 UTC (2 years, 11 months ago) by ssuominen
Branch: MAIN
Changes since 1.6: +3 -2 lines
Fix building with libpng15 wrt #383197 by Diego Elio Pettenò

(Portage version: 2.2.0_alpha55/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.5.5.ebuild,v 1.6 2011/03/09 22:54:42 mr_bones_ Exp $
4
5 EAPI=2
6 inherit autotools eutils games
7
8 DESCRIPTION="A realtime strategy game engine"
9 HOMEPAGE="http://stratagus.sourceforge.net/"
10 SRC_URI="http://launchpad.net/stratagus/trunk/${PV}/+download/stratagus_${PV}.orig.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="x86"
15 IUSE="bzip2 debug doc mikmod mng theora vorbis"
16
17 RDEPEND="x11-libs/libX11
18 virtual/opengl
19 >=dev-lang/lua-5
20 media-libs/libpng
21 media-libs/libsdl[audio,opengl,video]
22 bzip2? ( app-arch/bzip2 )
23 mikmod? ( media-libs/libmikmod )
24 mng? ( media-libs/libmng )
25 theora? ( media-libs/libtheora media-libs/libvorbis )
26 vorbis? ( media-libs/libvorbis )"
27 DEPEND="${RDEPEND}
28 doc? ( app-doc/doxygen )"
29
30 src_prepare() {
31 epatch "${FILESDIR}"/${P}-libpng15.patch
32 sed -i \
33 -e 's/-O.*\(-fsigned-char\).*/\1"/' \
34 configure.in \
35 || die "sed failed"
36 eautoreconf
37 }
38
39 src_configure() {
40 econf \
41 $(use_enable debug) \
42 $(use_with bzip2) \
43 $(use_with mikmod) \
44 $(use_with mng) \
45 $(use_with theora) \
46 $(use_with vorbis)
47 }
48 src_compile() {
49 emake -j1 || die
50
51 if use doc ; then
52 emake doc || die
53 fi
54 }
55
56 src_install() {
57 dogamesbin stratagus || die "dogamesbin failed"
58 dodoc README
59 dohtml -r doc/*
60 use doc && dohtml -r srcdoc/html/*
61 prepgamesdirs
62 }

  ViewVC Help
Powered by ViewVC 1.1.20