blob: 8da111081395b1952b0c703f50dd4521fa29564d (
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
67
68
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils cmake-utils
DESCRIPTION="A 3D-accelerated Doom source port based on ZDoom code"
HOMEPAGE="https://gzdoom.drdteam.org/"
SRC_URI="https://zdoom.org/files/gzdoom/src/${PN}-g${PV}.zip"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="fluidsynth +gtk3 timidity"
RDEPEND="fluidsynth? ( media-sound/fluidsynth )
gtk3? ( x11-libs/gtk+:3 )
timidity? ( media-sound/timidity++ )
media-libs/libsdl2
virtual/glu
virtual/jpeg:62
virtual/opengl"
DEPEND="${RDEPEND}
|| ( dev-lang/nasm dev-lang/yasm )"
S="${WORKDIR}/${PN}-g${PV}"
src_prepare() {
# Use default data path
sed -i -e "s:/usr/local/share/:/usr/share/doom-data/:" src/posix/i_system.h
sed -i -e '/SetValueForKey ("Path", "\/usr\/share\/games\/doom", true);/ a \\t\tSetValueForKey ("Path", "/usr/share/doom-data", true);' \
src/gameconfigfile.cpp
}
src_configure() {
mycmakeargs=(
$(cmake-utils_use_no gtk3 GTK)
)
cmake-utils_src_configure
}
src_install() {
dodoc docs/*.txt
dohtml docs/console*.{css,html}
newicon "src/win32/icon1.ico" "${PN}.ico"
make_desktop_entry "${PN}" "GZDoom" "${PN}.ico" "Game;ActionGame;"
cd "${BUILD_DIR}"
insinto "/usr/share/doom-data"
doins *.pk3
dobin "${PN}"
}
pkg_postinst() {
elog "Copy or link wad files into /usr/share/doom-data/"
elog "ATTENTION: The path has changed! It used to be /usr/share/games/doom-data/"
elog
elog "To play, simply run:"
elog " gzdoom"
elog
}
|