tweaks to packaging to make SUIL (and thus LV2 UI's) work
[ardour.git] / tools / linux_packaging / build
index cc5cf31f73f70040e0d3c600b3dd50dad260d340..ce3d03d07313ab1fe1b7814a77952ca918c8a198 100755 (executable)
@@ -144,16 +144,20 @@ APPLIB=$APPDIR/lib
 Libraries=$APPLIB
 Etc=$APPDIR/etc
 Shared=$APPDIR/share
+
 Plugins=$APPLIB/plugins
 Surfaces=$APPLIB/surfaces
 Panners=$APPLIB/panners
+
+Modules=$Libraries/modules
+Loaders=$Libraries/loaders
+
+Templates=$Shared/templates
 ExportFormats=$Shared/export
 Locale=$Shared/locale
 MidiMaps=$Shared/midi_maps
 PatchFiles=$Shared/patchfiles
 MackieControl=$Shared/mcp
-Modules=$Libraries/modules
-Loaders=$Libraries/loaders
 
 if [ x$PRINT_SYSDEPS != x ] ; then
 #
@@ -191,6 +195,7 @@ mkdir -p $PatchFiles
 mkdir -p $MackieControl
 mkdir -p $ExportFormats
 mkdir -p $Panners
+mkdir -p $Templates
 mkdir -p $Shared/templates
 mkdir -p $Shared/doc
 
@@ -481,6 +486,13 @@ for x in $BUILD_ROOT/../mcp/*.device $BUILD_ROOT/../mcp/*.profile ; do
     echo Copied Mackie Control file $x 
 done
 
+# Templates
+for f in $BUILD_ROOT/../templates/* ; do 
+    if [ -d "$f" ] ; then
+       echo Template: $f ; cp -r "$f" $Templates ; 
+    fi
+done
+
 # ExportFormats
 # got to be careful with names here
 for x in $BUILD_ROOT/../export/*.preset $BUILD_ROOT/../export/*.format ; do
@@ -493,6 +505,9 @@ cp $BUILD_ROOT/libs/panners/*/lib*.so* $Panners
 # VAMP plugins that we use
 cp $BUILD_ROOT/libs/vamp-plugins/libardourvampplugins.so* $Libraries
 
+# SUIL GUI sub-libraries
+cp $HOME/a3/inst/lib/suil-0/lib*.dylib $Libraries
+
 OURLIBDIR=$BUILD_ROOT/libs
 OURLIBS=$OURLIBDIR/vamp-sdk:$OURLIBDIR/surfaces/control_protocol:$OURLIBDIR/ardour:$OURLIBDIR/midi++2:$OURLIBDIR/pbd:$OURLIBDIR/rubberband:$OURLIBDIR/soundtouch:$OURLIBDIR/gtkmm2ext:$OURLIBDIR/sigc++2:$OURLIBDIR/glibmm2:$OURLIBDIR/gtkmm2/atk:$OURLIBDIR/gtkmm2/pango:$OURLIBDIR/gtkmm2/gdk:$OURLIBDIR/gtkmm2/gtk:$OURLIBDIR/libgnomecanvasmm:$OURLIBDIR/libsndfile:$OURLIBDIR/evoral:$OURLIBDIR/evoral/src/libsmf:$OURLIBDIR/audiographer:$OURLIBDIR/timecode:$OURLIBDIR/taglib:$OURLIBDIR/qm-dsp
 
@@ -523,7 +538,6 @@ while [ true ] ; do
                # do not include libjack
                deps=`LD_LIBRARY_PATH=$OURLIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} ldd $file | awk '{print $3}'`
 
-               # LD_LIBRARY_PATH=$OURLIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} ldd $file | egrep "(/opt/|/local/|libs/|/usr/lib|/gtk)" | grep -v 'libjack\.'
                echo -n "."
                for dep in $deps ; do
                        if test "not" = ${dep}; then 
@@ -542,9 +556,13 @@ while [ true ] ; do
                        if echo $dep | grep -qs "^/lib/" ; then continue; fi
                        # don't include jack
                        if echo $dep | grep -qs libjack ; then continue; fi
+                       # don't include ALSA
+                       if echo $dep | grep -qs libasound ; then continue; fi
                        # don't include any X Window libraries
-                       if echo $dep | grep -qs libX ; then continue; fi  
+                       if echo $dep | grep -qs libX\. ; then continue; fi  
                        if echo $dep | grep -qs libxcb ; then continue; fi  
+                       if echo $dep | grep -qs libICE\. ; then continue; fi  
+                       if echo $dep | grep -qs libSM\. ; then continue; fi  
                        # don't include libc
                        if echo $dep | grep -qs 'libc\.' ; then continue; fi
                        # don't include libstdc++
@@ -622,8 +640,6 @@ fi
 # share stuff
 
 cp -R ../../gtk2_ardour/splash.png $Shared
-# currently no templates
-#cp ../../templates/*.template $Shared/templates/
 
 # go through and recursively remove any .svn dirs in the bundle
 for svndir in `find $APPDIR -name .svn -type d`; do