summaryrefslogtreecommitdiff
blob: 0b687a427e7e7e7938e97a8eb51993403b1e4132 (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit toolchain-funcs

DESCRIPTION="The Legend of Edgar, 2d jump n run"
HOMEPAGE="http://www.parallelrealities.co.uk/projects/edgar.php"
SRC_URI="https://github.com/riksweeney/edgar/releases/download/${PV}/${P}-1.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="
	media-libs/libsdl2
	media-libs/sdl2-mixer
	media-libs/sdl2-image[png]
	media-libs/sdl2-ttf
	sys-libs/zlib:=
	"
DEPEND="${RDEPEND}"

src_compile() {
	emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
		BIN_DIR="/usr/bin/" DATA_DIR="/usr/share/${PN}/" \
		|| die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" BIN_DIR="${D}/usr/bin/" \
		DATA_DIR="${D}/usr/share/${PN}/" DOC_DIR="${D}/usr/share/doc/${P}/" \
		APPDATA_DIR="${D}/usr/share/metainfo/" install \
		|| die "emake install failed"
}