blob: 69c554f17f1e13530229b6ed7ade2ebc30966c8b (
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
63
64
65
66
|
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake desktop xdg
DESCRIPTION="An enhanced clone of the classic first-person shooter Doom"
HOMEPAGE="https://github.com/coelckers/prboom-plus/"
SRC_URI="http://deb.debian.org/debian/pool/main/p/prboom-plus/${PN}_${PV}.orig.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+ GPL-3+ BSD BSD-2 BSD-with-disclosure CC-BY-3.0 CC0-1.0 LGPL-2.1+ MIT public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="alsa dumb fluidsynth mad net +opengl +pcre portmidi sdl2-image +sdl2-mixer server vorbis zlib"
REQUIRED_USE="server? ( net )"
DEPEND="
media-libs/libsdl2[opengl?,joystick,sound,video]
alsa? ( media-libs/alsa-lib:= )
dumb? ( media-libs/dumb:= )
fluidsynth? ( media-sound/fluidsynth:= )
mad? ( media-libs/libmad )
net? ( media-libs/sdl2-net )
pcre? ( dev-libs/libpcre:3 )
portmidi? ( media-libs/portmidi )
sdl2-image? ( media-libs/sdl2-image )
sdl2-mixer? ( media-libs/sdl2-mixer[midi] )
vorbis? ( media-libs/libvorbis )
zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}/prboom2"
src_prepare() {
eapply -p2 "${FILESDIR}/${P}-Revert-force-overriding-of-the-documentation-install.patch"
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DBUILD_GL="$(usex opengl)"
-DWITH_IMAGE="$(usex sdl2-image)"
-DWITH_MIXER="$(usex sdl2-mixer)"
-DWITH_NET="$(usex net)"
-DWITH_PCRE="$(usex pcre)"
-DWITH_ZLIB="$(usex zlib)"
-DWITH_MAD="$(usex mad)"
-DWITH_FLUIDSYNTH="$(usex fluidsynth)"
-DWITH_DUMB="$(usex dumb)"
-DWITH_VORBISFILE="$(usex vorbis)"
-DWITH_PORTMIDI="$(usex portmidi)"
-DWITH_ALSA="$(usex alsa)"
-DDOOMWADDIR="${EPREFIX}/usr/share/doom"
-DPRBOOMDATADIR="${EPREFIX}/usr/share/${PF}"
-DWAD_DATA_PATH="${EPREFIX}/usr/share/doom"
-DBUILD_SERVER="$(usex server)"
)
cmake_src_configure
}
src_install() {
doicon -s scalable ICONS/${PN}.svg
domenu ICONS/${PN}.desktop
cmake_src_install
}
|