45 lines
980 B
Bash
45 lines
980 B
Bash
# Copyright 1999-2016 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=6
|
|
|
|
inherit cmake-utils
|
|
|
|
DESCRIPTION="Voxelands fork of Minetest"
|
|
HOMEPAGE=""
|
|
SRC_URI="https://gitlab.com/voxelands/voxelands/repository/archive.tar.gz?ref=${PVR} -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPLv3"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86 arm"
|
|
IUSE="+server \
|
|
+client"
|
|
|
|
RDEPEND="sys-libs/zlib
|
|
>=dev-games/irrlicht-1.8
|
|
client? ( media-libs/openal
|
|
media-libs/libvorbis
|
|
media-libs/libogg )"
|
|
|
|
DEPEND="${RDEPEND}
|
|
dev-util/cmake
|
|
sys-devel/make
|
|
app-arch/bzip2
|
|
virtual/jpeg"
|
|
|
|
S="${WORKDIR}/voxelands-1704.00-9044445c440209ec7536931258754ae8351ea084"
|
|
|
|
src_configure() {
|
|
# cmake -DRUN_IN_PLACE=1 .
|
|
cmake-utils_src_configure -DBUILD_SERVER="$(usex server)" \
|
|
-DBUILD_CLIENT="$(usex client)" \
|
|
-DENABLE_AUDIO="$(usex client)"
|
|
}
|
|
|
|
src_install() {
|
|
# cmake DESTDIR="${D}" install
|
|
cmake-utils_src_install
|
|
}
|
|
|