/[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 - (hide annotations) (download)
Sat Sep 17 16:50:03 2011 UTC (3 years, 3 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 mr_bones_ 1.3 # Copyright 1999-2011 Gentoo Foundation
2 mr_bones_ 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.7 # $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 mr_bones_ 1.1
5     EAPI=2
6 ssuominen 1.7 inherit autotools eutils games
7 mr_bones_ 1.1
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 mr_bones_ 1.6 KEYWORDS="x86"
15 mr_bones_ 1.1 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 mr_bones_ 1.3 theora? ( media-libs/libtheora media-libs/libvorbis )
26 mr_bones_ 1.1 vorbis? ( media-libs/libvorbis )"
27     DEPEND="${RDEPEND}
28     doc? ( app-doc/doxygen )"
29    
30     src_prepare() {
31 ssuominen 1.7 epatch "${FILESDIR}"/${P}-libpng15.patch
32 mr_bones_ 1.1 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 mr_bones_ 1.2 emake -j1 || die
50 mr_bones_ 1.1
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