/[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.3 - (hide annotations) (download)
Mon Mar 5 05:51:40 2007 UTC (11 years, 7 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
version bump; clean old versions
(Portage version: 2.1.2-r9)

1 nyhm 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 mr_bones_ 1.3 # $Header: /var/cvsroot/gentoo-x86/games-engines/stratagus/stratagus-2.2.2.ebuild,v 1.2 2007/02/28 16:12:55 nyhm Exp $
4 nyhm 1.1
5 nyhm 1.2 inherit eutils games
6 nyhm 1.1
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 nyhm 1.2 epatch "${FILESDIR}"/${P}-lua.patch
37 nyhm 1.1 }
38    
39     src_compile() {
40     econf \
41     $(use_enable debug) \
42     $(use_with bzip2) \
43     $(use_with mikmod) \
44     $(use_with mng) \
45     $(use_with opengl) \
46     $(use_with theora) \
47     $(use_with vorbis) \
48     || die
49     emake -j1 || die "emake failed"
50    
51     if use doc ; then
52     emake doc || die "emake doc failed"
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