Files
guru/games-fps/quakespasm/quakespasm-9999.ebuild
Haelwenn (lanodan) Monnier bdbba9f3d7 games-fps/quakespasm: clean version bump, 0.94.1
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2021-09-17 04:04:22 +02:00

41 lines
875 B
Bash

# Copyright 1999-2021 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="mirror://sourceforge/${PN}/${P}.tar.gz"
KEYWORDS="~amd64"
fi
DESCRIPTION="Modern, cross-platform Quake 1 engine based on FitzQuake"
HOMEPAGE="http://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
}