From b0ad44bc69f83e29dae994ff1d262ffa70232d7f Mon Sep 17 00:00:00 2001 From: Popvue Date: Thu, 22 Oct 2026 18:31:09 +0000 Subject: [PATCH 5/8] Popvue: libvlc patch for libpng with the iOS 18+ SDKs --- ...ntrib-png-build-with-the-iOS-18-SDKs.patch | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 libvlc/patches/0051-contrib-png-build-with-the-iOS-18-SDKs.patch diff --git a/libvlc/patches/0051-contrib-png-build-with-the-iOS-18-SDKs.patch b/libvlc/patches/0051-contrib-png-build-with-the-iOS-18-SDKs.patch new file mode 100644 index 00000000..7d7b90e5 --- /dev/null +++ b/libvlc/patches/0051-contrib-png-build-with-the-iOS-18-SDKs.patch @@ -0,0 +1,45 @@ +From bc2295e3b17b70229340c9f874758b3f4ba49b33 Mon Sep 17 00:00:00 2001 +From: Popvue +Date: Thu, 22 Oct 2026 18:30:57 +0000 +Subject: [PATCH] contrib: png: build with the iOS 18+ SDKs + +libpng 1.6.37 includes the classic Mac OS whenever TARGET_OS_MAC is defined, which the +newer Apple SDKs always define; libpng 1.6.44 dropped the TARGET_OS_MAC test. +--- + contrib/src/png/no-fp-h.patch | 11 +++++++++++ + contrib/src/png/rules.mak | 1 + + 2 files changed, 12 insertions(+) + create mode 100644 contrib/src/png/no-fp-h.patch + +diff --git a/contrib/src/png/no-fp-h.patch b/contrib/src/png/no-fp-h.patch +new file mode 100644 +index 0000000000..7ed575d275 +--- /dev/null ++++ b/contrib/src/png/no-fp-h.patch +@@ -0,0 +1,11 @@ ++--- a/pngpriv.h 2026-10-22 18:30:57 +++++ b/pngpriv.h 2026-10-22 18:30:57 ++@@ -518,7 +518,7 @@ ++ # include ++ ++ # if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \ ++- defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC) +++ defined(THINK_C) || defined(__SC__) ++ /* We need to check that hasn't already been included earlier ++ * as it seems it doesn't agree with , yet we should really use ++ * if possible. +diff --git a/contrib/src/png/rules.mak b/contrib/src/png/rules.mak +index 7a8db11d5a..736e18b0a3 100644 +--- a/contrib/src/png/rules.mak ++++ b/contrib/src/png/rules.mak +@@ -17,6 +17,7 @@ png: libpng-$(PNG_VERSION).tar.xz .sum-png + $(APPLY) $(SRC)/png/winrt.patch + $(APPLY) $(SRC)/png/bins.patch + $(APPLY) $(SRC)/png/automake.patch ++ $(APPLY) $(SRC)/png/no-fp-h.patch + $(call pkg_static,"libpng.pc.in") + $(MOVE) + +-- +2.50.1 (Apple Git-155) + -- 2.50.1 (Apple Git-155)