diff --git a/games-engines/ioquake3/Manifest b/games-engines/ioquake3/Manifest new file mode 100644 index 0000000..a4f7c3a --- /dev/null +++ b/games-engines/ioquake3/Manifest @@ -0,0 +1 @@ +DIST ioquake3-1.36.20200125.tar.gz 7680734 BLAKE2B 7754d8f20f94e8657e0499bfc8201837f20c273518b21ca04b14c3d5253115254dc4bb5215ba2723028f74831cc0caf2c00eeeb1821a9d3dc74f39940f620d2d SHA512 09e93515b39d25f26b343eef4462a9759282ab1f27476b9144d5e11d4cc2f4253ea9f72c38b41458aac721c645778c9201d19d67857355ee3c0b20ae445f9c7d diff --git a/games-engines/ioquake3/ioquake3-1.36.20200125.ebuild b/games-engines/ioquake3/ioquake3-1.36.20200125.ebuild new file mode 100644 index 0000000..bbc3859 --- /dev/null +++ b/games-engines/ioquake3/ioquake3-1.36.20200125.ebuild @@ -0,0 +1,71 @@ +# Copyright 2026 Shin'ya Minazuki +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Community effort to maintain and improve the id Tech 3 engine" +HOMEPAGE="https://www.ioquake3.org/" +SRC_URI="https://distfiles.chaotic.ninja/pub/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + curl? ( net-misc/curl ) + freetype? ( media-libs/freetype ) + ogg? ( + media-libs/libogg + media-libs/libvorbis + ) + openal? ( media-libs/openal ) + opus? ( + media-libs/libopus + media-libs/opusfile + ) + media-libs/libjpeg-turbo + media-libs/libsdl2 + sys-libs/zlib +" +RDEPEND="${DEPEND}" +BDEPEND=" + app-alternatives/yacc + virtual/pkgconfig +" + +IUSE="+client curl freetype ogg openal opus +server" + +src_configure() { + elog "Creating Makefile.local..." + echo "B=${S}/build" >> Makefile.local + echo "BD=${S}/build" >> Makefile.local + echo "BR=${S}/build" >> Makefile.local + echo "BUILD_AUTOUPDATER=0" >> Makefile.local + echo "BUILD_CLIENT=$(usex client 1 0)" >> Makefile.local + echo "BUILD_MISSIONPACK=1" >> Makefile.local + echo "BUILD_SERVER=$(usex server 1 0)" >> Makefile.local + echo "CC=$(tc-getCC)" >> Makefile.local + echo "PKG_CONFIG=$(tc-getPKG_CONFIG)" >> Makefile.local + echo "USE_CURL=$(usex curl 1 0)" >> Makefile.local + echo "USE_CODEC_VORBIS=$(usex ogg 1 0)" >> Makefile.local + echo "USE_CODEC_OPUS=$(usex opus 1 0)" >> Makefile.local + echo "USE_FREETYPE=$(usex freetype 1 0)" >> Makefile.local + echo "USE_OPENAL=$(usex openal 1 0)" >> Makefile.local + echo "USE_INTERNAL_LIBS=0" >> Makefile.local + echo "USE_VOIP=0" >> Makefile.local + echo "USE_YACC=1" >> Makefile.local + echo "COPYDIR=${EPREFIX}/usr/$(get_libdir)/${PN}" >> Makefile.local +} + +src_compile() { + emake +} + +src_install() { + emake DESTDIR="${D}" install +} +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" +} diff --git a/games-engines/ioquake3/metadata.xml b/games-engines/ioquake3/metadata.xml new file mode 100644 index 0000000..d55a9eb --- /dev/null +++ b/games-engines/ioquake3/metadata.xml @@ -0,0 +1,15 @@ + + + + + shinyoukai@laidback.moe + Shin'ya Minazuki + + + Build the client binary (ioquake3) + Build the server binary (ioq3ded) + + + ioquake3/ioq3 + +