33 lines
No EOL
1 KiB
Bash
Executable file
33 lines
No EOL
1 KiB
Bash
Executable file
#!/bin/bash
|
|
git clone https://code.teampandory.com/thirdparty/darkplaces/
|
|
set -e
|
|
cd darkplaces
|
|
#git reset HEAD --hard
|
|
git config pull.rebase false
|
|
git checkout pandory500
|
|
git pull origin pandory500
|
|
|
|
# export CFLAGS_CLIENT="-I$PREFIX/include $($PREFIX/bin/sdl2-config --cflags) -O3"
|
|
export CFLAGS_EXTRA="-I$PREFIX/opt/gles/include -I$PREFIX/include"
|
|
|
|
export CPUOPTIMIZATIONS="-L$PREFIX/opt/gles/lib -L$PREFIX/lib $($PREFIX/bin/sdl2-config --libs) -liconv"
|
|
|
|
|
|
#export CC=x86_64-w64-mingw32-gcc
|
|
#export WINDRES=x86_64-w64-mingw32-windres
|
|
#export STRIP=x86_64-w64-mingw32-strip
|
|
#export SDL_CONFIG=x86_64-w64-mingw32-sdl2-config
|
|
#export DP_MAKE_TARGET=mingw
|
|
|
|
export SDL_CONFIG="$PREFIX/bin/sdl2-config"
|
|
export CC="$xCC"
|
|
export STRIP="$xSTRIP"
|
|
|
|
export SDLCONFIG_UNIXCFLAGS_X11="-DUSE_GLES2"
|
|
export SDLCONFIG_UNIXLIBS_X11="-lEGL"
|
|
|
|
make clean
|
|
make sdl-release -j$(nproc) DP_ARCH=arm DP_MAKE_TARGET=linux DP_MACHINE=aarch64
|
|
cp -f darkplaces-sdl /tmp/pandory/bin/
|
|
|
|
#make sdl-release -llzma -logg -lFLAC -lvorbisenc -lvorbis -liconv -lbz2 |