1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils cmake-utils git-2 games
9 DESCRIPTION="Building single/multiplayer game (engine)"
10 HOMEPAGE="http://c55.me/minetest/"
11 EGIT_REPO_URI="git://github.com/celeron55/${PN}.git"
12 EGIT_COMMIT="${PV%_pre*}.dev-${PV#*_pre}"
14 LICENSE="GPL-2 CCPL-Attribution-ShareAlike-3.0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="+client nls +server"
20 RDEPEND="app-arch/bzip2
23 >=dev-libs/jthread-1.2
31 nls? ( virtual/libintl )
34 >=dev-games/irrlicht-1.7
35 nls? ( sys-devel/gettext )
43 epatch "${FILESDIR}"/${P}-{cmake,jthread,lua,sharepath}.patch
44 rm -r src/{jthread,lua,sqlite} || die
50 -DSHAREDIR="${GAMES_DATADIR}/${PN}"
51 -DBINDIR="${GAMES_BINDIR}"
52 $(cmake-utils_use_build client CLIENT)
53 $(cmake-utils_use_build server SERVER)
54 $(cmake-utils_use_enable nls GETTEXT)
57 cmake-utils_src_configure
61 cmake-utils_src_install