/[gentoo-x86]/games-rpg/sumwars/sumwars-0.5.6-r2.ebuild
Gentoo

Contents of /games-rpg/sumwars/sumwars-0.5.6-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri Mar 29 16:55:07 2013 UTC (7 weeks, 4 days ago) by hasufell
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
use bash syntax

(Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-rpg/sumwars/sumwars-0.5.6-r2.ebuild,v 1.8 2013/03/29 16:53:40 hasufell Exp $
4
5 EAPI=4
6
7 inherit cmake-utils eutils flag-o-matic gnome2-utils games
8
9 DESCRIPTION="a multi-player, 3D action role-playing game"
10 HOMEPAGE="http://sumwars.org"
11 SRC_URI="mirror://sourceforge/sumwars/${P//_/-}-src.tar.bz2"
12
13 LICENSE="GPL-3 CC-BY-SA-3.0"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE="+tools debug"
17
18 LANGS="de en it pl pt ru uk"
19 for L in ${LANGS} ; do
20 IUSE="${IUSE} linguas_${L}"
21 done
22 unset L
23
24 RDEPEND="
25 >=dev-games/cegui-0.7.6-r1[ogre]
26 !>=dev-games/cegui-0.8
27 >=dev-games/ogre-1.7.4-r1[freeimage,opengl]
28 !>=dev-games/ogre-1.9
29 dev-games/ois
30 dev-games/physfs
31 =dev-lang/lua-5.1*
32 >=dev-libs/tinyxml-2.6.2-r2
33 media-libs/freealut
34 media-libs/openal
35 media-libs/libogg
36 media-libs/libvorbis
37 >=net-libs/enet-1.3.0
38 x11-libs/libXrandr
39 tools? ( dev-libs/poco )"
40 DEPEND="${RDEPEND}"
41
42 S=${WORKDIR}/${PN}-${PV%_*}
43
44 src_prepare() {
45 epatch "${FILESDIR}"/${P}-build.patch
46 }
47
48 src_configure() {
49 # QA
50 append-flags -fno-strict-aliasing
51
52 use debug && CMAKE_BUILD_TYPE=Debug
53
54 local l langs
55 for l in ${LANGS}; do
56 if use linguas_${l}; then
57 langs="${langs} ${l}"
58 fi
59 done
60
61 [[ -z "${langs}" ]] && langs="en"
62
63 # configure sumwars with cmake
64 local mycmakeargs=(
65 -DCMAKE_INSTALL_PREFIX=""
66 -DSUMWARS_LANGUAGES="${langs}"
67 -DSUMWARS_NO_TINYXML=ON
68 -DSUMWARS_NO_ENET=ON
69 -DSUMWARS_DOC_DIR="/usr/share/doc/${PF}"
70 -DSUMWARS_EXECUTABLE_DIR="${GAMES_BINDIR}"
71 -DSUMWARS_SHARE_DIR="${GAMES_DATADIR}/${PN}"
72 -DSUMWARS_STANDALONE_MODE=OFF
73 -DSUMWARS_POST_BUILD_COPY=OFF
74 -DSUMWARS_PORTABLE_MODE=OFF
75 -DSUMWARS_RANDOM_REGIONS=ON
76 $(cmake-utils_use tools SUMWARS_BUILD_TOOLS)
77 )
78
79 cmake-utils_src_configure
80 }
81
82 src_compile() {
83 cmake-utils_src_compile
84 }
85
86 src_install() {
87 cmake-utils_src_install
88 newicon -s 128 share/icon/SumWarsIcon_128x128.png ${PN}.png
89 make_desktop_entry ${PN} "Summoning Wars"
90 prepgamesdirs
91 }
92
93 pkg_preinst() {
94 games_pkg_preinst
95 gnome2_icon_savelist
96 }
97
98 pkg_postinst() {
99 games_pkg_postinst
100 gnome2_icon_cache_update
101 }
102
103 pkg_postrm() {
104 gnome2_icon_cache_update
105 }

  ViewVC Help
Powered by ViewVC 1.1.13