move ancient icon source files away from the top-level
[ardour.git] / tools / linux_packaging / build
index be26342e1a581daef1bc521f3cf5734895931434..80a911dd80c936ae29edeed50e55c43cab4f73a3 100755 (executable)
@@ -36,6 +36,7 @@ GCC5ABI=false
 USEWINE=false
 BUILDTYPE=""
 NOSTRIP="libsuil|libserd|libsord|liblilv|libsratom|liblrdf|libardour|libpbd|libevoral"
+: ${HARRISONCHANNELSTRIP=harrison_channelstrip}
 
 
 if [ $# -eq 0 ] ; then
@@ -66,6 +67,18 @@ while [ $# -gt 0 ] ; do
                VENDOR=Harrison ;
                EXENAME=mixbus ;
                shift ;;
+       --mixbus32c)
+               MIXBUS=1;
+               WITH_HARRISON_LV2=1 ;
+               WITH_X42_LV2=1 ;
+               WITH_NLS=1 ;
+               WITH_LADSPA=;
+               STRIP=all
+               APPNAME=Mixbus32C ;
+               VENDOR=Harrison ;
+               EXENAME=mixbus32c ;
+               major_version=""
+               shift ;;
        --public)
                WITH_NLS=1 ;
                WITH_LADSPA=;
@@ -90,6 +103,7 @@ while [ $# -gt 0 ] ; do
        --nls) WITH_NLS=1 ; shift ;;
        --harvid) WITH_HARVID=1 ; shift ;;
        --gcc5abi) GCC5ABI=true ; shift ;;
+       --chanstrip) HARRISONCHANNELSTRIP=$2 ; shift; shift ;;
 
        *)
                #catch all for unknown arguments
@@ -565,23 +579,22 @@ find $APPLIB/ -name "*.so*" -print0 | xargs -0 chmod a+rx
 echo "Copying other stuff to $APPDIR  ..."
 
 # these are all generated by waf
-cp $BUILD_ROOT/gtk2_ardour/mnemonic-us.bindings  $Etc
+cp $BUILD_ROOT/gtk2_ardour/ardour.keys  $Etc
 cp $BUILD_ROOT/gtk2_ardour/ardour.menus $Etc
 cp $BUILD_ROOT/gtk2_ardour/clearlooks.rc $Etc
 cp $BUILD_ROOT/gtk2_ardour/default_ui_config $Etc
 
 # Copied directly from source tree
 
+mkdir ${Shared}/icons
+mkdir ${Shared}/resources
 cp ../../system_config $Etc/system_config
-cp ../../gtk2_ardour/dark.colors $Etc
+cp ../../gtk2_ardour/*.colors $Etc
 cp ../../instant.xml $Shared/instant.xml
-cp ../../gtk2_ardour/step_editing.bindings $Etc
-cp ../../gtk2_ardour/mixer.bindings $Etc
-cp -r ../../gtk2_ardour/icons $Shared
-cp -r ../../gtk2_ardour/pixmaps $Shared
-cp -r ../../gtk2_ardour/splash.png $Shared
-cp -r ../../gtk2_ardour/small-splash.png $Shared
-cp -r ../../gtk2_ardour/ArdourMono.ttf $Shared
+cp ../../gtk2_ardour/icons/*.png ${Shared}/icons
+cp -r ../../gtk2_ardour/icons/icons/cursor_* ${Shared}/icons/
+cp ../../gtk2_ardour/ArdourMono.ttf $Shared
+cp ../../gtk2_ardour/resources/${APPNAME}-* ${Shared}/resources/
 
 #
 # put sooper sekrit ingredients here and they will be copied
@@ -627,13 +640,13 @@ if test -n "$MIXBUS"; then
 
        mkdir -p $APPLIB/ladspa/strip/
        curl -s -S --fail -# \
-               -z "${CACHEDIR}/harrison_channelstrip.${HARCH}.so" \
-               -o "${CACHEDIR}/harrison_channelstrip.${HARCH}.so" \
-               "http://www.harrisonconsoles.com/mixbus/mb3/beta/harrison-dsp/harrison_channelstrip.${HARCH}.so"
+               -z "${CACHEDIR}/${HARRISONCHANNELSTRIP}.${HARCH}.so" \
+               -o "${CACHEDIR}/${HARRISONCHANNELSTRIP}.${HARCH}.so" \
+               "http://www.harrisonconsoles.com/mixbus/mb3/beta/harrison-dsp/${HARRISONCHANNELSTRIP}.${HARCH}.so"
 
-       cp "${CACHEDIR}/harrison_channelstrip.${HARCH}.so" \
-               $APPLIB/ladspa/strip/harrison_channelstrip.so
-       chmod +x $APPLIB/ladspa/strip/harrison_channelstrip.so
+       cp "${CACHEDIR}/${HARRISONCHANNELSTRIP}.${HARCH}.so" \
+               $APPLIB/ladspa/strip/${HARRISONCHANNELSTRIP}.so
+       chmod +x $APPLIB/ladspa/strip/${HARRISONCHANNELSTRIP}.so
 fi
 
 if test x$WITH_X42_LV2 != x ; then
@@ -643,6 +656,12 @@ if test x$WITH_X42_LV2 != x ; then
                "${CACHEDIR}/x42-meters-lv2-linux-${WARCH}-${METERS_VERSION}.zip"
        unzip -q -d "$APPLIB/LV2/" "${CACHEDIR}/x42-meters-lv2-linux-${WARCH}-${METERS_VERSION}.zip"
 
+       EQ_VERSION=$(curl -s -S http://x42-plugins.com/x42/linux/x42-eq.latest.txt)
+       rsync -a -q --partial \
+               rsync://x42-plugins.com/x42/linux/x42-eq-lv2-linux-${WARCH}-${EQ_VERSION}.zip \
+               "${CACHEDIR}/x42-eq-lv2-linux-${WARCH}-${EQ_VERSION}.zip"
+       unzip -q -d "$APPLIB/LV2/" "${CACHEDIR}/x42-eq-lv2-linux-${WARCH}-${EQ_VERSION}.zip"
+
        SETBFREE_VERSION=$(curl -s -S http://x42-plugins.com/x42/linux/setBfree.latest.txt)
        rsync -a -q --partial \
                rsync://x42-plugins.com/x42/linux/setBfree-lv2-linux-${WARCH}-${SETBFREE_VERSION}.zip \