X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=install-dylibs.sh;fp=install-dylibs.sh;h=12d0bbb5b09c07a6d8ae24a12a365de43498307f;hp=0000000000000000000000000000000000000000;hb=64eee327a30d638d581b1673c45239bd4d701b78;hpb=03c2a5a99fbab9e208789ec1e8872b112c2a1caa diff --git a/install-dylibs.sh b/install-dylibs.sh new file mode 100644 index 00000000..12d0bbb5 --- /dev/null +++ b/install-dylibs.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +set -ex + +: ${OTOOL:=otool} +: ${CP:=cp} +: ${INSTALLDIR:=.} + +finkgetdeps() +{ + otool -L "$1" | grep /sw/lib | while read -r LIB STUFF; do + [ -f "$INSTALLDIR/${LIB##*/}" ] && continue + cp -vL "$LIB" "$INSTALLDIR" + finkgetdeps "$INSTALLDIR/${LIB##*/}" + done +} + +finkgetdeps "$INSTALLDIR/radiant.ppc" +echo Warning: this only works if only ONE version of gtk-2.0 and pango is installed +cp -vL /sw/lib/gtk-2.0/*/loaders/libpixbufloader-bmp.so "$INSTALLDIR/" +cp -vL /sw/lib/pango/*/modules/pango-basic-fc.so "$INSTALLDIR/" +cp -vL /sw/lib/pango/*/modules/pango-basic-x.so "$INSTALLDIR/"