summaryrefslogtreecommitdiff
path: root/games-util/grfcodec/grfcodec-9999.ebuild
blob: fec48e34967fd276ce929bf3efbfc2f6d22e1d2a (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
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Suite of programs to modify openttd/Transport Tycoon Deluxe's GRF files"
HOMEPAGE="https://github.com/OpenTTD/grfcodec"

if [[ ${PV} == 9999 ]] ; then
	EGIT_REPO_URI="https://github.com/OpenTTD/grfcodec"
	inherit git-r3
else
	SRC_URI="https://github.com/OpenTTD/grfcodec/releases/download/${PV}/${P}-source.tar.xz"

	KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
fi

LICENSE="GPL-2+"
SLOT="0"

RDEPEND="media-libs/libpng:="
DEPEND="
	${RDEPEND}
	dev-libs/boost
"

PATCHES=(
	# Bug #894648
	"${FILESDIR}"/${PN}-6.0.6_p20230811-no-fortify-source.patch
)

src_install() {
	cmake_src_install

	rm "${ED}"/usr/share/doc/${PF}/COPYING || die
}