diff --git a/games-fps/quakespasm/Manifest b/games-fps/quakespasm/Manifest new file mode 100644 index 0000000000..c7353589ad --- /dev/null +++ b/games-fps/quakespasm/Manifest @@ -0,0 +1 @@ +DIST quakespasm-0.93.2.tgz 8527223 BLAKE2B 98128174cde86bdd9cee17860302f5364531bb473c0fa07ab613462a8a2247143919614824fa8caab7033204531680bc5ea81684e954460d1064fe59c09d3d37 SHA512 30e8515aa9c6a64ef76f2440e878493e98e85e8c19356738e35b5bbd6e5f49ed42b4d73dc716cce0e687b4e7e27a65fa97541e89ae7857fb165a63e09385743f diff --git a/games-fps/quakespasm/metadata.xml b/games-fps/quakespasm/metadata.xml new file mode 100644 index 0000000000..1a8ab4d948 --- /dev/null +++ b/games-fps/quakespasm/metadata.xml @@ -0,0 +1,11 @@ + + + + + contact@hacktivis.me + Haelwenn (lanodan) Monnier + + + Use media-libs/libsdl2 instead of media-libs/libsdl + + diff --git a/games-fps/quakespasm/quakespasm-0.93.2.ebuild b/games-fps/quakespasm/quakespasm-0.93.2.ebuild new file mode 100644 index 0000000000..2b5141550e --- /dev/null +++ b/games-fps/quakespasm/quakespasm-0.93.2.ebuild @@ -0,0 +1,39 @@ +# 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}.tgz" + 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 + 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 +} diff --git a/games-fps/quakespasm/quakespasm-9999.ebuild b/games-fps/quakespasm/quakespasm-9999.ebuild new file mode 100644 index 0000000000..2b5141550e --- /dev/null +++ b/games-fps/quakespasm/quakespasm-9999.ebuild @@ -0,0 +1,39 @@ +# 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}.tgz" + 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 + 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 +}