@@ -27,7 +27,7 @@ rm -rf build dist
27
27
/opt/local/bin/python -m compileall lib/advene
28
28
29
29
# Add advene, simpletal and cherrypy, which do not seem to be taken into account automatically. Should investigate this...
30
- (cd lib ; zip -r ../dist/Advene.app/Contents/Resources/lib/python2.5 /site-packages.zip advene simpletal cherrypy -i \* .pyc )
30
+ (cd lib ; zip -r ../dist/Advene.app/Contents/Resources/lib/python2.6 /site-packages.zip advene simpletal cherrypy -i \* .pyc )
31
31
# Now try to copy the necessary gtk/pango data files (etc, lib)
32
32
33
33
# Let us put pango and pixbuf loader modules in the same modules directory
@@ -38,6 +38,8 @@ cp -R /opt/local/lib/pango/1.6.0/modules/*.so $Frameworks/modules
38
38
39
39
echo " Copying GTK modules"
40
40
cp -r /opt/local/lib/gtk-2.0 $Resources /lib
41
+ # Remove printbackends, there are issues when otool-ing them
42
+ rm ${Resources} /lib/gtk-2.0/2.10.0/printbackends/*
41
43
42
44
# generate new pango.modules file
43
45
cat > pangorc << EOF
@@ -55,13 +57,16 @@ ModulesPath=@executable_path/../Frameworks/modules
55
57
EOF
56
58
57
59
# Copy the fonts.conf file
58
- cp /etc/fonts/fonts.conf $Resources /fonts.conf
60
+ cp /opt/local/ etc/fonts/fonts.conf $Resources /fonts.conf
59
61
60
62
# Remove any reference to Verdana, since it makes Pango unusable
61
63
perl -pi -e ' s/.*verdana.*//i' $Resources /fonts.conf
62
64
65
+ # Copy pixbuf loaders to gtk 2.10 dir
66
+ cp -r /opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders ${Resources} /lib/gtk-2.0/2.10.0
67
+
63
68
# generate a new GDK pixbufs loaders file
64
- sed " s?/opt/local/lib/gtk -2.0/2.10.0/loaders/?@executable_path/../Resources/lib/gtk-2.0/2.10.0/loaders/?" < /opt/local/etc/gtk-2.0/gdk-pixbuf.loaders > $Resources /gdk-pixbuf.loaders.in
69
+ sed " s?/opt/local/lib/gdk-pixbuf -2.0/2.10.0/loaders/?@executable_path/../Resources/lib/gtk-2.0/2.10.0/loaders/?" < /opt/local/etc/gtk-2.0/gdk-pixbuf.loaders > $Resources /gdk-pixbuf.loaders.in
65
70
66
71
# Copy the theme
67
72
[ ! -z " $THEMENAME " ] && cp -r mac/${THEMENAME} ${Resources} /theme
@@ -76,7 +81,10 @@ otool -L ${MacOS}/f/librsvg-2.2.dylib | perl -lne 'print $1 if m!/opt/local/lib
76
81
77
82
78
83
# Copy gtk python modules. This will override the py2app way (creating a _gtk.pyc wrapper in the site-packages.zip, which tries to load _gtk.so from lib-dynload, but it crashes)
79
- cp -r /opt/local/lib/python2.5/site-packages/gtk-2.0/* $Resources /lib/python2.5
84
+ # cp -r /opt/local/lib/python2.6/site-packages/gtk-2.0/* $Resources/lib/python2.6
85
+ # FIXME: now in /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/
86
+ cp -r /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/* $Resources /lib/python2.6
87
+
80
88
81
89
# Copy gstreamer libs
82
90
cp /opt/local/lib/libgst* -0.10.0.dylib ${Frameworks}
89
97
otool -L /opt/local/lib/gstreamer-0.10/${n} | perl -lne ' print $1 if m!/opt/local/lib/(.+?\.dylib)!'
90
98
done) | sort -u | ( while read a
91
99
do
92
- echo " Copying $a deps "
100
+ echo " Copying $a dep "
93
101
cp /opt/local/lib/${a} ${Frameworks}
94
102
done )
95
103
96
104
echo " Fixing library names ..."
97
105
# fix the libraries we include
98
- for dylib in $Frameworks /* .dylib $Frameworks /modules/* .so $Resources /lib/gtk-2.0/2.10.0/* /* .so $Resources /lib/python2.5/* .so $Resources /lib/python2.5/* /* .so ${Resources} /gst-plugins/* .so
106
+ for dylib in $Frameworks /* .dylib $Frameworks /modules/* .so $Resources /lib/gtk-2.0/2.10.0/* /* .so $Resources /lib/python2.6/* .so $Resources /lib/python2.6/* /* .so ${Resources} /gst-plugins/* .so
107
+ # for dylib in $Frameworks/*.dylib $Frameworks/modules/*.so $Resources/lib/gtk-2.0/2.10.0/*/*.so $Resources/lib/python2.6/*/*.so ${Resources}/gst-plugins/*.so
99
108
do
100
109
# skip symlinks
101
110
if test ! -L $dylib ; then
0 commit comments