mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
* Gish: Bump launcher git revision * Xash3D: Bump launcher git revision * Serious Sam: Bump launcher git revision
153 lines
5.3 KiB
Bash
153 lines
5.3 KiB
Bash
SUMMARY="An alternative engine for Half-Life based games"
|
|
DESCRIPTION="Xash3D Engine is a custom Gold Source engine rewritten from scratch. Xash3D is \
|
|
compatible with many of the Gold Source games and mods and should be able to run almost any \
|
|
existing singleplayer Half-Life mod without a hitch. Xash3D FWGS is a fork of Xash3D Engine, \
|
|
which aims on crossplatform and compatibility with original Xash3D and Gold Source."
|
|
HOMEPAGE="https://xash.su"
|
|
COPYRIGHT="2007-2018 Uncle Mike, 2015-2018 Flying With Gauss Team"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="3"
|
|
srcGitRev="5f3d753b65fd37d0c338920cfc9351a7f89770fb"
|
|
SOURCE_URI="https://github.com/FWGS/xash3d/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="1919000ffc1fc22f7403f6f55758e35b99590230151d5f99868c4fc09deb0ece"
|
|
SOURCE_DIR="xash3d-$srcGitRev"
|
|
srcGitRev2="cd661c26d1c70596b7d6ec25fab9f5a8654d9898"
|
|
SOURCE_URI_2="https://github.com/FWGS/mainui_cpp/archive/$srcGitRev2.tar.gz"
|
|
CHECKSUM_SHA256_2="b7c648c53cadc29af70ce15bd21036b99faeb1a3479b9f04da67975634a485ee"
|
|
SOURCE_DIR_2="mainui_cpp-$srcGitRev2"
|
|
srcGitRev3="c4ed4ec3c03746507a2fbea5f85804c0e86988a2"
|
|
SOURCE_URI_3="https://github.com/FWGS/hlsdk-xash3d/archive/$srcGitRev3.tar.gz"
|
|
CHECKSUM_SHA256_3="23e8992da3be5c541b0316a043a5758cd31b276b44b2200a30623adc9e4c5111"
|
|
SOURCE_DIR_3="hlsdk-xash3d-$srcGitRev3"
|
|
dataVersion4="0.19.2"
|
|
SOURCE_URI_4="https://github.com/FWGS/xash3d/releases/download/v$dataVersion4/xash3d_fwgs_linux_$dataVersion4.tar.xz"
|
|
CHECKSUM_SHA256_4="80ba9c8569c7bbb134e832470d7905abf425b30807e480117122ecde47fa2535"
|
|
SOURCE_DIR_4="xash3d_fwgs_linux_$dataVersion4"
|
|
srcGitRev5="8199f7d23cc393100e2bfa4a38aa5809f723ca42"
|
|
SOURCE_URI_5="https://github.com/nekonomicon/hlsdk-xash3d/archive/$srcGitRev5.tar.gz"
|
|
CHECKSUM_SHA256_5="24e819b6e880d264430182976533ef08fd91bc7831f028dab2002f59661f3d10"
|
|
SOURCE_DIR_5="hlsdk-xash3d-$srcGitRev5"
|
|
srcGitRev6="f21c7dbcfa0d8ea59bb8bb0a60d3a93ecc9b1765"
|
|
SOURCE_URI_6="https://github.com/LostGamerHL/hlsdk-xash3d/archive/$srcGitRev6.tar.gz"
|
|
CHECKSUM_SHA256_6="00ed4a5edfb454f0659771d00427cdcbbc56ed6f91ae9865e7242c75f01ba0c9"
|
|
SOURCE_DIR_6="hlsdk-xash3d-$srcGitRev6"
|
|
srcGitRev7="65546dd190d6168c0c06580c7e8cb7e7b4b198e7"
|
|
SOURCE_URI_7="https://github.com/EXL/BeGameLauncher/archive/$srcGitRev7.tar.gz"
|
|
CHECKSUM_SHA256_7="7c9dc3f1331a89ad92c5a233e9a2f7cb559979d18d0b90519d592336f6dc06b7"
|
|
SOURCE_DIR_7="BeGameLauncher-$srcGitRev7"
|
|
ADDITIONAL_FILES="xash3d.rdef"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86_64 ?x86"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
if [ "$targetArchitecture" = x86_64 ]; then
|
|
archPostfix=64
|
|
archModern=1
|
|
else
|
|
archModern=0
|
|
fi
|
|
|
|
PROVIDES="
|
|
xash3d$secondaryArchSuffix = $portVersion
|
|
app:Xash3D$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libfontconfig$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libfontconfig$secondaryArchSuffix
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cd $sourceDir
|
|
cp -aR $sourceDir2/* mainui/
|
|
mkdir -p build
|
|
cd build
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DXASH_NO_INSTALL_RUNSCRIPT=1 \
|
|
-DXASH_VGUI=0 \
|
|
-DXASH_64BIT=$archModern \
|
|
-DXASH_RELEASE=1 \
|
|
-DSDL2_INCLUDE_DIR=/system/$relativeIncludeDir \
|
|
-DCMAKE_C_FLAGS="`sdl2-config --cflags` -DDEFAULT_MODE_WIDTH=800 -DDEFAULT_MODE_HEIGHT=600"
|
|
make $jobArgs
|
|
|
|
cd $sourceDir3
|
|
mkdir -p build
|
|
cd build
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-D64BIT=$archModern
|
|
make $jobArgs
|
|
|
|
cd $sourceDir5
|
|
mkdir -p build
|
|
cd build
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-D64BIT=$archModern
|
|
make $jobArgs
|
|
|
|
cd $sourceDir6
|
|
mkdir -p build
|
|
cd build
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-D64BIT=$archModern
|
|
make $jobArgs
|
|
|
|
cd $sourceDir7
|
|
mkdir -p build/
|
|
cd build
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DLAUNCHER=xash3d
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir/Xash3D/{engine,docs}
|
|
mkdir -p $appsDir/Xash3D/extras/valve/{cl_dlls,dlls}
|
|
mkdir -p $appsDir/Xash3D/extras/bshift/{cl_dlls,dlls}
|
|
mkdir -p $appsDir/Xash3D/extras/gearbox/{cl_dlls,dlls}
|
|
|
|
cp $sourceDir3/build/cl_dll/libclient.so $appsDir/Xash3D/extras/valve/cl_dlls/libclient-haiku$archPostfix.so
|
|
cp $sourceDir3/build/dlls/libserver.so $appsDir/Xash3D/extras/valve/dlls/libserver-haiku$archPostfix.so
|
|
|
|
cp $sourceDir5/build/cl_dll/libclient.so $appsDir/Xash3D/extras/bshift/cl_dlls/libclient-haiku$archPostfix.so
|
|
cp $sourceDir5/build/dlls/libserver.so $appsDir/Xash3D/extras/bshift/dlls/libserver-haiku$archPostfix.so
|
|
|
|
cp $sourceDir6/build/cl_dll/libclient.so $appsDir/Xash3D/extras/gearbox/cl_dlls/libclient-haiku$archPostfix.so
|
|
cp $sourceDir6/build/dlls/libserver.so $appsDir/Xash3D/extras/gearbox/dlls/libserver-haiku$archPostfix.so
|
|
|
|
cp $sourceDir4/valve/extras.pak $appsDir/Xash3D/extras/
|
|
|
|
cp $sourceDir/build/mainui/libxashmenu$archPostfix.so $appsDir/Xash3D/extras/libmenu.so
|
|
cp $sourceDir/build/engine/libxash.so $appsDir/Xash3D/extras/
|
|
cp $sourceDir/build/game_launch/xash3d $appsDir/Xash3D/engine/Xash3D
|
|
cp $sourceDir/README.md $appsDir/Xash3D/docs/
|
|
|
|
cp $sourceDir7/build/Xash3DLauncher $appsDir/Xash3D/Xash3D
|
|
|
|
settype -t application/x-vnd.Be-elfexecutable $appsDir/Xash3D/engine/Xash3D
|
|
rc $portDir/additional-files/xash3d.rdef -o xash3d.rsrc
|
|
resattr -o $appsDir/Xash3D/engine/Xash3D xash3d.rsrc
|
|
|
|
addAppDeskbarSymlink $appsDir/Xash3D/Xash3D
|
|
}
|