git-svn-id: svn://svn.icculus.org/netradiant/trunk@205 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
divverent 2009-03-04 09:03:25 +00:00
parent f92780d0b3
commit 01a032eca0
2 changed files with 22 additions and 6 deletions

View File

@ -9,14 +9,30 @@ set -ex
finkgetdeps() finkgetdeps()
{ {
otool -L "$1" | grep /sw/lib | while read -r LIB STUFF; do otool -L "$1" | grep /sw/lib | while read -r LIB STUFF; do
[ -z "${LIB##*:}" ] && continue # first line
[ -f "$INSTALLDIR/${LIB##*/}" ] && continue [ -f "$INSTALLDIR/${LIB##*/}" ] && continue
cp -vL "$LIB" "$INSTALLDIR" cp -vL "$LIB" "$INSTALLDIR"
finkgetdeps "$INSTALLDIR/${LIB##*/}" finkgetdeps "$LIB"
done done
} }
finkgetdeps "$INSTALLDIR/radiant.ppc" finkgetdeps "$INSTALLDIR/radiant.ppc"
echo Warning: this only works if only ONE version of gtk-2.0 and pango is installed 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/" for LIB in /sw/lib/gtk-2.0/*/loaders/libpixbufloader-bmp.so; do
cp -vL /sw/lib/pango/*/modules/pango-basic-x.so "$INSTALLDIR/" 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"

View File

@ -35,7 +35,7 @@ case "$NEX_DIRECTORY" in
esac esac
if [ -x /usr/bin/open-x11 ]; then if [ -x /usr/bin/open-x11 ]; then
exec /usr/bin/open-x11 ./radiant.ppc "$@" /usr/bin/open-x11 ./radiant.ppc "$@" &
else else
exec ./radiant.ppc "$@" ./radiant.ppc "$@" &
fi fi