74 lines
No EOL
1.9 KiB
Bash
Executable file
74 lines
No EOL
1.9 KiB
Bash
Executable file
#!/bin/bash
|
|
#git clone https://code.teampandory.com/thirdparty/scummvm/
|
|
git clone https://github.com/scummvm/scummvm
|
|
#git clone https://github.com/scummvm/scummvm
|
|
|
|
set -e
|
|
cd scummvm
|
|
git checkout v2.7.1
|
|
#git checkout v2.6.0
|
|
git reset HEAD --hard
|
|
|
|
#git checkout a9418f8f6343151ff3bf98df74a4b44c714c1b3e # 2nd GLAD. 19 Jan
|
|
|
|
# make glad include our EGL instead of the newer one so we can still support mali
|
|
git checkout -- ./graphics/opengl/glad.h
|
|
sed -i "s@#ifndef __khrplatform_h_@#include <KHR/mali_khrplatform.h>\n#ifndef __khrplatform_h_@g" graphics/opengl/glad.h
|
|
|
|
export CFLAGS="-I$PREFIX/opt/gles/include -I$PREFIX/include -I$PREFIX/include/freetype2 -O3"
|
|
export CPPFLAGS="-I$PREFIX/opt/gles/include -I$PREFIX/include -I$PREFIX/include/freetype2 -O3"
|
|
export LDFLAGS="-L$PREFIX/opt/lib -L$PREFIX/lib -liconv"
|
|
|
|
export PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig"
|
|
|
|
rm -rfv /tmp/pandory/share/scummvm
|
|
rm -rfv /tmp/pandory/bin/scummvm
|
|
|
|
make clean
|
|
./configure \
|
|
--with-sdl-prefix="$PREFIX" \
|
|
--host="$xHOST" \
|
|
--disable-alsa \
|
|
--with-zlib-prefix="$PREFIX" \
|
|
--with-jpeg-prefix="$PREFIX" \
|
|
--with-png-prefix="$PREFIX" \
|
|
--with-ogg-prefix="$PREFIX" \
|
|
--with-flac-prefix="$PREFIX" \
|
|
--with-mad-prefix="$PREFIX" \
|
|
--opengl-mode=none \
|
|
--with-theoradec-prefix="$PREFIX" \
|
|
--prefix="$PREFIX" \
|
|
--no-builtin-resources \
|
|
--disable-all-engines \
|
|
--enable-vkeybd \
|
|
;
|
|
#--enable-all-engines \
|
|
|
|
|
|
make -j$(nproc)
|
|
make install
|
|
exit
|
|
|
|
|
|
# working GLes, no mouse
|
|
|
|
./configure \
|
|
--host="$xHOST" \
|
|
--disable-alsa \
|
|
--with-zlib-prefix="$PREFIX" \
|
|
--with-jpeg-prefix="$PREFIX" \
|
|
--with-png-prefix="$PREFIX" \
|
|
--with-ogg-prefix="$PREFIX" \
|
|
--with-flac-prefix="$PREFIX" \
|
|
--with-mad-prefix="$PREFIX" \
|
|
--with-opengl-prefix="$PREFIX/opt/gl4es" \
|
|
--with-sdl-prefix="$PREFIX" \
|
|
--with-theoradec-prefix="$PREFIX" \
|
|
--prefix="$PREFIX" \
|
|
--no-builtin-resources \
|
|
--enable-all-engines \
|
|
--enable-vkeybd \
|
|
;
|
|
|
|
make -j$(nproc)
|
|
make install |