diff --git a/games-engines/ioquake3/ioquake3-1.36.20260309.ebuild b/games-engines/ioquake3/ioquake3-1.36.20260309.ebuild index 0bfd107..47a50d4 100644 --- a/games-engines/ioquake3/ioquake3-1.36.20260309.ebuild +++ b/games-engines/ioquake3/ioquake3-1.36.20260309.ebuild @@ -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 "" } diff --git a/games-engines/ioquake3/ioquake3-1.36.9999.ebuild b/games-engines/ioquake3/ioquake3-1.36.9999.ebuild index 1d405f6..c89ce5b 100644 --- a/games-engines/ioquake3/ioquake3-1.36.9999.ebuild +++ b/games-engines/ioquake3/ioquake3-1.36.9999.ebuild @@ -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/" @@ -14,6 +14,7 @@ KEYWORDS="~amd64" DEPEND=" curl? ( net-misc/curl ) freetype? ( media-libs/freetype ) + mumble? ( net-voip/mumble ) ogg? ( media-libs/libogg media-libs/libvorbis @@ -33,7 +34,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 ) +" src_configure() { local -a mycmakeargs=( @@ -47,8 +51,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 @@ -61,12 +66,15 @@ 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}/ioq3ded" "/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 "" } diff --git a/games-engines/ioquake3/metadata.xml b/games-engines/ioquake3/metadata.xml index fbfd600..cf9856a 100644 --- a/games-engines/ioquake3/metadata.xml +++ b/games-engines/ioquake3/metadata.xml @@ -8,8 +8,9 @@ Build the client binary (ioquake3) Add support for FreeType - Build the opengl1 client / renderer library - Build the opengl2 client / renderer library + Use net-voip/mumble to provide VoIP support + Build the OpenGL 1 client / renderer library + Build the OpenGL 2 client / renderer library Build the server binary (ioq3ded) Enable VoIP support