X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=tools%2Fosx_packaging%2Fosx_build;h=276eb90fe56b61e689e6230eb8d3834f5777b5c1;hb=da5a49067839ec32a016bf1b66c3808ad7cbf699;hp=d9b6099cd317f981de1e7c8556a75a1e7a083fba;hpb=e1802c9971a127085ec2c5889806df8cfae48068;p=ardour.git diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index d9b6099cd3..276eb90fe5 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -6,9 +6,14 @@ GTKSTACK_ROOT=$HOME/gtk/inst ARDOURSTACK_ROOT=$HOME/a3/inst BUILD_ROOT=../../build +# where harvid and xjadeo binaries are cached +if test -z "$CACHEDIR" -o ! -d "$CACHEDIR"; then + CACHEDIR=`pwd` +fi + SAE= MIXBUS= -WITH_HARVID= +WITH_HARVID=1 WITH_LADSPA=1 STRIP=1 PRINT_SYSDEPS= @@ -56,7 +61,7 @@ while [ $# -gt 0 ] ; do # specific build flags # - --harvid) WITH_HARVID=1 ; shift ;; + --noharvid) WITH_HARVID= ; shift ;; --noladspa) WITH_LADSPA= ; shift ;; --nostrip) STRIP= ; shift ;; --sysdeps) PRINT_SYSDEPS=1; shift ;; @@ -94,6 +99,7 @@ Locale=$Resources/locale Plugins=$APPROOT/Plugins Surfaces=$Frameworks/surfaces Panners=$Frameworks/panners +Backends=$Frameworks/backends MidiMaps=$Shared/midi_maps ExportFormats=$Shared/export Templates=$Shared/templates @@ -127,6 +133,7 @@ mkdir -p $APPROOT/Resources mkdir -p $Plugins mkdir -p $Surfaces mkdir -p $Panners +mkdir -p $Backends mkdir -p $MidiMaps mkdir -p $ExportFormats mkdir -p $Templates @@ -251,7 +258,7 @@ fi cp -R $GTKSTACK_ROOT/etc/* $Etc echo "Copying all Pango modules ..." -cp -R $GTKSTACK_ROOT/lib/pango/1.6.0/modules/*.so $Frameworks/modules +cp -R $GTKSTACK_ROOT/lib/pango/1.8.0/modules/*.so $Frameworks/modules echo "Copying all GDK Pixbuf loaders ..." cp -R $GTKSTACK_ROOT/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so $Frameworks/modules # charset alias file @@ -260,9 +267,9 @@ cp -R $GTKSTACK_ROOT/lib/charset.alias $Resources # generate new Pango module file cat > pangorc < $Resources/pango.modules +env PANGO_RC_FILE=pangorc $GTKSTACK_ROOT/bin/pango-querymodules | sed "s?$GTKSTACK_ROOT/lib/pango/1.8.0/modules/?@executable_path/../lib/modules/?" > $Resources/pango.modules rm pangorc # generate a new GDK pixbufs loaders file @@ -303,6 +310,8 @@ cp $BUILD_ROOT/libs/surfaces/control_protocol/libardourcp*.dylib $Frameworks # Panners cp $BUILD_ROOT/libs/panners/*/lib*.dylib $Panners +# Backends +cp $BUILD_ROOT/libs/backends/*/lib*.dylib $Backends # Export Formats/Presets for f in $BUILD_ROOT/../export/*.preset $BUILD_ROOT/../export/*.format ; do @@ -342,7 +351,7 @@ cp $ARDOURSTACK_ROOT/lib/suil-0/lib* $Frameworks while [ true ] ; do missing=false - for file in $APPROOT/MacOS/* $Frameworks/* $Frameworks/modules/* $Panners/*.dylib $Surfaces/*.dylib $Plugins/*.so ; do + for file in $APPROOT/MacOS/* $Frameworks/* $Frameworks/modules/* $Panners/*.dylib $Backends/*.dylib $Surfaces/*.dylib $Plugins/*.so ; do if ! file $file | grep -qs Mach-O ; then continue fi @@ -400,6 +409,7 @@ cp -r ../../gtk2_ardour/pixmaps $Resources # shared stuff cp -R ../../gtk2_ardour/splash.png $Shared +cp -R ../../gtk2_ardour/small-splash.png $Shared cp -R ../../gtk2_ardour/ArdourMono.ttf $Shared # go through and recursively remove any .svn dirs in the bundle @@ -428,7 +438,7 @@ done echo "Fixing up library names ..." # now do the same for all the libraries we include -for libdir in $Frameworks $Frameworks/modules $Surfaces $Panners ; do +for libdir in $Frameworks $Frameworks/modules $Surfaces $Panners $Backends ; do libbase=`basename $libdir` @@ -475,6 +485,7 @@ rm -rf $PRODUCT_PKG_DIR mkdir $PRODUCT_PKG_DIR DMGWINBOTTOM=440 +DMGBACKGROUND=dmgbg.png if [ x$SAE != x ] ; then @@ -493,8 +504,9 @@ elif [ x$MIXBUS != x ] ; then echo "Creating Mixbus packaging directory" mv $APPDIR $PRODUCT_PKG_DIR/ cp MixBus_Install_QuickStart.pdf "$PRODUCT_PKG_DIR/Mixbus Install & Quick Start Guide.pdf" - DMGWINBOTTOM=$[ $DMGWINBOTTOM + 100 ] - MIXBUSPOS="set position of item \"MixBus_Install_QuickStart.pdf\" of container window to {90, 180}" + DMGWINBOTTOM=580 + YPOS=$[ $DMGWINBOTTOM - 300 ] + MIXBUSPOS="set position of item \"MixBus_Install_QuickStart.pdf\" of container window to {90, ${YPOS}}" else echo "Creating $APPNAME packaging directory" @@ -504,16 +516,31 @@ fi if test x$WITH_HARVID != x ; then echo "installing video tools.." - # TODO move files to http://ardour.org/files/ - symlink 'latest' - HARVID_VERSION=$(curl http://ardour.org/files/video-tools/harvid_version.txt) - XJADEO_VERSION=$(curl http://ardour.org/files/video-tools/xjadeo_version.txt) + HARVID_VERSION=$(curl -s -S http://ardour.org/files/video-tools/harvid_version.txt) + XJADEO_VERSION=$(curl -s -S http://ardour.org/files/video-tools/xjadeo_version.txt) echo "copying harvid and xjadeo ..." - curl -L -o "$PRODUCT_PKG_DIR/harvid-${HARVID_VERSION}.pkg" "http://x42.github.io/harvid/releases/harvid-${HARVID_VERSION}.pkg" - curl -L -o "$PRODUCT_PKG_DIR/xjadeo-${XJADEO_VERSION:1}.dmg" "http://sourceforge.net/projects/xjadeo/files/xjadeo/${XJADEO_VERSION}/jadeo-${XJADEO_VERSION:1}.dmg/download" - DMGWINBOTTOM=$[ $DMGWINBOTTOM + 140 ] + + rsync -Pa \ + rsync://ardour.org/video-tools/harvid-osx-${HARVID_VERSION}.tgz \ + "$CACHEDIR/harvid-${MULTIARCH}-${HARVID_VERSION}.tgz" + + rsync -Pa \ + rsync://ardour.org/video-tools/jadeo-${XJADEO_VERSION:1}.dmg \ + "$CACHEDIR/jadeo-${XJADEO_VERSION:1}.dmg" + + tar -x -z \ + -C $PRODUCT_PKG_DIR/$APPROOT \ + -f "$CACHEDIR/harvid-${MULTIARCH}-${HARVID_VERSION}.tgz" || exit 1 + + JADEO=$(hdiutil attach "$CACHEDIR/jadeo-${XJADEO_VERSION:1}.dmg" | grep Apple_HFS | grep dev/ | cut -f 3) + cp -r "${JADEO}/Jadeo.app" "$PRODUCT_PKG_DIR/" + hdiutil detach "${JADEO}" + + DMGWINBOTTOM=580 YPOS=$[ $DMGWINBOTTOM - 300 ] - HARVIDPOS="set position of item \"harvid-${HARVID_VERSION}.pkg\" of container window to {90, ${YPOS}}" - XJADEOPOS="set position of item \"xjadeo-${XJADEO_VERSION:1}.dmg\" of container window to {310, ${YPOS}}" + XJADEOPOS="set position of item \"Jadeo.app\" of container window to {310, ${YPOS}}" + + DMGBACKGROUND=dmgbgxj.png fi echo "Building DMG ..." @@ -546,7 +573,7 @@ mount -t hfs "${DiskDevice}" "${MNTPATH}" cp -r ${PRODUCT_PKG_DIR}/* "${MNTPATH}" || exit mkdir "${MNTPATH}/.background" -cp -vi dmgbg.png "${MNTPATH}/.background/dmgbg.png" +cp -vi ${DMGBACKGROUND} "${MNTPATH}/.background/dmgbg.png" echo "setting DMG background ..." @@ -589,7 +616,7 @@ hdiutil eject "${DiskDevice}" hdiutil convert -format UDZO "${TMPDMG}" -imagekey zlib-level=9 -o "${UC_DMG}" # Delete the temporary files rm "$TMPDMG" -rmdir "$MNTPATH" +rm -rf "$MNTPATH" echo "setting file icon ..."