buildscripts/amiberry.sh
2023-12-03 23:10:57 +01:00

37 lines
No EOL
871 B
Bash
Executable file

#!/bin/bash
#rm -rf amiberry || true
git clone https://code.teampandory.com/thirdparty/amiberry/
cd amiberry
git checkout pandory
git checkout -- Makefile ## UNCOMMENT THIS FUTURE DAVE
git submodule update --init --recursive
set -e
export AS="$xAS"
export CC="$xCC"
export CPP="$xCXX"
export CXX="$xCXX"
export STRIP="$xSTRIP"
#export EXTRA_CFLAGS="-I$PREFIX/include"
#export EXTRA_CXXFLAGS="-I$PREFIX/include"
export EXTRA_CFLAGS="-I$PREFIX/include -O3"
export EXTRA_CXXFLAGS="-I$PREFIX/include -O3"
export SDL_CONFIG="$PREFIX/bin/sdl2-config"
export PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig"
#sed -i 's/-DCPU_AARCH64//g' ./Makefile
#sed -i 's/AARCH64 = 1/AARCH64 = 0/g' ./Makefile
sed -i 's/-lmpeg2 -lstdc++fs/-lmpeg2 -lstdc++fs -liconv -lpandory/g' ./Makefile
make clean
# USE_OLDGCC=1
make PLATFORM=a500 -j$(nproc)
cp -f amiberry "$PREFIX/bin/amiberry5"