2011-11-02 15:27:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
2012-04-16 17:33:18 +00:00
|
|
|
LIBRETRO_DIR="/usr/local/lib/libretro"
|
2011-11-02 15:27:23 +00:00
|
|
|
else
|
2012-04-16 17:33:18 +00:00
|
|
|
LIBRETRO_DIR="$1"
|
2011-11-02 15:27:23 +00:00
|
|
|
fi
|
|
|
|
|
2012-04-16 17:33:18 +00:00
|
|
|
if [ ! -d "$PREFIX/lib/libretro" ]; then
|
|
|
|
mkdir -p "$LIBRETRO_DIR"
|
2011-11-02 15:27:23 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
LIBS=""
|
2012-04-16 17:33:18 +00:00
|
|
|
LIBS="$LIBS libretro-bsnes/libretro-performance.so"
|
|
|
|
LIBS="$LIBS libretro-bsnes/libretro-compat.so"
|
|
|
|
LIBS="$LIBS libretro-bsnes/libretro-accuracy.so"
|
|
|
|
LIBS="$LIBS libretro-s9x/libretro-snes9x.so"
|
|
|
|
LIBS="$LIBS libretro-s9x-next/libretro-snes9x-next.so"
|
|
|
|
LIBS="$LIBS libretro-genplus/libretro-genplus.so"
|
|
|
|
LIBS="$LIBS libretro-fba/libretro-fba.so"
|
|
|
|
LIBS="$LIBS libretro-vba/libretro-vba.so"
|
|
|
|
LIBS="$LIBS libretro-fceu/libretro-fceu.so"
|
|
|
|
LIBS="$LIBS libretro-bnes/libretro-bnes.so"
|
|
|
|
LIBS="$LIBS libretro-gambatte/libretro-gambatte.so"
|
|
|
|
LIBS="$LIBS libretro-meteor/libretro-meteor.so"
|
2011-11-02 15:27:23 +00:00
|
|
|
|
|
|
|
for lib in $LIBS
|
|
|
|
do
|
|
|
|
if [ -f $lib ]; then
|
2012-04-16 17:33:18 +00:00
|
|
|
install -v -m644 $lib "$LIBRETRO_DIR"
|
2011-11-02 15:27:23 +00:00
|
|
|
else
|
|
|
|
echo "Library $lib not found, skipping ..."
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|