libretro-super/libretro-install.sh

43 lines
1.3 KiB
Bash
Raw Normal View History

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-22 15:12:15 +00:00
if [ ! -d "$LIBRETRO_DIR" ]; then
2012-04-16 17:33:18 +00:00
mkdir -p "$LIBRETRO_DIR"
2011-11-02 15:27:23 +00:00
fi
LIBS=""
2012-04-16 19:12:36 +00:00
LIBS="$LIBS libretro-bsnes/libretro-bsnes-performance.so"
LIBS="$LIBS libretro-bsnes/libretro-bsnes-compat.so"
LIBS="$LIBS libretro-bsnes/libretro-bsnes-accuracy.so"
2012-04-16 17:33:18 +00:00
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"
2012-04-22 18:45:51 +00:00
LIBS="$LIBS libretro-nx/libretro-nx.so"
2012-05-16 21:22:42 +00:00
LIBS="$LIBS libretro-prboom/libretro-prboom.so"
2012-08-28 08:07:58 +00:00
LIBS="$LIBS libretro-stella/libretro-stella.so"
2012-10-31 20:05:58 +00:00
LIBS="$LIBS libretro-desmume/libretro-desmume.so"
2012-11-08 21:55:59 +00:00
LIBS="$LIBS libretro-mednafen/libretro-mednafen-psx.so"
LIBS="$LIBS libretro-mednafen/libretro-mednafen-pce-fast.so"
LIBS="$LIBS libretro-mednafen/libretro-mednafen-wswan.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