blob: 580177e84b0f82baf240f7922013472ff86c3f3c (
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
64
65
66
67
68
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
PYTHON_DEPEND="2"
inherit subversion python boost-utils
DESCRIPTION="Flexible Isometric Free Engine"
HOMEPAGE="http://fifengine.de/"
ESVN_REPO_URI="http://fife.svn.cvsdude.com/engine/trunk"
LICENSE="LGPL-2"
SLOT="0"
IUSE="opengl debug profile"
RDEPEND="dev-libs/boost
dev-python/pyyaml
media-libs/libsdl
media-libs/sdl-ttf
media-libs/sdl-image[png]
media-libs/libvorbis
media-libs/libogg
media-libs/openal
sys-libs/zlib
x11-libs/libXcursor
opengl? ( virtual/opengl virtual/glu dev-games/guichan[opengl] )
dev-games/guichan[sdl]
media-libs/libpng
x11-libs/libXext
"
DEPEND="${RDEPEND}
dev-util/scons
dev-lang/swig
"
src_prepare() {
#remove bundled libs
rm -r ext
epatch "${FILESDIR}/${PN}-0.3.1-unbundle-libpng.patch"
}
src_compile() {
local SCONS_ARGS=""
if use debug; then
SCONS_ARGS="$SCONS_ARGS --enable-debug"
fi
if ! use opengl; then
SCONS_ARGS="$SCONS_ARGS --disable-opengl"
fi
if use profile; then
SCONS_ARGS="$SCONS_ARGS --enable-profile"
fi
scons --python-prefix="${D}"/$(python_get_sitedir) --prefix="${D}"/usr "$SCONS_ARGS"
}
src_install() {
add_boost_paths
scons install-python --python-prefix="${D}/$(python_get_sitedir)" --prefix="${D}/usr" || die 'install failed'
}
|