libretro-super/libretro-install.sh

36 lines
866 B
Bash
Raw Normal View History

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