blob: cbbb6ff5826884d816976ddf98da9bb723372b40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-engines/stratagus/stratagus-2.1.ebuild,v 1.13 2006/12/04 20:14:19 wolf31o2 Exp $
inherit games eutils autotools
MY_PV=061209
DESCRIPTION="A realtime strategy game engine"
HOMEPAGE="http://www.stratagus.org/"
SRC_URI="mirror://sourceforge/stratagus/${PN}-${MY_PV}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="bzip2 debug doc mikmod mng opengl theora vorbis"
RDEPEND="app-arch/bzip2
dev-lang/lua
media-libs/libpng
media-libs/libsdl
sys-libs/zlib
bzip2? ( app-arch/bzip2 )
mikmod? ( media-libs/libmikmod )
mng? ( media-libs/libmng )
theora? ( media-libs/libtheora )
vorbis? ( media-libs/libogg media-libs/libvorbis )"
DEPEND="${RDEPEND}
x11-libs/libXt
doc? ( app-doc/doxygen )"
S=${WORKDIR}/stratagus-${MY_PV}
src_compile() {
epatch ${FILESDIR}/stratagus-061209-lua-5.1.patch
econf \
$(use_enable debug) \
$(use_with bzip2) \
$(use_with mikmod) \
$(use_with mng) \
$(use_with opengl) \
$(use_with theora) \
$(use_with vorbis) \
--with-x \
--x-includes=/usr/include \
LDFLAGS="${LDFLAGS} -lX11" \
|| die "econf failed"
emake -j1 || die "emake failed"
echo $LDFLAGS
if use doc ; then
emake doc || die "making source documentation failed"
fi
}
src_install() {
dogamesbin stratagus || die "dogamesbin failed"
dodoc README
dohtml -r doc/*
use doc && dohtml -r srcdoc/html/*
prepgamesdirs
}
|