diff options
| author | mjwybrow <mjwybrow@users.sourceforge.net> | 2007-02-03 03:34:28 +0000 |
|---|---|---|
| committer | mjwybrow <mjwybrow@users.sourceforge.net> | 2007-02-03 03:34:28 +0000 |
| commit | 20a1360b61b6d42a8a695c999bd1d7894582fd18 (patch) | |
| tree | c0b95af66a2f8b20e70f386efd8bdeaf5d009199 /packaging | |
| parent | * configure.ac: Don't pass CXXFLAGS to the CXX command that is used to (diff) | |
| download | inkscape-20a1360b61b6d42a8a695c999bd1d7894582fd18.tar.gz inkscape-20a1360b61b6d42a8a695c999bd1d7894582fd18.zip | |
* packaging/osx-app.sh: Some improvements for building packages with
updated versions of dependencies.
(bzr r2315)
Diffstat (limited to 'packaging')
| -rwxr-xr-x | packaging/osx-app.sh | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/packaging/osx-app.sh b/packaging/osx-app.sh index 51d970079..ba981c6a8 100755 --- a/packaging/osx-app.sh +++ b/packaging/osx-app.sh @@ -49,7 +49,11 @@ else fi -SW=/sw +SW="$HOME/ws-fat" + +pangover=1.5.0 +gtkver=2.10.0 + # Package always has the same name. Version information is stored in # the Info.plist file which is filled in by the configure script. @@ -153,9 +157,9 @@ cp $SW/etc/pango/pangox.aliases $pkgetc/pango/ sed -e "s,$SW,\"\${CWD},g" -e 's,\.so ,.so" ,g' $SW/etc/pango/pango.modules > $pkgetc/pango/pango.modules cat > $pkgetc/pango/pangorc <<END_PANGO [Pango] -ModuleFiles = "\${HOME}/.inkscape-etc/pango.modules" +ModuleFiles=\${HOME}/.inkscape-etc/pango.modules [PangoX] -AliasFiles = "\${HOME}/.inkscape-etc/pangox.aliases" +AliasFiles=\${HOME}/.inkscape-etc/pangox.aliases END_PANGO # We use a modified fonts.conf file so only need the dtd @@ -171,14 +175,16 @@ do cp -r $SW/etc/$item $pkgetc/ done + pkglib="$package/Contents/Resources/lib" -mkdir -p $pkglib/pango/1.4.0/modules -cp $SW/lib/pango/1.4.0/modules/*.so $pkglib/pango/1.4.0/modules/ +mkdir -p $pkglib/pango/$pangover/modules +cp $SW/lib/pango/$pangover/modules/*.so $pkglib/pango/$pangover/modules/ + -mkdir -p $pkglib/gtk-2.0/2.4.0/{engines,immodules,loaders} -cp -r $SW/lib/gtk-2.0/2.4.0/engines/* $pkglib/gtk-2.0/2.4.0/engines/ -cp $SW/lib/gtk-2.0/2.4.0/immodules/*.so $pkglib/gtk-2.0/2.4.0/immodules/ -cp $SW/lib/gtk-2.0/2.4.0/loaders/*.so $pkglib/gtk-2.0/2.4.0/loaders/ +mkdir -p $pkglib/gtk-2.0/$gtkver/{engines,immodules,loaders} +cp -r $SW/lib/gtk-2.0/$gtkver/engines/* $pkglib/gtk-2.0/$gtkver/engines/ +cp $SW/lib/gtk-2.0/$gtkver/immodules/*.so $pkglib/gtk-2.0/$gtkver/immodules/ +cp $SW/lib/gtk-2.0/$gtkver/loaders/*.so $pkglib/gtk-2.0/$gtkver/loaders/ mkdir -p $pkglib/gnome-vfs-2.0/modules cp $SW/lib/gnome-vfs-2.0/modules/*.so $pkglib/gnome-vfs-2.0/modules/ @@ -189,7 +195,7 @@ nfiles=0 endl=true while $endl; do echo "Looking for dependencies. Round " $a - libs="`otool -L $pkglib/gtk-2.0/2.4.0/loaders/* $pkglib/gtk-2.0/2.4.0/immodules/* $pkglib/gtk-2.0/2.4.0/engines/*.so $pkglib/pango/1.4.0/modules/* $pkglib/gnome-vfs-2.0/modules/* $package/Contents/Resources/lib/* $binary 2>/dev/null | fgrep compatibility | cut -d\( -f1 | grep $SW | sort | uniq`" + libs="`otool -L $pkglib/gtk-2.0/$gtkver/loaders/* $pkglib/gtk-2.0/$gtkver/immodules/* $pkglib/gtk-2.0/$gtkver/engines/*.so $pkglib/pango/$pangover/modules/* $pkglib/gnome-vfs-2.0/modules/* $package/Contents/Resources/lib/* $binary 2>/dev/null | fgrep compatibility | cut -d\( -f1 | grep $SW | sort | uniq`" cp -f $libs $package/Contents/Resources/lib let "a+=1" nnfiles=`ls $package/Contents/Resources/lib | wc -l` |
