blob: 74f5379af9bb5952cd94622a7359b65d0ca6313b (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit cmake-utils games
DESCRIPTION="An open-source Zelda-like 2D game engine"
HOMEPAGE="http://www.solarus-games.org/"
SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}-src.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc luajit"
RDEPEND="
dev-games/physfs
media-libs/libmodplug
>=media-libs/libsdl2-2.0.1[X,joystick,video]
media-libs/libvorbis
media-libs/openal
media-libs/sdl2-image[png]
>=media-libs/sdl2-ttf-2.0.12
luajit? ( dev-lang/luajit:2 )
!luajit? ( dev-lang/lua:0 )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
src_prepare() {
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
-DSOLARUS_INSTALL_DESTINATION="${GAMES_BINDIR}"
$(cmake-utils_use luajit SOLARUS_USE_LUAJIT)
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
if use doc ; then
cd doc || die
doxygen || die
fi
}
src_install() {
cmake-utils_src_install
doman solarus.6
use doc && dohtml -r doc/${PV%.*}/html/*
prepgamesdirs
}
|