add lv2core to bundles
authorRobin Gareus <robin@gareus.org>
Wed, 28 Jan 2015 22:08:06 +0000 (23:08 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 28 Jan 2015 22:08:06 +0000 (23:08 +0100)
The ontology is needed for plugin classification.

tools/linux_packaging/build
tools/osx_packaging/osx_build
tools/x-win/package.sh

index 33baf12ac7c0674a4e80e3cc4cddeab5c3543169..6a57f1059aacddc141489005672ff1e4a2cc1482 100755 (executable)
@@ -566,6 +566,13 @@ fi
 # install bundled LV2s to <app>/lib/LV2/
 cp -R $BUILD_ROOT/libs/LV2 $APPLIB/
 
+# lv2 core, classifications etc - TODO check if we need the complete LV2 ontology
+if test -d $ARDOURSTACK_ROOT/lib/lv2/lv2core.lv2 ; then
+       cp -R $ARDOURSTACK_ROOT/lib/lv2/lv2core.lv2 $APPLIB/LV2/
+elif test -d $GTKSTACK_ROOT/lib/lv2/lv2core.lv2 ; then
+       cp -R $GTKSTACK_ROOT/lib/lv2/lv2core.lv2 $APPLIB/LV2/
+fi
+
 # go through and recursively remove any .svn dirs in the bundle
 for svndir in `find $APPDIR -name .svn -type d`; do
        rm -rf $svndir
index 4373201ea22a4652499d953b89d7309a07cd0808..ec93de0274a7677b85925473472f231bffb7d148 100755 (executable)
@@ -472,6 +472,14 @@ done
 # install bundled LV2s to <app>/Contents/lib/LV2/
 cp -R $BUILD_ROOT/libs/LV2 $Frameworks/
 
+# lv2 core, classifications etc - TODO check if we need the complete LV2 ontology
+if test -d $ARDOURSTACK_ROOT/lib/lv2/lv2core.lv2 ; then
+       cp -R $ARDOURSTACK_ROOT/lib/lv2/lv2core.lv2 $Frameworks/LV2/
+elif test -d $GTKSTACK_ROOT/lib/lv2/lv2core.lv2 ; then
+       cp -R $GTKSTACK_ROOT/lib/lv2/lv2core.lv2 $Frameworks/LV2/
+fi
+
+
 # now fix up the executables
 echo "Fixing up executable dependency names ..."
 executables=$MAIN_EXECUTABLE
index d50a86c7e2533c14d93adf0a8fdd794631824b3e..4bd434beb967aff4bdbab89022a55a77c2cdb16b 100755 (executable)
@@ -122,6 +122,11 @@ cp `find build/libs/panners/ -iname "*.dll"` $ALIBDIR/panners/
 cp -r build/libs/LV2 $ALIBDIR/
 cp -r build/libs/vamp-plugins/*ardourvampplugins*.dll $ALIBDIR/vamp/libardourvampplugins.dll
 
+# lv2 core, classifications etc - TODO check if we need the complete LV2 ontology
+if test -d $PREFIX/lib/lv2/lv2core.lv2 ; then
+       cp -R $PREFIX/lib/lv2/lv2core.lv2 $ALIBDIR/LV2/
+fi
+
 mv $ALIBDIR/surfaces/ardourcp-*.dll $DESTDIR/bin/
 
 # TODO use -static-libgcc -static-libstdc++ -- but for .exe files only