aboutsummaryrefslogtreecommitdiffstats
path: root/games-emulation/blastem/blastem-0.6.2.ebuild
blob: 5e4b4b5ff8e1cf362cfc11c8a45e0bd09920a402 (plain) (blame)
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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Accurate Sega Genesis / Mega Drive emulator"
HOMEPAGE="https://www.retrodev.com/blastem/"

if [[ ${PV} == 9999 ]]; then
	EHG_REPO_URI="https://www.retrodev.com/repos/blastem"
	inherit mercurial
else
	SRC_URI="https://www.retrodev.com/repos/blastem/archive/v${PV}.tar.bz2 -> blastem-${PV}.tar.bz2"
	KEYWORDS="-* ~amd64 ~x86"
	S="${WORKDIR}/blastem-v${PV}"
fi

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

DEPEND="
	sys-libs/zlib
	media-libs/libsdl2
	media-libs/glew
"

src_compile() {
	emake \
		HOST_ZLIB=1 \
		DATA_PATH=/usr/share/blastem \
		CONFIG_PATH=/usr/share/blastem
}

src_install() {
	dobin blastem

	insinto /usr/share/blastem
	doins -r shaders images default.cfg rom.db gamecontrollerdb.txt systems.cfg
}