-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
falkTX
committed
Jun 15, 2017
1 parent
ad74a88
commit 6454c59
Showing
3 changed files
with
71 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters