Browse Source

Start mac os build script, WIP

tags/v1.0
falkTX 9 years ago
parent
commit
c21b0bfff1
2 changed files with 72 additions and 0 deletions
  1. +13
    -0
      utils/README-MacOS.txt
  2. +59
    -0
      utils/pack-mac-bundles.sh

+ 13
- 0
utils/README-MacOS.txt View File

@@ -0,0 +1,13 @@
#############################
## README for DPF Plugins ##
This folder contains audio plugins downloaded from https://github.com/DISTRHO/DPF-Plugins/releases
The included *.lv2 folders are LV2 bundles and the *.vst bundles are VSTs.
Check your host documentation to know where to place these files.
Note that most hosts support VST but not LV2.
If your host is not listing these plugins, make sure the binaries you downloaded match your host architecture.
32bit plugins go into 32bit hosts, same for 64bit.
Some hosts are able to load plugins with different architecture, but that's the exception rather than the rule.

+ 59
- 0
utils/pack-mac-bundles.sh View File

@@ -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 "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=1050 -arch i386 -arch x86_64"
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 4
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

Loading…
Cancel
Save