1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils desktop xdg-utils
8 DESCRIPTION="Colobot is an educational real-time strategy video game featuring 3D graphics"
9 HOMEPAGE="https://colobot.info/"
10 SRC_URI="https://github.com/colobot/colobot/archive/${PN}-gold-${PV}-alpha.tar.gz"
11 S="${WORKDIR}/${PN}-${PN}-gold-${PV}-alpha"
16 IUSE="devbuild doc +openal test tools"
17 RESTRICT="!test? ( test )"
31 media-libs/libsndfile:=
32 media-libs/libvorbis:=
35 media-sound/vorbis-tools
36 openal? ( media-libs/openal )"
38 games-strategy/colobot-data"
41 cmake-utils_src_prepare
43 # we need to call it explicitly to help Ninja figure out the deps
50 -DDEV_BUILD=$(usex devbuild)
53 -DINSTALL_DOCS=$(usex doc)
54 -DOPENAL_SOUND=$(usex openal)
55 -DCOLOBOT_INSTALL_BIN_DIR="${EPREFIX}"/usr/bin
56 -DCOLOBOT_INSTALL_LIB_DIR="${EPREFIX}"/usr/$(get_libdir)
58 cmake-utils_src_configure