Skip to content

Commit

Permalink
Update osx build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Jun 15, 2017
1 parent ad74a88 commit 6454c59
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 12 deletions.
12 changes: 6 additions & 6 deletions utils/pack-macos-10.06.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
59 changes: 59 additions & 0 deletions utils/pack-macos-10.08.sh
Original file line number Diff line number Diff line change
@@ -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
12 changes: 6 additions & 6 deletions utils/pack-macos-10.10.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6454c59

Please sign in to comment.