52 lines
No EOL
1,020 B
Bash
Executable file
52 lines
No EOL
1,020 B
Bash
Executable file
#!/bin/bash
|
|
git clone https://github.com/libretro/libretro-super.git
|
|
set -e
|
|
|
|
cd libretro-super
|
|
|
|
export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig"
|
|
export PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig"
|
|
|
|
export CFLAGS="-I$PREFIX/include -O3"
|
|
export CXXFLAGS="-I$PREFIX/include -O3"
|
|
|
|
export LDFLAGS="-L$PREFIX/lib -lpandory"
|
|
|
|
#$(pkg-config --cflags glib-2.0)
|
|
|
|
export CC="$xCC"
|
|
export CXX="$xCXX"
|
|
export STRIP="$xSTRIP"
|
|
|
|
|
|
export CYCLONE_CC="gcc"
|
|
export CYCLONE_CXX="g++"
|
|
|
|
export CROSS_COMPILE="$xHOST-"
|
|
export ARCH="arm"
|
|
|
|
|
|
if [[ "$2" = "nolibs" ]]; then
|
|
# some cores have their own (old) dependencies and will fail if the
|
|
# prefix is defined
|
|
export CFLAGS="-O3"
|
|
export CXXFLAGS="-O3"
|
|
export LDFLAGS=""
|
|
export PKG_CONFIG_PATH=""
|
|
export PKG_CONFIG_LIBDIR=""
|
|
fi
|
|
|
|
./libretro-fetch.sh "$1"
|
|
|
|
./libretro-build.sh "$1" | tee buildlog
|
|
|
|
grep " successfully processed" buildlog > /dev/null || exit 1
|
|
|
|
rsync -av /packages/libretro-super/dist/ /cores/
|
|
|
|
#./autogen.sh
|
|
#./configure --prefix="$PREFIX" --host="$xHOST"
|
|
|
|
|
|
#make
|
|
#make install |