2019-10-31 11:30:22 +00:00
|
|
|
SUMMARY="Advanced Doom source port with OpenGL support"
|
2018-10-11 12:56:40 +00:00
|
|
|
DESCRIPTION="Consider all these features that ZDoom has that are not found in \
|
|
|
|
the standard Doom originally released by id:
|
|
|
|
|
|
|
|
* It runs well under all modern versions of Windows, from Windows XP to the \
|
|
|
|
new Windows 10. If you have Mac or Linux, it works with that too.
|
|
|
|
* Can play all Doom engine games, including Ultimate Doom, Doom II, Heretic, \
|
|
|
|
Hexen, Strife, and more.
|
|
|
|
* Supports all the editing features of Hexen. (ACS, hubs, new map format, etc.)
|
|
|
|
* Supports most of the Boom editing features.
|
|
|
|
* Many more all-new editing features such as:
|
|
|
|
* Colored lighting.
|
|
|
|
* 3D floors.
|
|
|
|
* Portals.
|
|
|
|
* Advanced polyobjects free from the restrictions of their original \
|
|
|
|
implementation in Hexen.
|
|
|
|
* Custom monsters, weapons, items, player classes, and other entities.
|
|
|
|
* High resolution textures and sprites.
|
|
|
|
* Translucency (regular and additive).
|
|
|
|
* Many, many extensions to ACS that were not present in Hexen.
|
|
|
|
* More music formats: Ogg Vorbis, MOD, XM, IT, S3M, MIDI, and MP3 as well as \
|
|
|
|
old-fashioned MUS all work.
|
|
|
|
* More sound formats: FLAC and WAVE can both be used for sound effects.
|
|
|
|
* More texture formats: PNG and JPEG are both useable for artwork.
|
|
|
|
* All Doom limits are gone.
|
2020-04-13 23:11:38 +00:00
|
|
|
* Several softsynths for MUS and MIDI playback, including an OPL softsynth
|
2018-10-11 12:56:40 +00:00
|
|
|
for an authentic "oldschool" flavor.
|
|
|
|
* High resolutions.
|
|
|
|
* Quake-style console and key bindings.
|
|
|
|
* Crosshairs.
|
|
|
|
* Free look (look up/down).
|
|
|
|
* Jumping, crouching, swimming, and flying.
|
|
|
|
* Full-featured joystick/gamepad support under Windows.
|
|
|
|
* Up to 8 player network games using UDP/IP, including team-based gameplay.
|
|
|
|
* Support for the Bloodbath announcer from the classic Monolith game Blood.
|
|
|
|
* Walk over/under monsters and other things."
|
|
|
|
HOMEPAGE="https://zdoom.org/"
|
|
|
|
COPYRIGHT="
|
2019-10-31 11:30:22 +00:00
|
|
|
1998-2019 ZDoom + GZDoom teams, and contributors
|
2018-10-11 12:56:40 +00:00
|
|
|
1997 id Software, Raven Software, and contributors
|
|
|
|
"
|
|
|
|
LICENSE="GNU GPL v3"
|
2020-04-13 23:11:38 +00:00
|
|
|
REVISION="2"
|
2018-12-05 09:41:08 +00:00
|
|
|
SOURCE_URI="https://zdoom.org/files/gzdoom/src/gzdoom-src-g${portVersion}_legacy.zip"
|
2019-10-31 11:30:22 +00:00
|
|
|
CHECKSUM_SHA256="0c3af7b0af6b59f1ecbcc50e4fc0f70d6b1a33f554f63998a421bbc4da2913e6"
|
2018-12-05 09:41:08 +00:00
|
|
|
SOURCE_DIR="gzdoom-g${portVersion}_legacy"
|
2019-10-31 11:30:22 +00:00
|
|
|
srcGitRev2="f6ab178af2c85df04d8cc34b61f90ebf1502ed1f"
|
|
|
|
SOURCE_URI_2="https://github.com/EXL/BeGameLauncher/archive/$srcGitRev2.tar.gz"
|
|
|
|
CHECKSUM_SHA256_2="45b42bb906e7ad1d94819fd18140505ab517ba78b3b593c3315f29bb391cf1ee"
|
|
|
|
SOURCE_DIR_2="BeGameLauncher-$srcGitRev2"
|
2018-10-11 12:56:40 +00:00
|
|
|
PATCHES="gzdoom-$portVersion.patchset"
|
|
|
|
ADDITIONAL_FILES="gzdoom.rdef.in"
|
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2018-10-11 12:56:40 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
gzdoom$secondaryArchSuffix = $portVersion
|
|
|
|
app:GZDoom
|
|
|
|
"
|
|
|
|
REQUIRES="
|
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
lib:libfluidsynth$secondaryArchSuffix
|
|
|
|
lib:libGL$secondaryArchSuffix
|
2018-12-05 09:41:08 +00:00
|
|
|
lib:libgme$secondaryArchSuffix
|
2018-10-11 12:56:40 +00:00
|
|
|
lib:libgomp$secondaryArchSuffix
|
|
|
|
lib:libjpeg$secondaryArchSuffix
|
|
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
|
|
lib:libz$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
|
|
|
devel:libfluidsynth$secondaryArchSuffix
|
|
|
|
devel:libGL$secondaryArchSuffix
|
2018-12-05 09:41:08 +00:00
|
|
|
devel:libgme$secondaryArchSuffix
|
2018-10-11 12:56:40 +00:00
|
|
|
devel:libjpeg$secondaryArchSuffix
|
|
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
|
|
devel:libz$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
cmd:cmake
|
|
|
|
cmd:gcc$secondaryArchSuffix
|
|
|
|
cmd:install
|
|
|
|
cmd:ld$secondaryArchSuffix
|
|
|
|
cmd:make
|
|
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
{
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_CXX_FLAGS="-D_GNU_SOURCE -D_BSD_SOURCE"
|
|
|
|
make $jobArgs
|
2019-10-31 11:30:22 +00:00
|
|
|
|
|
|
|
cd $sourceDir2
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DLAUNCHER=gzdoom
|
|
|
|
make $jobArgs
|
2018-10-11 12:56:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
mkdir -p $appsDir/GZDoom
|
2019-10-31 11:30:22 +00:00
|
|
|
|
2018-10-11 12:56:40 +00:00
|
|
|
cp build/gzdoom $appsDir/GZDoom/GZDoom
|
|
|
|
cp build/*.pk3 $appsDir/GZDoom
|
2019-10-31 11:30:22 +00:00
|
|
|
cp $sourceDir2/build/GZDoomLauncher $appsDir/GZDoom
|
|
|
|
|
2018-10-11 12:56:40 +00:00
|
|
|
local APP_SIGNATURE="application/x-vnd.gzdoom"
|
|
|
|
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/gzdoom.rdef.in > gzdoom.rdef
|
|
|
|
|
|
|
|
addResourcesToBinaries gzdoom.rdef $appsDir/GZDoom/GZDoom
|
2019-10-31 11:30:22 +00:00
|
|
|
addAppDeskbarSymlink $appsDir/GZDoom/GZDoomLauncher "GZDoom"
|
2018-10-11 12:56:40 +00:00
|
|
|
}
|