summaryrefslogtreecommitdiff
path: root/games-simulation/lincity-ng/lincity-ng-2.13.1.ebuild
blob: 7c07816a05e2246df99ba5dddcdc990ee0c3405d (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
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CMAKE_MAKEFILE_GENERATOR="emake"
inherit cmake xdg

DESCRIPTION="City simulation game"
HOMEPAGE="https://github.com/lincity-ng/lincity-ng"

if [[ ${PV} == 9999 ]] ; then
	EGIT_REPO_URI="https://github.com/lincity-ng/lincity-ng"
	inherit git-r3
else
	SRC_URI="https://github.com/lincity-ng/lincity-ng/releases/download/${P}/${P}-Source.tar.xz"
	S="${WORKDIR}"/${P}-Source

	KEYWORDS="~amd64 ~x86"
fi

LICENSE="GPL-2+ BitstreamVera CC-BY-SA-2.0"
SLOT="0"

RDEPEND="
	dev-games/physfs
	dev-libs/libxml2:2=
	dev-cpp/libxmlpp:5.0=
	media-libs/libsdl2[joystick,opengl,sound,video]
	media-libs/sdl2-gfx
	media-libs/sdl2-image[png]
	media-libs/sdl2-mixer[vorbis]
	media-libs/sdl2-ttf
	sys-libs/zlib
	virtual/opengl
"
DEPEND="${RDEPEND}"
BDEPEND="
	dev-libs/libxslt
	sys-devel/gettext
	virtual/pkgconfig
"

src_configure(){
	local mycmakeargs=( -DCMAKE_BUILD_TYPE=Release )
	cmake_src_configure
}