blob: 3564676ebb0893edf3d1af3a3544a557fd7fd3e7 (
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
48
49
50
51
52
53
54
55
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop flag-o-matic toolchain-funcs
DESCRIPTION="Lode-Runner-like arcade game"
HOMEPAGE="https://www.linuxmotors.com/linux/scavenger/index.html"
SRC_URI="
https://www.linuxmotors.com/linux/scavenger/downloads/${P}.tgz
https://dev.gentoo.org/~ionen/distfiles/${PN}.png"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
media-libs/alsa-lib
x11-libs/libX11"
DEPEND="
${RDEPEND}
x11-base/xorg-proto"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-misc-fixes.patch
)
src_compile() {
tc-export CC
# skip using imake for simplicity
local cppargs=(
-DLIBNAME="'\"${EPREFIX}/usr/share/${PN}\"'"
$($(tc-getPKG_CONFIG) --cflags alsa x11)
)
append-cppflags "${cppargs[@]}"
LDLIBS="$($(tc-getPKG_CONFIG) --libs alsa x11)" \
emake -C src -E "scav: anim.o edit.o x.o sound.o"
}
src_install() {
newbin src/scav scavenger
doman src/scavenger.6
dodoc CREDITS DOC README TODO changelog
insinto /usr/share/${PN}
doins -r data/.
doicon "${DISTDIR}"/${PN}.png
make_desktop_entry scavenger XScavenger
}
|