Browse Source

Patch qt for newer mac fix

tags/1.9.8
falkTX 7 years ago
parent
commit
3af13e7d52
1 changed files with 35 additions and 33 deletions
  1. +35
    -33
      data/macos/build-deps.sh

+ 35
- 33
data/macos/build-deps.sh View File

@@ -4,12 +4,12 @@
# automake, autoconf, bison, flex, libtool # automake, autoconf, bison, flex, libtool
# p5-libxml-perl, p5-xml-libxml, p7zip, pkgconfig # p5-libxml-perl, p5-xml-libxml, p7zip, pkgconfig


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# stop on error # stop on error


set -e set -e


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# cd to correct path # cd to correct path


if [ -f Makefile ]; then if [ -f Makefile ]; then
@@ -21,7 +21,7 @@ fi


source common.env source common.env


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# function to remove old stuff # function to remove old stuff


cleanup() cleanup()
@@ -59,7 +59,7 @@ exit 0


} }


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# function to build base libs # function to build base libs


build_base() build_base()
@@ -79,7 +79,7 @@ export CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
export LDFLAGS="-fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip_dylibs" export LDFLAGS="-fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip_dylibs"
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib -m${ARCH}" export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib -m${ARCH}"


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# pkgconfig # pkgconfig


if [ ! -d pkg-config-${PKG_CONFIG_VERSION} ]; then if [ ! -d pkg-config-${PKG_CONFIG_VERSION} ]; then
@@ -97,7 +97,7 @@ if [ ! -f pkg-config-${PKG_CONFIG_VERSION}_$ARCH/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# liblo # liblo


if [ ! -d liblo-${LIBLO_VERSION} ]; then if [ ! -d liblo-${LIBLO_VERSION} ]; then
@@ -117,13 +117,13 @@ if [ ! -f liblo-${LIBLO_VERSION}_$ARCH/build-done ]; then
cd .. cd ..
fi fi


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


if [ x"${ARCH}" = x"32" ]; then if [ x"${ARCH}" = x"32" ]; then
return return
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# file/magic # file/magic


if [ ! -d file-${FILE_VERSION} ]; then if [ ! -d file-${FILE_VERSION} ]; then
@@ -140,7 +140,7 @@ if [ ! -f file-${FILE_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# libogg # libogg


if [ ! -d libogg-${LIBOGG_VERSION} ]; then if [ ! -d libogg-${LIBOGG_VERSION} ]; then
@@ -157,7 +157,7 @@ if [ ! -f libogg-${LIBOGG_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# libvorbis # libvorbis


if [ ! -d libvorbis-${LIBVORBIS_VERSION} ]; then if [ ! -d libvorbis-${LIBVORBIS_VERSION} ]; then
@@ -174,7 +174,7 @@ if [ ! -f libvorbis-${LIBVORBIS_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# flac # flac


if [ ! -d flac-${FLAC_VERSION} ]; then if [ ! -d flac-${FLAC_VERSION} ]; then
@@ -194,7 +194,7 @@ if [ ! -f flac-${FLAC_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# libsndfile # libsndfile


if [ ! -d libsndfile-${LIBSNDFILE_VERSION} ]; then if [ ! -d libsndfile-${LIBSNDFILE_VERSION} ]; then
@@ -212,7 +212,7 @@ if [ ! -f libsndfile-${LIBSNDFILE_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# libgig # libgig


if [ ! -d libgig-${LIBGIG_VERSION} ]; then if [ ! -d libgig-${LIBGIG_VERSION} ]; then
@@ -233,7 +233,7 @@ if [ ! -f libgig-${LIBGIG_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# linuxsampler # linuxsampler


if [ ! -d linuxsampler-${LINUXSAMPLER_VERSION} ]; then if [ ! -d linuxsampler-${LINUXSAMPLER_VERSION} ]; then
@@ -249,8 +249,6 @@ if [ ! -f linuxsampler-${LINUXSAMPLER_VERSION}/build-done ]; then
sed -i -e "s|HAVE_AU|HAVE_VST|" src/hostplugins/Makefile.am sed -i -e "s|HAVE_AU|HAVE_VST|" src/hostplugins/Makefile.am
touch patched touch patched
fi fi
#rm -f configure
#env PATH=/opt/local/bin:$PATH make -f Makefile.svn configure
env PATH=/opt/local/bin:$PATH /opt/local/bin/aclocal -I /opt/local/share/aclocal env PATH=/opt/local/bin:$PATH /opt/local/bin/aclocal -I /opt/local/share/aclocal
env PATH=/opt/local/bin:$PATH /opt/local/bin/glibtoolize --force --copy env PATH=/opt/local/bin:$PATH /opt/local/bin/glibtoolize --force --copy
env PATH=/opt/local/bin:$PATH /opt/local/bin/autoheader env PATH=/opt/local/bin:$PATH /opt/local/bin/autoheader
@@ -272,7 +270,7 @@ if [ ! -f linuxsampler-${LINUXSAMPLER_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# libffi # libffi


if [ ! -d libffi-${LIBFFI_VERSION} ]; then if [ ! -d libffi-${LIBFFI_VERSION} ]; then
@@ -289,7 +287,7 @@ if [ ! -f libffi-${LIBFFI_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# gettext # gettext


if [ ! -d gettext-${GETTEXT_VERSION} ]; then if [ ! -d gettext-${GETTEXT_VERSION} ]; then
@@ -306,7 +304,7 @@ if [ ! -f gettext-${GETTEXT_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# glib # glib


if [ ! -d glib-${GLIB_VERSION} ]; then if [ ! -d glib-${GLIB_VERSION} ]; then
@@ -329,7 +327,7 @@ if [ ! -f glib-${GLIB_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# fluidsynth # fluidsynth


if [ ! -d fluidsynth-${FLUIDSYNTH_VERSION} ]; then if [ ! -d fluidsynth-${FLUIDSYNTH_VERSION} ]; then
@@ -355,7 +353,7 @@ fi


} }


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# build base libs # build base libs


export ARCH=32 export ARCH=32
@@ -364,7 +362,7 @@ build_base
export ARCH=64 export ARCH=64
build_base build_base


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# set flags for qt stuff # set flags for qt stuff


export PREFIX=${TARGETDIR}/carla export PREFIX=${TARGETDIR}/carla
@@ -381,7 +379,7 @@ export MAKE=/usr/bin/make
export CFG_ARCH=x86_64 export CFG_ARCH=x86_64
export QMAKESPEC=macx-clang export QMAKESPEC=macx-clang


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# qt5-base download # qt5-base download


if [ ! -d qtbase-opensource-src-${QT5_VERSION} ]; then if [ ! -d qtbase-opensource-src-${QT5_VERSION} ]; then
@@ -390,13 +388,17 @@ if [ ! -d qtbase-opensource-src-${QT5_VERSION} ]; then
/opt/local/bin/7z x qtbase-opensource-src-${QT5_VERSION}.tar /opt/local/bin/7z x qtbase-opensource-src-${QT5_VERSION}.tar
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# qt5-base (64bit, shared, framework) # qt5-base (64bit, shared, framework)


if [ ! -f qtbase-opensource-src-${QT5_VERSION}/build-done ]; then if [ ! -f qtbase-opensource-src-${QT5_VERSION}/build-done ]; then
cd qtbase-opensource-src-${QT5_VERSION} cd qtbase-opensource-src-${QT5_VERSION}
if [ ! -f configured ]; then if [ ! -f configured ]; then
sed -i -e "s|AWK=.*|AWK=/opt/local/bin/gawk|" configure
if [ ! -f carla-patched ]; then
sed -i -e "s|AWK=.*|AWK=/opt/local/bin/gawk|" configure
patch -p1 -i ../patches/qt55-newosx-fix.patch
touch carla-patched
fi
chmod +x configure chmod +x configure
chmod -R 777 config.tests/unix/ chmod -R 777 config.tests/unix/
./configure -release -shared -opensource -confirm-license -force-pkg-config -platform macx-clang -framework \ ./configure -release -shared -opensource -confirm-license -force-pkg-config -platform macx-clang -framework \
@@ -462,7 +464,7 @@ QT59_ARGS="./configure -prefix ${PREFIX} -plugindir ${PREFIX}/lib/qt5/plugins -h
-qt-sqlite -qt-sqlite
" "


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# qt5-mac-extras # qt5-mac-extras


if [ ! -d qtmacextras-opensource-src-${QT5_VERSION} ]; then if [ ! -d qtmacextras-opensource-src-${QT5_VERSION} ]; then
@@ -480,7 +482,7 @@ if [ ! -f qtmacextras-opensource-src-${QT5_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# qt5-svg # qt5-svg


if [ ! -d qtsvg-opensource-src-${QT5_VERSION} ]; then if [ ! -d qtsvg-opensource-src-${QT5_VERSION} ]; then
@@ -498,7 +500,7 @@ if [ ! -f qtsvg-opensource-src-${QT5_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# python # python


if [ ! -d Python-${PYTHON_VERSION} ]; then if [ ! -d Python-${PYTHON_VERSION} ]; then
@@ -515,7 +517,7 @@ if [ ! -f Python-${PYTHON_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# sip # sip


if [ ! -d sip-${SIP_VERSION} ]; then if [ ! -d sip-${SIP_VERSION} ]; then
@@ -532,7 +534,7 @@ if [ ! -f sip-${SIP_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# pyqt5 # pyqt5


if [ ! -d PyQt-gpl-${PYQT5_VERSION} ]; then if [ ! -d PyQt-gpl-${PYQT5_VERSION} ]; then
@@ -549,7 +551,7 @@ if [ ! -f PyQt-gpl-${PYQT5_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# pyliblo # pyliblo


if [ ! -d pyliblo-${PYLIBLO_VERSION} ]; then if [ ! -d pyliblo-${PYLIBLO_VERSION} ]; then
@@ -566,7 +568,7 @@ if [ ! -f pyliblo-${PYLIBLO_VERSION}/build-done ]; then
cd .. cd ..
fi fi


# ------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# cxfreeze # cxfreeze


if [ ! -d cx_Freeze-${CXFREEZE_VERSION} ]; then if [ ! -d cx_Freeze-${CXFREEZE_VERSION} ]; then
@@ -583,4 +585,4 @@ if [ ! -f cx_Freeze-${CXFREEZE_VERSION}/build-done ]; then
cd .. cd ..
fi fi


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

Loading…
Cancel
Save