From 97e3715cb49ad4e5fce515650c76b965342013f1 Mon Sep 17 00:00:00 2001 From: Popvue Date: Thu, 22 Oct 2026 18:13:42 +0000 Subject: [PATCH 1/8] Popvue: build without zvbi (GPL 2 only packet-830.c), use telx for teletext; tolerate newer clang --- buildMobileVLCKit.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/buildMobileVLCKit.sh b/buildMobileVLCKit.sh index 6154b916..02c29053 100755 --- a/buildMobileVLCKit.sh +++ b/buildMobileVLCKit.sh @@ -434,7 +434,9 @@ buildLibVLC() { fi EXTRA_LDFLAGS+=" -Wl,${PLATFORM_VERSION}" - export CFLAGS="${EXTRA_CFLAGS}" + # Popvue: Xcode 16+ clang makes these errors by default; 3.0.x contribs predate that. + COMPAT_CFLAGS="-Wno-error=implicit-function-declaration -Wno-error=int-conversion -Wno-error=incompatible-function-pointer-types -Wno-error=incompatible-pointer-types" + export CFLAGS="${EXTRA_CFLAGS} ${COMPAT_CFLAGS}" export CPPFLAGS="${EXTRA_CFLAGS}" export CXXFLAGS="${EXTRA_CFLAGS}" export OBJCFLAGS="${EXTRA_CFLAGS}" @@ -542,7 +544,7 @@ buildLibVLC() { --disable-sdl \ --disable-SDL_image \ --disable-iconv \ - --enable-zvbi \ + --disable-zvbi \ --disable-kate \ --disable-caca \ --disable-gettext \ @@ -625,11 +627,13 @@ buildLibVLC() { if [ "$DEBUG" = "yes" ]; then DEBUGFLAG="--enable-debug" else - export CFLAGS="${EXTRA_CFLAGS} -DNDEBUG" + export CFLAGS="${EXTRA_CFLAGS} ${COMPAT_CFLAGS} -DNDEBUG" fi if [ "$SCARY" = "yes" ]; then - SCARYFLAG="--enable-dvbpsi --enable-avcodec" + # Popvue: no zvbi (GPL 2 only code in packet-830.c); telx, VLC's own LGPL teletext + # decoder, handles teletext subtitles instead. + SCARYFLAG="--enable-dvbpsi --enable-avcodec --disable-zvbi --enable-telx" else SCARYFLAG="--disable-dca --disable-dvbpsi --disable-avcodec --disable-avformat --disable-zvbi --enable-vpx" fi -- 2.50.1 (Apple Git-155)