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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Jan 15 14:09:00 2007 UTC (11 years, 6 months ago) by nyhm
Branch: MAIN
Version bump
(Portage version: 2.1.2_rc4-r9)

1 nyhm 1.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.2.1.ebuild,v 1.2 2007/01/12 21:53:05 nyhm Exp $
4    
5     inherit games
6    
7     DESCRIPTION="A realtime strategy game engine"
8     HOMEPAGE="http://www.stratagus.org/"
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     }
37    
38     src_compile() {
39     econf \
40     $(use_enable debug) \
41     $(use_with bzip2) \
42     $(use_with mikmod) \
43     $(use_with mng) \
44     $(use_with opengl) \
45     $(use_with theora) \
46     $(use_with vorbis) \
47     || die
48     emake -j1 || die "emake failed"
49    
50     if use doc ; then
51     emake doc || die "emake doc failed"
52     fi
53     }
54    
55     src_install() {
56     dogamesbin stratagus || die "dogamesbin failed"
57     dodoc README
58     dohtml -r doc/*
59     use doc && dohtml -r srcdoc/html/*
60     prepgamesdirs
61     }

  ViewVC Help
Powered by ViewVC 1.1.20