Files
guru/games-fps/quakespasm/quakespasm-9999.ebuild
Michał Górny c20f8c3acd */*: Inline mirror://sourceforge
See https://github.com/gentoo/gentoo/pull/36198 for the sed invocation.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2024-04-30 20:29:25 +02:00

41 lines
889 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="git://git.code.sf.net/p/quakespasm/quakespasm.git"
else
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
KEYWORDS="~amd64"
fi
DESCRIPTION="Modern, cross-platform Quake 1 engine based on FitzQuake"
HOMEPAGE="https://quakespasm.sourceforge.net"
LICENSE="GPL-2"
SLOT="0"
IUSE="sdl2"
DEPEND="
media-libs/libvorbis
media-libs/libogg
media-libs/libmad
virtual/opengl
virtual/glu
sdl2? ( media-libs/libsdl2 )
!sdl2? ( media-libs/libsdl )
"
RDEPEND="${DEPEND}"
DOCS=( Quakespasm.html Quakespasm-Music.txt Quakespasm.txt )
src_compile() {
cd Quake || die
emake COMMON_LIBS="-lm -lOpenGL" USE_SDL2=$(usex sdl2 1 0) STRIP="/bin/true"
}
src_install() {
einstalldocs
dobin Quake/quakespasm
}