blob: 3c3762f6152102bfe9e53a37a144a047b5e826bd (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# upstream CMakeLists.txt are buggy
CMAKE_MAKEFILE_GENERATOR=emake
inherit cmake-utils desktop xdg-utils
DESCRIPTION="Colobot is an educational real-time strategy video game featuring 3D graphics"
HOMEPAGE="https://colobot.info/"
SRC_URI="https://github.com/colobot/colobot/archive/${PN}-gold-${PV}-alpha.tar.gz"
S="${WORKDIR}/${PN}-${PN}-gold-${PV}-alpha"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="devbuild doc +openal test tools"
RESTRICT="!test? ( test )"
DEPEND="
dev-games/physfs
dev-libs/boost:=
media-libs/glew:0
media-libs/libogg
media-libs/libpng:0=
media-libs/libsdl2:=
media-libs/libsndfile:=
media-libs/libvorbis:=
media-libs/sdl2-image
media-libs/sdl2-ttf
media-sound/vorbis-tools
sys-devel/gettext
openal? ( media-libs/openal )"
RDEPEND="${DEPEND}
games-strategy/colobot-data"
src_configure() {
local mycmakeargs=(
-DDEV_BUILD=$(usex devbuild)
-DTESTS=$(usex test)
-DTOOLS=$(usex tools)
-DINSTALL_DOCS=$(usex doc)
-DOPENAL_SOUND=$(usex openal)
-DCOLOBOT_INSTALL_BIN_DIR="${EPREFIX}"/usr/bin
-DCOLOBOT_INSTALL_LIB_DIR="${EPREFIX}"/usr/$(get_libdir)
)
cmake-utils_src_configure
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}
|