summaryrefslogtreecommitdiff
path: root/games-arcade/gnujump/gnujump-1.0.8-r2.ebuild
blob: d587ae52f45ff21e1f699a17126ce28dd9039960 (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools desktop flag-o-matic

DESCRIPTION="Xjump clone with added features"
HOMEPAGE="https://jump.gnu.sinusoid.es/"
SRC_URI="mirror://gnu/gnujump/${P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="
	media-libs/libglvnd[X]
	media-libs/libsdl[opengl,sound,video]
	media-libs/sdl-image[png]
	media-libs/sdl-mixer[vorbis]
	virtual/glu
	virtual/libintl"
DEPEND="${RDEPEND}"
BDEPEND="
	dev-build/autoconf-archive
	sys-devel/gettext
	virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}"/${P}-musl.patch
)

src_prepare() {
	default

	# change ac_unique_file given eautoreconf will move configure.in
	sed -i 's/(configure.in)//' configure.in || die

	# regenerate due to missing macros, ensure have autoconf-archive for GLU
	# and remove acinclude.m4 which does unnecessary checks (bug #818814)
	rm acinclude.m4 || die
	eautoreconf

	append-libs -lm #496924
}

src_install() {
	default

	newicon skins/xjump/hero1.0.png ${PN}.png
	make_desktop_entry ${PN} "GNUjump"
}