mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
101 lines
3.2 KiB
Bash
101 lines
3.2 KiB
Bash
SUMMARY="An engine for id software's Quake"
|
|
DESCRIPTION="QuakeSpasm is a Haiku friendly Quake Engine based on the SDL port of the popular \
|
|
FitzQuake.
|
|
It includes some new features, important fixes, and aims for portability and 64 bit correctness.
|
|
|
|
Installation:
|
|
|
|
To install the game data under Haiku, copy the "id1" folder from a normal Quake installation \
|
|
to the following directory: ~/config/non-packaged/data/QuakeSpasm/. Mods should be installed \
|
|
to the same directory.
|
|
|
|
Features:
|
|
|
|
- Supports Windows, Mac OS X, Haiku, Linux, and other unices.
|
|
- Well tested on both 32 bit and 64 bit platforms. Well tested on both little endian and big \
|
|
endian platforms.
|
|
- OpenGL improvements. In-game resolution changing.
|
|
- Widescreen FOV (field of view) support and automatic Hor+ FOV scaling.
|
|
- Improved sound support. Support for OGG, MP3, Opus and WAV external music files.
|
|
- Improved game controller support using SDL2.
|
|
- Countless bug fixes, security fixes and other improvements.
|
|
- Support for playing the 'Quake 2021 re-release' content."
|
|
HOMEPAGE="https://quakespasm.sourceforge.net/"
|
|
COPYRIGHT="1996-2001 Id Software, Inc.
|
|
2002-2009 John Fitzgibbons and others
|
|
2010-2024 QuakeSpasm developers"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/sezero/quakespasm/archive/refs/tags/quakespasm-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="9e37fcbe8ece64594d8fb868f43a7abf90070f5685eba4f13fb9385486ca3548"
|
|
SOURCE_DIR="quakespasm-quakespasm-$portVersion"
|
|
ADDITIONAL_FILES="QuakeSpasm.rdef.in
|
|
haiku_readme.txt"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
quakespasm$secondaryArchSuffix = $portVersion
|
|
app:QuakeSpasm
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
lib:libmad$secondaryArchSuffix
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
lib:libvorbis$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libogg$secondaryArchSuffix
|
|
devel:libmad$secondaryArchSuffix
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
devel:libvorbis$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cd $sourceDir/Quake
|
|
make $jobArgs DO_USERDIRS=1 USE_SDL2=1 -f Makefile
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
local APP_SIGNATURE="application/x-vnd.QuakeSpasm"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/QuakeSpasm.rdef.in > QuakeSpasm.rdef
|
|
|
|
addResourcesToBinaries QuakeSpasm.rdef $sourceDir/Quake/quakespasm
|
|
mimeset -f $sourceDir/Quake/quakespasm
|
|
|
|
mkdir -p $appsDir
|
|
cp -a $sourceDir/Quake/quakespasm $appsDir/QuakeSpasm
|
|
|
|
mkdir -p $docDir
|
|
cp $sourceDir/Quakespasm.html $docDir/Quakespasm.html
|
|
cp $portDir/additional-files/haiku_readme.txt $docDir/haiku_readme.txt
|
|
|
|
mkdir -p $dataDir/QuakeSpasm
|
|
cp $sourceDir/Quake/quakespasm.pak $dataDir/QuakeSpasm/quakespasm.pak
|
|
|
|
addAppDeskbarSymlink $appsDir/QuakeSpasm
|
|
}
|