From 6454c590a2b5402195e655b1386358210e067dfd Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 15 Jun 2017 10:32:32 +0100 Subject: [PATCH] Update osx build scripts --- utils/pack-macos-10.06.sh | 12 ++++---- utils/pack-macos-10.08.sh | 59 +++++++++++++++++++++++++++++++++++++++ utils/pack-macos-10.10.sh | 12 ++++---- 3 files changed, 71 insertions(+), 12 deletions(-) create mode 100755 utils/pack-macos-10.08.sh diff --git a/utils/pack-macos-10.06.sh b/utils/pack-macos-10.06.sh index 470457c1..faa5b6a8 100755 --- a/utils/pack-macos-10.06.sh +++ b/utils/pack-macos-10.06.sh @@ -40,14 +40,14 @@ export MACOS_OLD="true" make -C .. clean make HAVE_JACK=false HAVE_LIBLO=false HAVE_PROJM=false -C .. -j 4 rm -rf *ladspa* *dssi* -mkdir -p "$NAME-macos" -mv *.lv2 *.vst "$NAME-macos" +mkdir -p "$NAME-macOS" +mv *.lv2 *.vst "$NAME-macOS" for MODGUI in ${MODGUIS[@]}; do - cp -r ../modguis/$MODGUI.modgui/modgui "$NAME-macos"/$MODGUI.lv2/ - cp ../modguis/$MODGUI.modgui/manifest.ttl "$NAME-macos"/$MODGUI.lv2/modgui.ttl + cp -r ../modguis/$MODGUI.modgui/modgui "$NAME-macOS"/$MODGUI.lv2/ + cp ../modguis/$MODGUI.modgui/manifest.ttl "$NAME-macOS"/$MODGUI.lv2/modgui.ttl done -cp "../utils/README-MacOS.txt" "$NAME-macos/README.txt" -compressFolderAsZip "$NAME-macos" +cp "../utils/README-MacOS.txt" "$NAME-macOS/README.txt" +compressFolderAsZip "$NAME-macOS" rm -rf tmp/* make -C .. clean diff --git a/utils/pack-macos-10.08.sh b/utils/pack-macos-10.08.sh new file mode 100755 index 00000000..44348228 --- /dev/null +++ b/utils/pack-macos-10.08.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +set -e + +MODGUIS=("Kars" "MVerb" "MVerb" "Nekobi" "PingPongPan") + +# -------------------------------------------------------------------------------------------------------------------------------- +# extract debs and pack them + +function compressFolderAsZip() { +rm -f "$1.zip" +zip -X -r "$1" "$1" +rm -r "$1" +} + +# -------------------------------------------------------------------------------------------------------------------------------- + +if [ "$1" == "" ]; then +echo Missing argument +exit +fi + +sed -i -e "s|-MD -MP|-D_MD_MP_WORKAROUND|" */*.mk dpf/dgl/*.mk + +# -------------------------------------------------------------------------------------------------------------------------------- + +cd bin + +mkdir -p tmp +rm -rf tmp/* + +NAME="$1" + +export CFLAGS="-mmacosx-version-min=10.5 -DMAC_OS_X_VERSION_MAX_ALLOWED=1060 -arch i386 -arch x86_64 -mfpmath=sse" +export CXXFLAGS="$CFLAGS" +export LDFLAGS="$CFLAGS" +export MACOS="true" +export MACOS_OLD="true" + +make -C .. clean +make HAVE_JACK=false HAVE_LIBLO=false HAVE_PROJM=false -C .. -j 2 +rm -rf *ladspa* *dssi* +mkdir -p "$NAME-macOS" +mv *.lv2 *.vst "$NAME-macOS" +for MODGUI in ${MODGUIS[@]}; do + cp -r ../modguis/$MODGUI.modgui/modgui "$NAME-macOS"/$MODGUI.lv2/ + cp ../modguis/$MODGUI.modgui/manifest.ttl "$NAME-macOS"/$MODGUI.lv2/modgui.ttl +done +cp "../utils/README-MacOS.txt" "$NAME-macOS/README.txt" +compressFolderAsZip "$NAME-macOS" +rm -rf tmp/* + +make -C .. clean + +cd .. + +# -------------------------------------------------------------------------------------------------------------------------------- + +sed -i -e "s|-D_MD_MP_WORKAROUND|-MD -MP|" */*.mk dpf/dgl/*.mk diff --git a/utils/pack-macos-10.10.sh b/utils/pack-macos-10.10.sh index c7d94ae2..eb22af7c 100755 --- a/utils/pack-macos-10.10.sh +++ b/utils/pack-macos-10.10.sh @@ -39,14 +39,14 @@ export MACOS="true" make -C .. clean make HAVE_JACK=false HAVE_LIBLO=false HAVE_PROJM=false -C .. -j 4 rm -rf *ladspa* *dssi* -mkdir -p "$NAME-macos" -mv *.lv2 *.vst "$NAME-macos" +mkdir -p "$NAME-macOS" +mv *.lv2 *.vst "$NAME-macOS" for MODGUI in ${MODGUIS[@]}; do - cp -r ../modguis/$MODGUI.modgui/modgui "$NAME-macos"/$MODGUI.lv2/ - cp ../modguis/$MODGUI.modgui/manifest.ttl "$NAME-macos"/$MODGUI.lv2/modgui.ttl + cp -r ../modguis/$MODGUI.modgui/modgui "$NAME-macOS"/$MODGUI.lv2/ + cp ../modguis/$MODGUI.modgui/manifest.ttl "$NAME-macOS"/$MODGUI.lv2/modgui.ttl done -cp "../utils/README-MacOS.txt" "$NAME-macos/README.txt" -compressFolderAsZip "$NAME-macos" +cp "../utils/README-MacOS.txt" "$NAME-macOS/README.txt" +compressFolderAsZip "$NAME-macOS" rm -rf tmp/* make -C .. clean