commit: 94faac7bc6758522e3c2119a5b2bc5a683de5362 Author: Matt Jolly <kangie <AT> gentoo <DOT> org> AuthorDate: Fri May 16 02:33:21 2025 +0000 Commit: Matt Jolly <kangie <AT> gentoo <DOT> org> CommitDate: Fri May 16 03:01:13 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94faac7b
games-fps/alephone: add 20250302-r2 This ebuild drops the dependency on ffmpeg as we don't require it for any currently-packaged functionality (media-libs/libsndfile can provide mp3 support). Closes: https://bugs.gentoo.org/953932 Signed-off-by: Matt Jolly <kangie <AT> gentoo.org> games-fps/alephone/alephone-20250302-r2.ebuild | 92 ++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/games-fps/alephone/alephone-20250302-r2.ebuild b/games-fps/alephone/alephone-20250302-r2.ebuild new file mode 100644 index 000000000000..a283af01b494 --- /dev/null +++ b/games-fps/alephone/alephone-20250302-r2.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic optfeature prefix toolchain-funcs xdg + +DESCRIPTION="An enhanced version of the game engine from the classic Mac game, Marathon" +HOMEPAGE="https://alephone.lhowon.org/" +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Aleph-One-Marathon/alephone/" + EGIT_SUBMODULES=() # Upstream includes game data as submodules, we only want the engine +else + SRC_URI="https://github.com/Aleph-One-Marathon/alephone/archive/refs/tags/release-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-release-${PV}" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3+ BitstreamVera OFL-1.1" +SLOT="0" + +IUSE="curl upnp" + +RDEPEND=" + dev-libs/boost:= + dev-libs/zziplib:= + media-libs/openal + media-libs/libpng + media-libs/libsdl2 + media-libs/libsndfile[-minimal] + media-libs/sdl2-image[png] + media-libs/sdl2-net + media-libs/sdl2-ttf + sys-libs/zlib + virtual/opengl + virtual/glu + curl? ( net-misc/curl ) + upnp? ( net-libs/miniupnpc ) +" + +DEPEND=" + ${RDEPEND} +" + +BDEPEND=" + virtual/pkgconfig +" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # With LTO enabled enemies are not visible + # https://github.com/Aleph-One-Marathon/alephone/issues/518 + filter-lto + my_econf=( + --enable-opengl + --without-ffmpeg + --with-png + --with-sdl_image + --with-zzip + $(use_with curl) + $(use_with upnp miniupnpc) + ) + econf "${my_econf[@]}" +} + +src_compile() { + tc-export AR + default +} + +src_install() { + default + prefixify_ro "${FILESDIR}"/${PN}.sh + dobin "${T}"/${PN}.sh + doman docs/${PN}.6 + docinto html/ + dodoc docs/*.html +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature_header "Install game data:" + optfeature "Marathon data files" games-fps/alephone-marathon + optfeature "Marathon 2 Durandal data files" games-fps/alephone-durandal + optfeature "Marathon: Infinity data files" games-fps/alephone-infinity + optfeature "Apotheosis X data files" games-fps/alephone-apotheosis-x +}
