games-fps/quakespasm: New Package

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2021-05-25 22:26:28 +02:00
parent 8e03ef5c5b
commit d5416bdda5
4 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST quakespasm-0.93.2.tgz 8527223 BLAKE2B 98128174cde86bdd9cee17860302f5364531bb473c0fa07ab613462a8a2247143919614824fa8caab7033204531680bc5ea81684e954460d1064fe59c09d3d37 SHA512 30e8515aa9c6a64ef76f2440e878493e98e85e8c19356738e35b5bbd6e5f49ed42b4d73dc716cce0e687b4e7e27a65fa97541e89ae7857fb165a63e09385743f

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="no">
<email>contact@hacktivis.me</email>
<name>Haelwenn (lanodan) Monnier</name>
</maintainer>
<use>
<flag name="sdl2">Use <pkg>media-libs/libsdl2</pkg> instead of <pkg>media-libs/libsdl</pkg></flag>
</use>
</pkgmetadata>

View File

@@ -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
}

View File

@@ -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
}