netradiant-custom/install-dylibs.sh
divverent 01a032eca0 fix icon
git-svn-id: svn://svn.icculus.org/netradiant/trunk@205 61c419a2-8eb2-4b30-bcec-8cead039b335
2009-03-04 09:03:25 +00:00

39 lines
793 B
Bash

#!/bin/sh
set -ex
: ${OTOOL:=otool}
: ${CP:=cp}
: ${INSTALLDIR:=.}
finkgetdeps()
{
otool -L "$1" | grep /sw/lib | while read -r LIB STUFF; do
[ -z "${LIB##*:}" ] && continue # first line
[ -f "$INSTALLDIR/${LIB##*/}" ] && continue
cp -vL "$LIB" "$INSTALLDIR"
finkgetdeps "$LIB"
done
}
finkgetdeps "$INSTALLDIR/radiant.ppc"
echo Warning: this only works if only ONE version of gtk-2.0 and pango is installed
for LIB in /sw/lib/gtk-2.0/*/loaders/libpixbufloader-bmp.so; do
LAST=$LIB
done
cp -L "$LAST" "$INSTALLDIR"
finkgetdeps "$LAST"
for LIB in /sw/lib/pango/*/modules/pango-basic-fc.so; do
LAST=$LIB
done
cp -L "$LAST" "$INSTALLDIR"
finkgetdeps "$LAST"
for LIB in /sw/lib/pango/*/modules/pango-basic-x.so; do
LAST=$LIB
done
cp -L "$LAST" "$INSTALLDIR"
finkgetdeps "$LAST"