/[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.8 - (show annotations) (download)
Thu May 15 16:43:55 2014 UTC (3 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
Fix USE dependency on media-libs/libsdl, "audio" USE flag was renamed to "sound", bug 357661.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)

1 # Copyright 1999-2014 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.7 2011/09/17 16:50:03 ssuominen 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[sound,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