Skip to content

Commit

Permalink
use PortAudio fork with macOS 11 support
Browse files Browse the repository at this point in the history
The latest stable PortAudio uses a deprecated API which has been
removed on macOS 11.
PortAudio/portaudio#356
PortAudio/portaudio#218
  • Loading branch information
Be-ing committed Dec 6, 2020
1 parent 55d9a17 commit 1ffac36
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-environment-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
set -x
# remove last number (patch number) from version number because Qt's configure script doesn't work with it
if [[ $(xcrun --show-sdk-version) =~ ([0-9]*\.[0-9]*)(.[0-9]*)? ]]; then
if [[ "10.15" =~ ([0-9]*\.[0-9]*)(.[0-9]*)? ]]; then
export MACOSX_SDK=${BASH_REMATCH[1]}
else
echo "macOS SDK version did not match expected format"
Expand Down
16 changes: 9 additions & 7 deletions scripts/macosx/build_portaudio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ pushd `dirname $0` > /dev/null
PROGDIR=`pwd -P`
popd > /dev/null

export VERSION_NUMBER=20161030
export VERSION=pa_stable_v190600_${VERSION_NUMBER}
export ARCHIVE=$VERSION.tgz
# export VERSION_NUMBER=20161030
# export VERSION=pa_stable_v190600_${VERSION_NUMBER}
export VERSION=f6cf12b7fffa66791194d7f368f220f81f9c1230
# export ARCHIVE=$VERSION.tgz

echo "Building $VERSION for $MIXXX_ENVIRONMENT_NAME for architectures: ${MIXXX_ARCHS[@]}"

Expand All @@ -23,9 +24,10 @@ export STATICLIB=lib/.libs/libportaudio.a

for ARCH in ${MIXXX_ARCHS[@]}
do
mkdir -p $VERSION-$ARCH
tar -zxf $DEPENDENCIES/$ARCHIVE -C $VERSION-$ARCH --strip-components 1
cd $VERSION-$ARCH
# mkdir -p $VERSION-$ARCH
# tar -zxf $DEPENDENCIES/$ARCHIVE -C $VERSION-$ARCH --strip-components 1
# cd $VERSION-$ARCH
cd $DEPENDENCIES/portaudio
source $PROGDIR/environment.sh $ARCH

# As of the PA 2011/3/26 snapshot, a deprecated API function of CoreAudio is
Expand All @@ -37,7 +39,7 @@ do
# Mac universal in this case includes ppc64 which we aren't supporting.
./configure --host $HOST --target $TARGET --prefix=$MIXXX_PREFIX --disable-mac-universal
make
cd ..
cd $DEPENDENCIES
done

# Install the $HOST_ARCH version in case there are binaries we want to run.
Expand Down
9 changes: 8 additions & 1 deletion scripts/macosx/download_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ download_and_verify https://www.openssl.org/source/openssl-1.0.2u.tar.gz ecd0c6f
download_and_verify http://downloads.xiph.org/releases/ogg/libogg-1.3.3.tar.xz 4f3fc6178a533d392064f14776b23c397ed4b9f48f5de297aba73b643f955c08
download_and_verify https://ftp.osuosl.org/pub/xiph/releases/opus/opus-1.3.1.tar.gz 65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d
download_and_verify https://ftp.osuosl.org/pub/xiph/releases/opus/opusfile-0.12.tar.gz 118d8601c12dd6a44f52423e68ca9083cc9f2bfe72da7a8c1acb22a80ae3550b
download_and_verify http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513
# download_and_verify http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513
git init portaudio
cd portaudio
git remote add jmelas https://github.com/jmelas/portaudio.git
git fetch --depth=1 jmelas f6cf12b7fffa66791194d7f368f220f81f9c1230
git checkout f6cf12b7fffa66791194d7f368f220f81f9c1230
cd ..

download_and_verify http://downloads.sourceforge.net/project/portmedia/portmidi/217/portmidi-src-217.zip 08e9a892bd80bdb1115213fb72dc29a7bf2ff108b378180586aa65f3cfd42e0f
download_and_verify https://github.com/google/protobuf/archive/v2.6.1.tar.gz 2667b7cda4a6bc8a09e5463adf3b5984e08d94e72338277affa8594d8b6e5cd1 protobuf-2.6.1.tar.gz
#download_and_verify https://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0
Expand Down

0 comments on commit 1ffac36

Please sign in to comment.