2019-10-24 03:32:56 -04:00
|
|
|
#!/bin/bash
|
2019-10-22 02:30:07 -04:00
|
|
|
|
2019-10-24 03:32:56 -04:00
|
|
|
BINARY=$1
|
|
|
|
function get_dep()
|
2019-10-22 00:00:31 -07:00
|
|
|
{
|
2019-10-24 03:38:50 -04:00
|
|
|
DEP=$(ldd $BINARY | grep $1 | sed -r 's/ \w.+ => (\/.+) .+$/\1/g')
|
2019-10-24 03:32:56 -04:00
|
|
|
cp "$DEP" "${MESON_INSTALL_PREFIX}/usr/lib"
|
2019-10-22 00:00:31 -07:00
|
|
|
}
|
|
|
|
|
2019-10-24 03:32:56 -04:00
|
|
|
mkdir -p ${MESON_INSTALL_PREFIX}/usr/lib
|
2019-10-22 00:00:31 -07:00
|
|
|
|
|
|
|
|
2019-10-24 03:32:56 -04:00
|
|
|
# Required by Ubuntu
|
|
|
|
get_dep openal
|
|
|
|
get_dep physfs
|
|
|
|
get_dep SDL2-2.0
|
|
|
|
get_dep SDL2_ttf
|
|
|
|
get_dep SDL2_image
|
|
|
|
get_dep SDL_sound
|
|
|
|
get_dep fluidsynth
|
|
|
|
get_dep ruby
|
|
|
|
get_dep sndio
|
|
|
|
get_dep readline
|
|
|
|
get_dep tinfo
|
2019-12-19 02:03:17 -05:00
|
|
|
get_dep objfw
|
|
|
|
get_dep objfwrt
|
2019-10-22 00:00:31 -07:00
|
|
|
|
2019-10-24 03:32:56 -04:00
|
|
|
# Required by Fedora & Manjaro
|
|
|
|
get_dep libXss
|
|
|
|
get_dep libjpeg
|
|
|
|
get_dep libwebp
|
|
|
|
get_dep libjack
|
|
|
|
get_dep libcrypt
|
|
|
|
get_dep libbsd
|
2019-10-22 00:00:31 -07:00
|
|
|
|
|
|
|
cp ${MESON_INSTALL_PREFIX}/share/mkxp-z/* ${MESON_INSTALL_PREFIX}
|
|
|
|
rm -rf ${MESON_INSTALL_PREFIX}/share
|
|
|
|
$2 ${MESON_INSTALL_PREFIX}
|