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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.19 - (show annotations) (download)
Tue Jan 15 05:30:44 2008 UTC (6 years, 7 months ago) by nyhm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +1 -1 lines
FILE REMOVED
rm old version
(Portage version: 2.1.4)

1 # Copyright 1999-2007 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.1.ebuild,v 1.18 2007/03/05 07:00:51 mr_bones_ Exp $
4
5 inherit eutils games
6
7 MY_PV=040702
8 DESCRIPTION="A realtime strategy game engine"
9 HOMEPAGE="http://www.stratagus.org/"
10 SRC_URI="mirror://sourceforge/stratagus/${P}-src.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~x86"
15 IUSE="debug doc flac mp3 mikmod ogg opengl vorbis"
16
17 RDEPEND="app-arch/bzip2
18 >=dev-lang/lua-5
19 media-libs/libpng
20 media-libs/libsdl
21 sys-libs/zlib
22 flac? ( media-libs/flac )
23 mp3? ( media-libs/libmad )
24 mikmod? ( media-libs/libmikmod )
25 ogg? ( vorbis? ( media-libs/libogg media-libs/libvorbis ) )"
26
27 DEPEND="${RDEPEND}
28 x11-libs/libXt
29 doc? ( app-doc/doxygen )"
30
31 S=${WORKDIR}/stratagus-${MY_PV}
32
33 src_unpack() {
34 unpack ${A}
35 cd "${S}"
36 epatch "${FILESDIR}"/flac-1.1.3.patch
37 }
38
39 src_compile() {
40 local myconf
41
42 if use ogg && use vorbis ; then
43 myconf="--enable-ogg" \
44 else
45 myconf="--disable-ogg"
46 fi
47 econf \
48 $(use_enable debug) \
49 $(use_with mikmod) \
50 $(use_with flac) \
51 $(use_with mp3 mad) \
52 $(use_with opengl) \
53 ${myconf} \
54 || die "econf failed"
55 emake -j1 || die "emake failed"
56
57 if use doc ; then
58 emake doc || die "making source documentation failed"
59 fi
60 }
61
62 src_install() {
63 dogamesbin stratagus || die "dogamesbin failed"
64 dodoc README
65 dohtml -r doc/*
66 use doc && dohtml -r srcdoc/html/*
67 prepgamesdirs
68 }

  ViewVC Help
Powered by ViewVC 1.1.20