Browse Source

Fix OSX build scripts, split for 10.6 and 10.10 host

tags/v1.0
falkTX 9 years ago
parent
commit
f37c06323a
5 changed files with 66 additions and 4 deletions
  1. +2
    -0
      .gitignore
  2. +1
    -1
      dpf/distrho/DistrhoUtils.hpp
  3. +3
    -1
      dpf/distrho/src/DistrhoDefines.h
  4. +2
    -2
      utils/pack-macos-10.06.sh
  5. +58
    -0
      utils/pack-macos-10.10.sh

+ 2
- 0
.gitignore View File

@@ -2,11 +2,13 @@
*.d
*.o

*-e
*.exe
*.dll
*.dylib
*.so
*.zip

.DS_Store
bin/*
dpf/utils/lv2_ttl_generator

+ 1
- 1
dpf/distrho/DistrhoUtils.hpp View File

@@ -33,7 +33,7 @@
# include <stdint.h>
#endif

#if defined(DISTRHO_OS_MAC) && ! defined(CARLA_OS_MAC) && ! defined(__clang__)
#if defined(DISTRHO_OS_MAC) && ! defined(CARLA_OS_MAC) && ! (defined(DISTRHO_PROPER_CPP11_SUPPORT) && defined(__clang__))
namespace std {
inline float fmin(float __x, float __y)
{ return __builtin_fminf(__x, __y); }


+ 3
- 1
dpf/distrho/src/DistrhoDefines.h View File

@@ -55,7 +55,9 @@

/* Check for C++11 support */
#if defined(HAVE_CPP11_SUPPORT)
# define DISTRHO_PROPER_CPP11_SUPPORT
# if HAVE_CPP11_SUPPORT
# define DISTRHO_PROPER_CPP11_SUPPORT
# endif
#elif __cplusplus >= 201103L || (defined(__GNUC__) && defined(__GXX_EXPERIMENTAL_CXX0X__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 405) || __has_extension(cxx_noexcept)
# define DISTRHO_PROPER_CPP11_SUPPORT
# if (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) < 407 && ! defined(__clang__)) || (defined(__clang__) && ! __has_extension(cxx_override_control))


utils/pack-macos-cross.sh → utils/pack-macos-10.06.sh View File

@@ -20,7 +20,7 @@ echo Missing argument
exit
fi

sed -i "s|-MD -MP|-D_MD_MP_WORKAROUND|" */*.mk dpf/dgl/*.mk
sed -i -e "s|-MD -MP|-D_MD_MP_WORKAROUND|" */*.mk dpf/dgl/*.mk

# --------------------------------------------------------------------------------------------------------------------------------

@@ -31,7 +31,7 @@ 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 CFLAGS="-mmacosx-version-min=10.5 -DMAC_OS_X_VERSION_MAX_ALLOWED=1060 -arch i386 -arch x86_64"
export CXXFLAGS=$CFLAGS
export LDFLAGS=$CFLAGS
export MACOS="true"

+ 58
- 0
utils/pack-macos-10.10.sh View File

@@ -0,0 +1,58 @@
#!/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 -DHAVE_CPP11_SUPPORT=0"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="$CFLAGS"
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"
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