3000th COMMIT: ports: Add halflife port
This commit is contained in:
39
ports/xash3d-fwgs/build.sh
Executable file
39
ports/xash3d-fwgs/build.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash ../install.sh
|
||||
|
||||
NAME='xash3d-fwgs'
|
||||
VERSION='git'
|
||||
DOWNLOAD_URL="https://github.com/FWGS/xash3d-fwgs.git#da1b9ad80d76156a5cbd54d3ce87edb32634ea87"
|
||||
DEPENDENCIES=('SDL2' 'freetype')
|
||||
|
||||
configure() {
|
||||
git submodule update --init --recursive || exit 1
|
||||
|
||||
pushd 3rdparty/mainui || exit 1
|
||||
for patch in ../../../patches/mainui/*; do
|
||||
git apply $patch
|
||||
done
|
||||
popd
|
||||
|
||||
pushd 3rdparty/vorbis/vorbis-src || exit 1
|
||||
for patch in ../../../../patches/vorbis/*; do
|
||||
git apply $patch
|
||||
done
|
||||
popd
|
||||
|
||||
./waf configure -T release --disable-gl || exit 1
|
||||
}
|
||||
|
||||
build() {
|
||||
./waf build || exit 1
|
||||
}
|
||||
|
||||
install() {
|
||||
./waf install --destdir=$BANAN_SYSROOT/home/user/halflife || exit 1
|
||||
|
||||
cat > $BANAN_SYSROOT/home/user/halflife/start.sh << EOF
|
||||
#!/bin/Shell
|
||||
export LD_LIBRARY_PATH=/home/user/halflife
|
||||
./xash3d -console
|
||||
EOF
|
||||
chmod +x $BANAN_SYSROOT/home/user/halflife/start.sh
|
||||
}
|
||||
Reference in New Issue
Block a user