Skip to content

Commit a95c3dd

Browse files
author
oaubert
committed
Update mac installer building scripts
git-svn-id: svn+ssh://svn.gna.org/svn/advene/trunk@7274 3fb6f576-06d4-0310-ad11-a4b695aa9f05
1 parent 6911bcc commit a95c3dd

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

bin/advene

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ if not os.path.exists(config.data.path['resources']):
120120
# Pango hack
121121
os.environ['PANGO_SYSCONF_DIR'] = d
122122
os.environ['PANGO_LIB_DIR'] = d
123-
123+
os.environ['XDG_DATA_DIRS'] = d
124124
os.environ['GST_PLUGIN_PATH'] = os.path.join(d, 'gst-plugins')
125125

126126
# Let us fix the pango.modules and pixbuf.loaders files if necessary

mac/create_app_bundle

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ rm -rf build dist
2727
/opt/local/bin/python -m compileall lib/advene
2828

2929
# 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 )
3131
# Now try to copy the necessary gtk/pango data files (etc, lib)
3232

3333
# 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
3838

3939
echo "Copying GTK modules"
4040
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/*
4143

4244
# generate new pango.modules file
4345
cat > pangorc <<EOF
@@ -55,13 +57,16 @@ ModulesPath=@executable_path/../Frameworks/modules
5557
EOF
5658

5759
# 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
5961

6062
# Remove any reference to Verdana, since it makes Pango unusable
6163
perl -pi -e 's/.*verdana.*//i' $Resources/fonts.conf
6264

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+
6368
# 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
6570

6671
# Copy the theme
6772
[ ! -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
7681

7782

7883
# 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+
8088

8189
# Copy gstreamer libs
8290
cp /opt/local/lib/libgst*-0.10.0.dylib ${Frameworks}
@@ -89,13 +97,14 @@ do
8997
otool -L /opt/local/lib/gstreamer-0.10/${n} | perl -lne 'print $1 if m!/opt/local/lib/(.+?\.dylib)!'
9098
done) | sort -u | ( while read a
9199
do
92-
echo "Copying $a deps"
100+
echo "Copying $a dep"
93101
cp /opt/local/lib/${a} ${Frameworks}
94102
done )
95103

96104
echo "Fixing library names ..."
97105
# 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
99108
do
100109
# skip symlinks
101110
if test ! -L $dylib ; then

mac/gst-plugins.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ libgstflac.so
5050
libgstflv.so
5151
libgstflxdec.so
5252
libgstfreeze.so
53-
libgstgamma.so
5453
libgstgdkpixbuf.so
5554
libgstgdp.so
5655
libgstgio.so
@@ -69,7 +68,6 @@ libgstlevel.so
6968
libgstliveadder.so
7069
libgstmad.so
7170
libgstmatroska.so
72-
libgstmetadata.so
7371
libgstmms.so
7472
libgstmpeg2dec.so
7573
libgstmpeg4videoparse.so
@@ -112,15 +110,12 @@ libgstrtpmanager.so
112110
libgstrtpmux.so
113111
libgstrtsp.so
114112
libgstscaletempoplugin.so
115-
libgstschro.so
116113
libgstsdpelem.so
117-
libgstselector.so
118114
libgstshapewipe.so
119115
libgstshout2.so
120116
libgstsiren.so
121117
libgstsmpte.so
122118
libgstsndfile.so
123-
libgstsoundtouch.so
124119
libgstspectrum.so
125120
libgstspeed.so
126121
libgststereo.so
@@ -132,11 +127,8 @@ libgsttta.so
132127
libgsttwolame.so
133128
libgsttypefindfunctions.so
134129
libgstudp.so
135-
libgstvalve.so
136-
libgstvideobalance.so
137130
libgstvideobox.so
138131
libgstvideocrop.so
139-
libgstvideoflip.so
140132
libgstvideomeasure.so
141133
libgstvideomixer.so
142134
libgstvideorate.so

0 commit comments

Comments
 (0)