blob: 73605954e17e2339f2a8ce09b2b70c7c2f1f045c (
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
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop multiprocessing toolchain-funcs
DESCRIPTION="The Ur-Quan Masters: Port of Star Control 2"
HOMEPAGE="https://sc2.sourceforge.net/"
SRC_URI="
https://downloads.sourceforge.net/sc2/${P}-src.tgz
https://downloads.sourceforge.net/sc2/${P}-content.uqm
music? ( https://downloads.sourceforge.net/sc2/${P}-3domusic.uqm )
voice? ( https://downloads.sourceforge.net/sc2/${P}-voice.uqm )
remix? (
https://downloads.sourceforge.net/sc2/${PN}-remix-disc1.uqm
https://downloads.sourceforge.net/sc2/${PN}-remix-disc2.uqm
https://downloads.sourceforge.net/sc2/${PN}-remix-disc3.uqm
https://downloads.sourceforge.net/sc2/${PN}-remix-disc4-1.uqm
)"
LICENSE="CC-BY-2.0 CC-BY-NC-SA-2.5 GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE="music remix voice"
RDEPEND="
media-libs/libmikmod
media-libs/libpng:=
media-libs/libsdl2[joystick,sound,video]
media-libs/libvorbis
sys-libs/zlib:="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
cat > config.state <<-EOF || die
CHOICE_accel_VALUE='plainc'
CHOICE_debug_VALUE='nodebug'
CHOICE_mikmod_VALUE='external'
INPUT_install_prefix_VALUE='${EPREFIX}/usr'
EOF
#CHOICE_sound_VALUE='$(usex openal{,} mixsdl)' # experimental and segfaults
sed -i "/^PROG_gcc_FILE/s|=.*|='$(tc-getCC)'|" \
build/unix/config_proginfo_build || die
sed -i 's/-O3//' build/unix/build.config || die
# use ${T} not to leave build files behind (bug 576098)
sed -i "/^TEMPFILE=/s|=.*|='${T}/uqm'|" build/unix/config_functions || die
}
src_compile() {
echo | MAKE_VERBOSE=1 ./build.sh -j$(makeopts_jobs) uqm || die
}
src_install() {
dobin uqm
doman doc/users/uqm.6
insinto /usr/share/${PN}/content
doins content/version
insinto /usr/share/${PN}/content/packages
doins "${DISTDIR}"/${P}-content.uqm
insinto /usr/share/${PN}/content/addons
use music && doins "${DISTDIR}"/${P}-3domusic.uqm
use voice && doins "${DISTDIR}"/${P}-voice.uqm
use remix && doins "${DISTDIR}"/${PN}-remix-disc{1,2,3,4-1}.uqm
dodoc AUTHORS BUGS ChangeLog README WhatsNew doc/users/manual.txt
doicon src/symbian/uqm.svg
make_desktop_entry uqm "The Ur-Quan Masters"
}
|