From: Robin Gareus Date: Wed, 23 Nov 2016 20:39:11 +0000 (+0100) Subject: another hack to accommodate different project names X-Git-Tag: 5.5~67 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=e2012bc5e49618b8f9624f5e6a7dcd94e20405d7 another hack to accommodate different project names Mixbus32C-$MAJOR + Mixbus32C (dash before major version) vs Ardour$MAJOR + Ardour vs Mixbus$MAJOR + Mixbus --- diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index 1099f17f66..a9343640ff 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -43,6 +43,8 @@ while [ $# -gt 0 ] ; do STRIP= ; PRODUCT_PKG_DIR=ArdourSAE ; APPNAME=Ardour ; + BUNDLENAME=Ardour${major_version} ; + lower_case_appname=ardour; shift ;; --mixbus) MIXBUS=1; WITH_HARRISON_LV2=1 ; @@ -52,6 +54,8 @@ while [ $# -gt 0 ] ; do STRIP= ; PRODUCT_PKG_DIR=Mixbus; APPNAME=Mixbus ; + BUNDLENAME=Mixbus${major_version} ; + lower_case_appname=mixbus; shift ;; --mixbus32c) MIXBUS=1; MIXBUS32C=1; @@ -61,8 +65,9 @@ while [ $# -gt 0 ] ; do SAE= ; STRIP= ; PRODUCT_PKG_DIR=Mixbus32C; + lower_case_appname=mixbus32c; APPNAME=Mixbus32C-${major_version} ; - major_version="" + BUNDLENAME=Mixbus32C-${major_version} ; shift ;; --public) SAE= ; @@ -70,6 +75,8 @@ while [ $# -gt 0 ] ; do WITH_X42_LV2=1 ; PRODUCT_PKG_DIR=Ardour; APPNAME=Ardour ; + BUNDLENAME=Ardour${major_version} ; + lower_case_appname=ardour; shift ;; --allinone) SAE= ; STRIP= ; @@ -113,11 +120,9 @@ else fi fi -lower_case_appname=`echo $APPNAME | tr '[:upper:]' '[:lower:]'` - # setup directory structure -APPDIR=${APPNAME}${major_version}.app +APPDIR=${BUNDLENAME}.app APPROOT=$APPDIR/Contents Frameworks=$APPROOT/lib Resources=$APPROOT/Resources @@ -182,36 +187,16 @@ mkdir -p $PatchFiles mkdir -p $LuaScripts mkdir -p $Themes -# maybe set variables -env="" -if test x$SAE != x ; then - appname="Ardour${major_version}-SAE" - EXECUTABLE=${appname} - env="$envARDOUR_SAEtrue" - # - # current default for SAE version is German keyboard layout without a keypad - # - env="$envARDOUR_KEYBOARD_LAYOUTde-nokeypad" - env="$envARDOUR_UI_CONFardour3_ui_sae.conf" -elif test x$MIXBUS != x ; then - appname=$APPNAME - EXECUTABLE=${appname}${major_version} - env="$envARDOUR_MIXBUStrue" - # - # current default for MIXBUS version is US keyboard layout without a keypad - # - env="$envARDOUR_KEYBOARD_LAYOUTus-nokeypad" - env="$envARDOUR_UI_CONFardour3_ui.conf" -else - appname="Ardour${major_version}" - EXECUTABLE=${appname} -fi + + +EXECUTABLE=${BUNDLENAME} # # if we're not going to bundle JACK, make sure we can find # jack in the places where it might be # +env="" env="$envPATH/usr/local/bin:/opt/bin:/usr/bin:/bin:/usr/sbin:/sbin" env="$envDYLIB_FALLBACK_LIBRARY_PATH/usr/local/lib:/opt/lib" @@ -223,7 +208,7 @@ sed -e "s?@ENV@?$env?g" \ -e "s?@VERSION@?$release_version?g" \ -e "s?@INFOSTRING@?$info_string?g" \ -e "s?@IDSUFFIX@?$EXECUTABLE?g" \ - -e "s?@BUNDLENAME@?${APPNAME}${major_version}?g" \ + -e "s?@BUNDLENAME@?$BUNDLENAME?g" \ -e "s?@EXECUTABLE@?$EXECUTABLE?g" < Info.plist.in > Info.plist # and plist strings sed -e "s?@APPNAME@?$appname?" \