#!/bin/bash #git clone https://github.com/libretro/libretro-super.git #cd libretro-super #./libretro-fetch.sh retroarch wget -c "https://code.teampandory.com/thirdparty/RetroArch/-/archive/pandory500/RetroArch-pandory500.tar.gz" tar xvf RetroArch-pandory500.tar.gz #git clone https://code.teampandory.com/thirdparty/RetroArch.git set -e #cd RetroArch #git reset HEAD --hard #git checkout v1.15.0 cd RetroArch-pandory500 #export CROSS_COMPILE="$xHOST-" export CFLAGS="-I$PREFIX/opt/gles/include -I$PREFIX/include -O3" export CXXFLAGS="-I$PREFIX/opt/gles/include -I$PREFIX/include -O3" export LDFLAGS="-L$PREFIX/opt/gles/lib -L$PREFIX/lib $($PREFIX/bin/sdl2-config --libs) $($PREFIX/bin/sdl-config --libs) -logg -liconv -llzma -lexpat -lbz2 -lpandory" #500 #export LDFLAGS="-L$PREFIX/lib $($PREFIX/bin/sdl2-config --libs) $($PREFIX/bin/sdl-config --libs) -logg -ludev" #dx export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" export PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig" #git am < "$SRC/retroarch-0001-fix-cross-compilation-library-issue.patch" # added --enable-opengl for gl4es # --enable-opengles3 \ # --enable-opengles3_1 \ #--enable-opengl \ # probably not needed for a500 #--enable-neon \ # reenable for a500! EXTRABITS="--enable-neon" if [[ "$1" == "dx" ]]; then EXTRABITS="" fi #sed -i "s#usr/include usr/local/include#$PREFIX/include usr/include usr/local/include#g" qb/config.libs.sh #--enable-udev \ #--enable-libusb \ #--enable-udev \ #--enable-sdl \ #--disable-systemd \ # udev needed for keyboard/mouse # sdl2 needed for controllers -> udev has bugs on linux 3.x ./configure \ --enable-libusb \ --enable-udev \ --enable-opengles \ --enable-mali_fbdev \ $EXTRABITS \ --enable-sdl2 \ --enable-floathard \ --enable-ffmpeg \ --host="$xHOST" \ --prefix="$PREFIX" \ --disable-kms \ --disable-x11 \ --enable-sdl2 \ --enable-alsa \ --enable-flac \ --disable-oss \ --disable-qt \ --disable-cheevos \ --disable-pulse \ --disable-builtinzlib \ --disable-ssa \ --enable-hid \ --disable-rgui \ --disable-ozone \ --disable-materialui \ --disable-discord \ --disable-screenshots \ --disable-online_updater \ --disable-update_cores \ --disable-update_core_info \ --disable-update_assets \ ; make -j$(nproc) make install