50 lines
No EOL
1.3 KiB
Bash
Executable file
50 lines
No EOL
1.3 KiB
Bash
Executable file
#!/bin/bash
|
|
#git clone https://code.teampandory.com/thirdparty/SDL.git
|
|
git clone https://github.com/RetroPie/SDL-mirror
|
|
|
|
set -e
|
|
|
|
#wget -c https://code.teampandory.com/pandory/pandory500/SDL-mirror/-/archive/pandory500/SDL-mirror-pandory500.tar.gz
|
|
#tar xvf SDL-mirror-pandory500.tar.gz
|
|
#cd SDL-mirror-pandory500
|
|
|
|
#git -c https://code.teampandory.com/pandory/pandory500/SDL-mirror/-/archive/feature/malifb/SDL-mirror-feature-malifb.tar.gz
|
|
#tar xvf SDL-mirror-feature-malifb.tar.gz
|
|
#cd SDL-mirror-feature-malifb
|
|
|
|
cd SDL-mirror
|
|
git checkout mali-2.0.9
|
|
|
|
|
|
#tar xvf "$SRC/SDL2-teampandory-malipatched.tgz"
|
|
#cd SDL2-teampandory-malipatched
|
|
|
|
#export CFLAGS="-I$PREFIX/include -O3 -DDEBUG_INPUT_EVENTS=1";
|
|
#export CPPFLAGS="-I$PREFIX/include -O3 -DDEBUG_INPUT_EVENTS=1";
|
|
|
|
export CFLAGS="-I$PREFIX/include -O3";
|
|
export CPPFLAGS="-I$PREFIX/include -O3";
|
|
export LDFLAGS="-L$PREFIX/lib";
|
|
|
|
export LD="$xLD"
|
|
|
|
rm -rf build || true
|
|
mkdir build || true
|
|
pushd build
|
|
cmake .. -DCMAKE_TOOLCHAIN_FILE="${xCMAKE}" -DCMAKE_PREFIX_PATH="$PREFIX" -DCMAKE_INSTALL_PREFIX="$PREFIX"
|
|
make
|
|
make install
|
|
|
|
|
|
#./autogen.sh
|
|
#autoupdate
|
|
|
|
#./configure \
|
|
# --prefix="$PREFIX" \
|
|
# --host="$xHOST" \
|
|
# --enable-video-mali=yes \
|
|
# --enable-jack=no \
|
|
# --enable-video-kmsdrm=no \
|
|
# --enable-assertions=disabled \
|
|
#;
|
|
#make && make install |