summaryrefslogtreecommitdiff
path: root/games-fps/crispy-doom/crispy-doom-9999.ebuild
blob: 0c42ad95766f36f9576e0c63943ffb1fc28fc75e (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
56
57
58
59
60
61
62
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{13..14} )

inherit autotools git-r3 prefix python-any-r1 xdg

DESCRIPTION="A limit-removing enhanced-resolution Doom source port based on Chocolate Doom"
HOMEPAGE="https://github.com/fabiangreffrath/crispy-doom/"
EGIT_REPO_URI="https://github.com/fabiangreffrath/crispy-doom.git"

LICENSE="BSD GPL-2+"
SLOT="0"
IUSE="fluidsynth libsamplerate +midi png truecolor vorbis zlib"
REQUIRE_USE="fluidsynth? ( midi )"

DEPEND="
	media-libs/libsdl2[video]
	media-libs/sdl2-mixer[fluidsynth?,midi?,vorbis?]
	media-libs/sdl2-net
	libsamplerate? ( media-libs/libsamplerate )
	png? ( media-libs/libpng:= )
	zlib? ( virtual/zlib:= )
"
RDEPEND="${DEPEND}"
# ${PYTHON_DEPS} for bash-completion and docs (manpages)
BDEPEND="${PYTHON_DEPS}"

src_prepare() {
	default
	hprefixify src/d_iwad.c
	eautoreconf
}

src_configure() {
	local myconf=(
		--enable-bash-completion
		--enable-doc
		--disable-fonts
		--disable-icons
		$(use_with libsamplerate)
		$(use_with png libpng)
		--enable-sdl2mixer
		--enable-sdl2net
		$(use_with fluidsynth)
		$(use_enable truecolor)
		$(use_with zlib)
		--disable-zpool
	)

	econf "${myconf[@]}"
}

src_install() {
	local DOCS=()
	default
	mv "${ED}"/usr/share/doc/crispy-{doom,heretic,hexen,strife}/* \
		"${ED}"/usr/share/doc/${PF}/ || die
	rmdir "${ED}"/usr/share/doc/crispy-{doom,heretic,hexen,strife} || die
}