You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.5 KiB
80 lines
1.5 KiB
10 months ago
|
# Copyright 1999-2023 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
10 months ago
|
EAPI=8
|
||
5 years ago
|
|
||
3 years ago
|
inherit cmake xdg-utils
|
||
5 years ago
|
|
||
10 months ago
|
MY_P=colobot-gold-${PV/_/-}
|
||
4 years ago
|
DESCRIPTION="A real-time strategy game, where you can program your bots"
|
||
10 months ago
|
HOMEPAGE="
|
||
|
https://colobot.info/
|
||
|
https://github.com/colobot/colobot/
|
||
|
"
|
||
|
SRC_URI="https://github.com/colobot/colobot/archive/${MY_P}.tar.gz"
|
||
|
S=${WORKDIR}/${PN}-${MY_P}
|
||
5 years ago
|
|
||
|
LICENSE="GPL-3+"
|
||
|
SLOT="0"
|
||
10 months ago
|
KEYWORDS="~amd64 ~arm64"
|
||
5 years ago
|
IUSE="devbuild doc +openal test tools"
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
|
# perl for pod2man
|
||
|
BDEPEND="
|
||
|
app-text/po4a
|
||
10 months ago
|
app-text/xmlstarlet
|
||
5 years ago
|
dev-lang/perl
|
||
10 months ago
|
sys-devel/gettext
|
||
|
"
|
||
5 years ago
|
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
|
||
10 months ago
|
openal? ( media-libs/openal )
|
||
|
"
|
||
|
RDEPEND="
|
||
|
${DEPEND}
|
||
|
~games-strategy/colobot-data-${PV}
|
||
|
"
|
||
|
DEPEND+="
|
||
|
test? ( dev-cpp/gtest )
|
||
|
"
|
||
4 years ago
|
|
||
5 years ago
|
src_prepare() {
|
||
4 years ago
|
cmake_src_prepare
|
||
5 years ago
|
|
||
|
# we need to call it explicitly to help Ninja figure out the deps
|
||
|
cd desktop || die
|
||
|
po4a po4a.cfg || die
|
||
|
}
|
||
|
|
||
|
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)
|
||
|
)
|
||
4 years ago
|
cmake_src_configure
|
||
5 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
xdg_icon_cache_update
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
xdg_icon_cache_update
|
||
|
}
|