forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stratagus-2.3.0.ebuild
72 lines (61 loc) · 1.6 KB
/
stratagus-2.3.0.ebuild
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
69
70
71
72
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit cmake-utils eutils games
DESCRIPTION="A realtime strategy game engine"
HOMEPAGE="https://launchpad.net/stratagus/"
SRC_URI="https://launchpad.net/stratagus/trunk/2.3/+download/stratagus_${PV}.orig.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="bzip2 debug doc fluidsynth mikmod mng theora vorbis"
RDEPEND="dev-db/sqlite:3
>=dev-lang/lua-5:0
dev-lua/toluapp
media-libs/libpng:0
virtual/opengl
x11-libs/libX11
media-libs/libsdl[sound,opengl,video]
sys-libs/zlib
bzip2? ( app-arch/bzip2 )
fluidsynth? ( media-sound/fluidsynth )
mikmod? ( media-libs/libmikmod )
mng? ( media-libs/libmng )
vorbis? (
media-libs/libogg
media-libs/libvorbis
theora? ( media-libs/libtheora )
)"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
virtual/pkgconfig"
REQUIRED_USE="theora? ( vorbis )"
PATCHES=( "${FILESDIR}"/${P}-{debug,doc}.patch )
S=${WORKDIR}/${PN}_${PV}.orig
src_configure() {
# there are in-source switches
use debug && CMAKE_BUILD_TYPE=Debug
local mycmakeargs=(
-DGAMEDIR="${GAMES_BINDIR}"
-DBINDIR="${GAMES_BINDIR}"
-DSBINDIR="${GAMES_BINDIR}"
-DDOCDIR="/usr/share/doc/${PF}"
$(cmake-utils_use_with bzip2)
$(cmake-utils_use_enable doc)
$(cmake-utils_use_with fluidsynth)
$(cmake-utils_use_with mikmod)
$(cmake-utils_use_with mng)
$(cmake-utils_use_with vorbis OGGVORBIS)
$(cmake-utils_use_with theora)
-DENABLE_DEV=ON
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install() {
cmake-utils_src_install
prepgamesdirs
}