From 96261985301f2c1bde74d3538aa167c51a12b301 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 20 Dec 2020 13:18:06 +0200 Subject: [PATCH] patch vpx to disable detection of sdk and deployment target --- patch/vpx.patch | 89 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 patch/vpx.patch diff --git a/patch/vpx.patch b/patch/vpx.patch new file mode 100644 index 00000000..dd85bc90 --- /dev/null +++ b/patch/vpx.patch @@ -0,0 +1,89 @@ +--- /Volumes/ramdisk/libvpx-1.9.0/build/make/configure.sh 2020-07-30 22:59:15.000000000 +0300 ++++ /Volumes/ramdisk/zdoom-macos-deps/source/vpx/libvpx-1.9.0/build/make/configure.sh 2020-12-20 13:14:55.000000000 +0200 +@@ -842,86 +842,6 @@ + IOS_VERSION_MIN="7.0" + fi + +- # Handle darwin variants. Newer SDKs allow targeting older +- # platforms, so use the newest one available. +- case ${toolchain} in +- arm*-darwin*) +- add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}" +- iphoneos_sdk_dir="$(show_darwin_sdk_path iphoneos)" +- if [ -d "${iphoneos_sdk_dir}" ]; then +- add_cflags "-isysroot ${iphoneos_sdk_dir}" +- add_ldflags "-isysroot ${iphoneos_sdk_dir}" +- fi +- ;; +- x86*-darwin*) +- osx_sdk_dir="$(show_darwin_sdk_path macosx)" +- if [ -d "${osx_sdk_dir}" ]; then +- add_cflags "-isysroot ${osx_sdk_dir}" +- add_ldflags "-isysroot ${osx_sdk_dir}" +- fi +- ;; +- esac +- +- case ${toolchain} in +- *-darwin8-*) +- add_cflags "-mmacosx-version-min=10.4" +- add_ldflags "-mmacosx-version-min=10.4" +- ;; +- *-darwin9-*) +- add_cflags "-mmacosx-version-min=10.5" +- add_ldflags "-mmacosx-version-min=10.5" +- ;; +- *-darwin10-*) +- add_cflags "-mmacosx-version-min=10.6" +- add_ldflags "-mmacosx-version-min=10.6" +- ;; +- *-darwin11-*) +- add_cflags "-mmacosx-version-min=10.7" +- add_ldflags "-mmacosx-version-min=10.7" +- ;; +- *-darwin12-*) +- add_cflags "-mmacosx-version-min=10.8" +- add_ldflags "-mmacosx-version-min=10.8" +- ;; +- *-darwin13-*) +- add_cflags "-mmacosx-version-min=10.9" +- add_ldflags "-mmacosx-version-min=10.9" +- ;; +- *-darwin14-*) +- add_cflags "-mmacosx-version-min=10.10" +- add_ldflags "-mmacosx-version-min=10.10" +- ;; +- *-darwin15-*) +- add_cflags "-mmacosx-version-min=10.11" +- add_ldflags "-mmacosx-version-min=10.11" +- ;; +- *-darwin16-*) +- add_cflags "-mmacosx-version-min=10.12" +- add_ldflags "-mmacosx-version-min=10.12" +- ;; +- *-darwin17-*) +- add_cflags "-mmacosx-version-min=10.13" +- add_ldflags "-mmacosx-version-min=10.13" +- ;; +- *-darwin18-*) +- add_cflags "-mmacosx-version-min=10.14" +- add_ldflags "-mmacosx-version-min=10.14" +- ;; +- *-darwin19-*) +- add_cflags "-mmacosx-version-min=10.15" +- add_ldflags "-mmacosx-version-min=10.15" +- ;; +- *-iphonesimulator-*) +- add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}" +- add_ldflags "-miphoneos-version-min=${IOS_VERSION_MIN}" +- iossim_sdk_dir="$(show_darwin_sdk_path iphonesimulator)" +- if [ -d "${iossim_sdk_dir}" ]; then +- add_cflags "-isysroot ${iossim_sdk_dir}" +- add_ldflags "-isysroot ${iossim_sdk_dir}" +- fi +- ;; +- esac +- + # Handle Solaris variants. Solaris 10 needs -lposix4 + case ${toolchain} in + sparc-solaris-*)