mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
60 lines
1.2 KiB
Bash
60 lines
1.2 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{11..14} )
|
|
inherit cmake python-any-r1 xdg
|
|
|
|
if [[ ${PV} == 9999 ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/widelands/widelands.git"
|
|
else
|
|
SRC_URI="
|
|
https://github.com/widelands/widelands/archive/refs/tags/v${PV}.tar.gz
|
|
-> ${P}.tar.gz
|
|
"
|
|
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
|
fi
|
|
|
|
DESCRIPTION="Game similar to Settlers 2"
|
|
HOMEPAGE="https://www.widelands.org/"
|
|
|
|
LICENSE="GPL-2+ || ( Apache-2.0 GPL-3 ) BitstreamVera BSD CC-BY-SA-3.0 MIT OFL-1.1"
|
|
SLOT="0"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
dev-libs/icu:=
|
|
media-libs/glew:0=
|
|
media-libs/libglvnd
|
|
media-libs/libpng:=
|
|
media-libs/libsdl2[opengl,sound,video]
|
|
media-libs/sdl2-image[jpeg,png]
|
|
media-libs/sdl2-mixer[vorbis]
|
|
media-libs/sdl2-ttf
|
|
virtual/libintl
|
|
virtual/minizip:=
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
dev-cpp/asio
|
|
"
|
|
BDEPEND="
|
|
${PYTHON_DEPS}
|
|
"
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DCCACHE_PROGRAM=no
|
|
-DGTK_UPDATE_ICON_CACHE=no
|
|
-DOPTION_BUILD_TESTS=$(usex test)
|
|
-DWL_INSTALL_BASEDIR="${EPREFIX}"/usr/share/doc/${PF}
|
|
-DWL_INSTALL_BINDIR="${EPREFIX}"/usr/bin
|
|
-DWL_INSTALL_DATADIR="${EPREFIX}"/usr/share/${PN}
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|