blob: 33e3560fc1c15e892158f6346f26ce8d308969b2 (
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
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit games cmake-utils flag-o-matic eutils
SRC_URI="mirror://sourceforge/sumwars/${P//_/-}-src.tar.bz2"
DESCRIPTION="a multi-player, 3D action role-playing game"
HOMEPAGE="http://sumwars.org"
LICENSE="GPL-3 CCPL-Attribution-ShareAlike-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+stl +tools debug"
LANGS="de en it pl pt ru uk"
for L in ${LANGS} ; do
IUSE="${IUSE} linguas_${L}"
done
DEPEND="
>=dev-games/cegui-0.7.6-r1[ogre]
!>=dev-games/cegui-0.8
>=dev-games/ogre-1.7.0
!>=dev-games/ogre-1.9
dev-games/ois
dev-games/physfs
~dev-lang/lua-5.1.4
dev-libs/tinyxml[stl=]
media-libs/freealut
media-libs/openal
media-libs/libogg
media-libs/libvorbis
>=net-libs/enet-1.3.0
x11-libs/libXrandr
tools? ( dev-libs/poco )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}-${PV%_*}
pkg_setup() {
ewarn "Orge3D currently doesn't work with USE-flag 'threads' under some circumstances."
ewarn "If you experience a problem running $P please rebuild dev-games/ogre with USE -threads."
ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=307205#c25"
}
src_configure() {
use stl && append-flags -DTIXML_USE_STL
use debug && CMAKE_BUILD_TYPE=Debug
[ -z "${LINGUAS}" ] && LINGUAS="en"
# configure sumwars with cmake
mycmakeargs=(
-DCMAKE_INSTALL_PREFIX="/usr"
-DSUMWARS_LANGUAGES="${LINGUAS}"
-DSUMWARS_NO_TINYXML=ON
-DSUMWARS_NO_ENET=ON
-DSUMWARS_DOC_DIR="share/doc/${PF}"
-DSUMWARS_EXECUTABLE_DIR="${GAMES_BINDIR#/usr/}"
-DSUMWARS_SHARE_DIR="${GAMES_DATADIR#/usr/}/${PN}"
-DSUMWARS_STANDALONE_MODE=OFF
-DSUMWARS_POST_BUILD_COPY=OFF
-DSUMWARS_PORTABLE_MODE=OFF
-DSUMWARS_RANDOM_REGIONS=ON
$(cmake-utils_use tools SUMWARS_BUILD_TOOLS)
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
prepgamesdirs
newicon share/icon/SumWars.ico ${PN}.ico
make_desktop_entry ${PN} "Summoning Wars" ${PN}.ico
}
|