mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
xash3d: update to 0.20 (#5968)
This commit is contained in:
@@ -1,152 +0,0 @@
|
||||
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
|
||||
}
|
||||
159
games-action/xash3d/xash3d-0.20~git.recipe
Normal file
159
games-action/xash3d/xash3d-0.20~git.recipe
Normal file
@@ -0,0 +1,159 @@
|
||||
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-2019 Uncle Mike, 2015-2021 Flying With Gauss Team"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
|
||||
srcGitRev="a1c948e591603012437976fe531a47d5f91fe707"
|
||||
SOURCE_URI="https://github.com/FWGS/xash3d-fwgs/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="6660720c2e12911f836a63815617cf56a5fd22344505fb384fd990deca180583"
|
||||
SOURCE_DIR="xash3d-fwgs-$srcGitRev"
|
||||
|
||||
srcGitRev2="47af806327114b777d87833232aaff050658a12c"
|
||||
SOURCE_URI_2="https://github.com/FWGS/mainui_cpp/archive/$srcGitRev2.tar.gz"
|
||||
CHECKSUM_SHA256_2="46e85251cd244f2711167361bb6b9a4cf82addf5d1ce71717d82c27e1d6fe433"
|
||||
SOURCE_DIR_2="mainui_cpp-$srcGitRev2"
|
||||
|
||||
srcGitRev3="b2741298ceef8893ad75b8b96386075abdf5ca0c"
|
||||
SOURCE_URI_3="https://github.com/FWGS/miniutl/archive/$srcGitRev3.tar.gz"
|
||||
CHECKSUM_SHA256_3="ed950f608a6d834f29ec9553c94e16fb2e5803d82bac6ef4d705377810bab04a"
|
||||
SOURCE_DIR_3="MiniUTL-$srcGitRev3"
|
||||
|
||||
# Half-Life
|
||||
srcGitRev4="7fdc58743d1c3a4de6489232a233cf6f3a1b7a28"
|
||||
SOURCE_URI_4="https://github.com/FWGS/hlsdk-xash3d/archive/$srcGitRev4.tar.gz"
|
||||
CHECKSUM_SHA256_4="8dfc173899fcc4fa3449efefaf7bd91a886c7832ea05edf6c0e44d53e0afd754"
|
||||
SOURCE_DIR_4="hlsdk-xash3d-$srcGitRev4"
|
||||
|
||||
# Blue Shift
|
||||
srcGitRev5="06b530d9af95e9a1e110acb2f2429c0e80c663a8"
|
||||
SOURCE_URI_5="https://github.com/FWGS/hlsdk-xash3d/archive/$srcGitRev5.tar.gz"
|
||||
CHECKSUM_SHA256_5="bfcc90e00c47dcf1373879499a1e611f4f48814cabc8f895144b8e8115e82a0b"
|
||||
SOURCE_DIR_5="hlsdk-xash3d-$srcGitRev5"
|
||||
|
||||
# Opposing Force
|
||||
srcGitRev6="efa2dae5897a64d309396f9398ace9bba19547a8"
|
||||
SOURCE_URI_6="https://github.com/FWGS/hlsdk-xash3d/archive/$srcGitRev6.tar.gz"
|
||||
CHECKSUM_SHA256_6="6abeb50efa8d3b586f999f81e85c56426338ea348558c7e4621e5701e785b9a1"
|
||||
SOURCE_DIR_6="hlsdk-xash3d-$srcGitRev6"
|
||||
|
||||
srcGitRev7="9a15200d91cacd3f93e55f94b36c882ea326e1ac"
|
||||
SOURCE_URI_7="https://github.com/EXL/BeGameLauncher/archive/$srcGitRev7.tar.gz"
|
||||
CHECKSUM_SHA256_7="5496d76e192598386bc47b4cf58cdbe039cd91f0a16117af1fe9d464bd0f636b"
|
||||
SOURCE_DIR_7="BeGameLauncher-$srcGitRev7"
|
||||
|
||||
SOURCE_URI_8="https://github.com/FWGS/xash-extras/releases/download/v0.19.2/extras.pak#noarchive"
|
||||
CHECKSUM_SHA256_8="b3783f366f785fb1ac9bdacc6c677324b0507a4d98358a3ec94af3a088e363ce"
|
||||
|
||||
ADDITIONAL_FILES="xash3d.rdef"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64 ?x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
if [ "$targetArchitecture" = x86_64 ]; then
|
||||
archPostfix=amd64
|
||||
else
|
||||
archPostfix=i386
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
xash3d$secondaryArchSuffix = $portVersion
|
||||
app:Xash3D
|
||||
"
|
||||
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:python2$secondaryArchSuffix
|
||||
cmd:cmake$secondaryArchSuffix
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd $sourceDir
|
||||
cp -aR $sourceDir2/* mainui/
|
||||
cp -aR $sourceDir3/* mainui/miniutl/
|
||||
|
||||
./waf configure -T release
|
||||
./waf build $jobArgs
|
||||
|
||||
# Half-Life
|
||||
cd $sourceDir4
|
||||
./waf configure -T release
|
||||
./waf build $jobArgs
|
||||
|
||||
# Blue Shift
|
||||
cd $sourceDir5
|
||||
./waf configure -T release
|
||||
./waf build $jobArgs
|
||||
|
||||
# Opposing Force
|
||||
cd $sourceDir6
|
||||
./waf configure -T release
|
||||
./waf build $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/engine/lib
|
||||
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 $sourceDir4/build/cl_dll/libclient_haiku_$archPostfix.so \
|
||||
$appsDir/Xash3D/extras/valve/cl_dlls/client_haiku_$archPostfix.so
|
||||
cp $sourceDir4/build/dlls/libhl_haiku_$archPostfix.so \
|
||||
$appsDir/Xash3D/extras/valve/dlls/hl_haiku_$archPostfix.so
|
||||
|
||||
cp $sourceDir5/build/cl_dll/libclient_haiku_$archPostfix.so \
|
||||
$appsDir/Xash3D/extras/bshift/cl_dlls/client_haiku_$archPostfix.so
|
||||
cp $sourceDir5/build/dlls/libbshift_haiku_$archPostfix.so \
|
||||
$appsDir/Xash3D/extras/bshift/dlls/bshift_haiku_$archPostfix.so
|
||||
|
||||
cp $sourceDir6/build/cl_dll/libclient_haiku_$archPostfix.so \
|
||||
$appsDir/Xash3D/extras/gearbox/cl_dlls/client_haiku_$archPostfix.so
|
||||
cp $sourceDir6/build/dlls/libopfor_haiku_$archPostfix.so \
|
||||
$appsDir/Xash3D/extras/gearbox/dlls/opfor_haiku_$archPostfix.so
|
||||
|
||||
cp $sourceDir8/extras.pak $appsDir/Xash3D/extras/valve/
|
||||
|
||||
cp $sourceDir/build/mainui/libmenu.so $appsDir/Xash3D/engine/lib/
|
||||
cp $sourceDir/build/engine/libxash.so $appsDir/Xash3D/engine/lib/
|
||||
cp $sourceDir/build/ref_gl/libref_gl.so $appsDir/Xash3D/engine/lib/
|
||||
cp $sourceDir/build/ref_soft/libref_soft.so $appsDir/Xash3D/engine/lib/
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user