games-engines/ioquake3: make use of wrapper scripts, add the mumble USE flag
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
parent
a5395fc323
commit
f2afa3fd04
3 changed files with 34 additions and 18 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright 2026 Shin'ya Minazuki
|
||||
EAPI=8
|
||||
|
||||
inherit cmake git-r3
|
||||
inherit cmake git-r3 wrapper
|
||||
|
||||
DESCRIPTION="Community effort to maintain and improve the id Tech 3 engine"
|
||||
HOMEPAGE="https://www.ioquake3.org/"
|
||||
|
|
@ -19,6 +19,7 @@ DEPEND="
|
|||
media-libs/libogg
|
||||
media-libs/libvorbis
|
||||
)
|
||||
mumble? ( net-voip/mumble )
|
||||
openal? ( media-libs/openal )
|
||||
opus? (
|
||||
media-libs/opus
|
||||
|
|
@ -34,7 +35,10 @@ BDEPEND="
|
|||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
IUSE="+client curl freetype ogg openal opus +renderer_gl1 +renderer_gl2 +server voip"
|
||||
IUSE="+client curl freetype mumble ogg openal opus +renderer_gl1 +renderer_gl2 +server voip"
|
||||
REQUIRED_USE="
|
||||
voip? ( openal )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/patch-20260603-disable-forced-lto.diff"
|
||||
|
|
@ -52,8 +56,9 @@ src_configure() {
|
|||
-DUSE_OPENAL=$(usex openal)
|
||||
-DUSE_CODEC_VORBIS=$(usex ogg)
|
||||
-DUSE_CODEC_OPUS=$(usex opus)
|
||||
-DUSE_HTTP=$(usex curl)
|
||||
-DUSE_VOIP=$(usex voip)
|
||||
-DUSE_MUMBLE=OFF
|
||||
-DUSE_MUMBLE=$(usex mumble)
|
||||
-DUSE_FREETYPE=$(usex freetype)
|
||||
-DUSE_INTERNAL_LIBS=OFF
|
||||
# Extra compilation time for yet unknown benefit
|
||||
|
|
@ -66,12 +71,14 @@ src_configure() {
|
|||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
use client && dosym "/usr/$(get_libdir)/${PN}/${PN}" "/usr/bin/${PN}"
|
||||
use server && dosym "/usr/$(get_libdir)/${PN}/${PN}" "/usr/bin/ioq3ded"
|
||||
use client && make_wrapper ${PN} "/usr/$(get_libdir)/${PN}/${PN}"
|
||||
use server && make_wrapper ioq3ded "/usr/$(get_libdir)/${PN}/ioq3ded"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "In order to play Quake III Arena, get the data files first"
|
||||
elog "How to get them will not be covered here, that's on you"
|
||||
elog "Then place it somewhere readable to the client executable"
|
||||
elog "To play Quake III Arena (and Team Arena), please check out this page"
|
||||
elog "for more information: https://ioquake3.org/buy/"
|
||||
elog ""
|
||||
elog "Alternatively, you can consider giving games-fps/openarena a shot"
|
||||
elog ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue