Update PortAudio patch to reflect version macOS SDK 11.3.

pull/134/head
Mooneer Salem 2021-05-25 23:52:04 -07:00
parent 304de78750
commit 12925dc963
1 changed files with 18 additions and 6 deletions

View File

@ -1,7 +1,7 @@
diff -ur portaudio.orig/configure portaudio/configure
--- portaudio.orig/configure 2020-11-19 17:23:04.000000000 -0800
+++ portaudio/configure 2020-12-01 20:56:35.000000000 -0800
@@ -15884,13 +15884,19 @@
+++ portaudio/configure 2021-05-25 22:24:37.000000000 -0700
@@ -15884,13 +15884,25 @@
elif xcodebuild -version -sdk macosx10.15 Path >/dev/null 2>&1 ; then
mac_version_min="-mmacosx-version-min=10.4"
mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.15 Path`"
@ -11,9 +11,15 @@ diff -ur portaudio.orig/configure portaudio/configure
+ elif xcodebuild -version -sdk macosx11.1 Path >/dev/null 2>&1 ; then
+ mac_version_min="-mmacosx-version-min=10.9"
+ mac_sysroot="-isysroot `xcodebuild -version -sdk macosx11.1 Path`"
+ elif xcodebuild -version -sdk macosx11.2 Path >/dev/null 2>&1 ; then
+ mac_version_min="-mmacosx-version-min=10.9"
+ mac_sysroot="-isysroot `xcodebuild -version -sdk macosx11.2 Path`"
+ elif xcodebuild -version -sdk macosx11.3 Path >/dev/null 2>&1 ; then
+ mac_version_min="-mmacosx-version-min=10.9"
+ mac_sysroot="-isysroot `xcodebuild -version -sdk macosx11.3 Path`"
else
- as_fn_error $? "Could not find 10.5 to 10.13 SDK." "$LINENO" 5
+ as_fn_error $? "Could not find 10.5 to 11.1 SDK." "$LINENO" 5
+ as_fn_error $? "Could not find 10.5 to 11.3 SDK." "$LINENO" 5
fi
esac
@ -25,8 +31,8 @@ diff -ur portaudio.orig/configure portaudio/configure
CFLAGS="$CFLAGS -arch $arch"
diff -ur portaudio.orig/configure.in portaudio/configure.in
--- portaudio.orig/configure.in 2020-11-19 17:23:04.000000000 -0800
+++ portaudio/configure.in 2020-12-01 20:56:55.000000000 -0800
@@ -267,15 +267,21 @@
+++ portaudio/configure.in 2021-05-25 22:25:12.000000000 -0700
@@ -267,15 +267,27 @@
elif xcodebuild -version -sdk macosx10.15 Path >/dev/null 2>&1 ; then
mac_version_min="-mmacosx-version-min=10.4"
mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.15 Path`"
@ -36,9 +42,15 @@ diff -ur portaudio.orig/configure.in portaudio/configure.in
+ elif xcodebuild -version -sdk macosx11.1 Path >/dev/null 2>&1 ; then
+ mac_version_min="-mmacosx-version-min=10.9"
+ mac_sysroot="-isysroot `xcodebuild -version -sdk macosx11.1 Path`"
+ elif xcodebuild -version -sdk macosx11.2 Path >/dev/null 2>&1 ; then
+ mac_version_min="-mmacosx-version-min=10.9"
+ mac_sysroot="-isysroot `xcodebuild -version -sdk macosx11.2 Path`"
+ elif xcodebuild -version -sdk macosx11.3 Path >/dev/null 2>&1 ; then
+ mac_version_min="-mmacosx-version-min=10.9"
+ mac_sysroot="-isysroot `xcodebuild -version -sdk macosx11.3 Path`"
else
- AC_MSG_ERROR([Could not find 10.5 to 10.13 SDK.])
+ AC_MSG_ERROR([Could not find 10.5 to 11.1 SDK.])
+ AC_MSG_ERROR([Could not find 10.5 to 11.3 SDK.])
fi
esac