From 74d8eface9fb6bc828253145d09b1aa1cda4564c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Wed, 30 Sep 2015 23:00:35 +0200
Subject: [PATCH] iOS build script: disable NEON assembly for tvOS

---
 extras/package/ios/build.sh | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
index e0b4fc5962df..c2a14623f987 100755
--- a/extras/package/ios/build.sh
+++ b/extras/package/ios/build.sh
@@ -100,8 +100,6 @@ if [ "$VERBOSE" = "yes" ]; then
    out="/dev/stdout"
 fi
 
-info "Building libvlc for iOS"
-
 TARGET="${ARCH}-apple-darwin11"
 
 # apple doesn't call AArch64 that way, but arm64 (a contrario to all libraries)
@@ -124,6 +122,8 @@ if [ "$TVOS" = "yes" ]; then
 fi
 export BUILDFORIOS="yes"
 
+info "Building libvlc for Apple embedded OS style '${OSSTYLE}'"
+
 info "Using ${ARCH} with SDK version ${SDK_VERSION}"
 
 THIS_SCRIPT_PATH=`pwd`/$0
@@ -287,9 +287,8 @@ fi
 
 echo "EXTRA_CFLAGS += ${EXTRA_CFLAGS}" >> config.mak
 echo "EXTRA_LDFLAGS += ${EXTRA_LDFLAGS}" >> config.mak
-# make fetch
-make V=1
-# make -j$MAKE_JOBS > ${out}
+make fetch
+make -j$MAKE_JOBS > ${out}
 spopd
 
 info "Bootstraping vlc"
@@ -326,6 +325,12 @@ else
 	SCARYFLAG="--disable-dca --disable-dvbpsi --disable-avcodec --disable-avformat --disable-zvbi --enable-vpx"
 fi
 
+if [ "$TVOS" = "yes" ]; then
+	TVOSOPTIONS="--disable-neon"
+else
+	TVOSOPTIONS="--enable-neon"
+fi
+
 # Run configure only upon changes.
 if [ "${VLCROOT}/configure" -nt config.log -o \
      "${THIS_SCRIPT_PATH}" -nt config.log ]; then
@@ -336,6 +341,7 @@ ${VLCROOT}/configure \
     --enable-static \
     ${DEBUGFLAG} \
     ${SCARYFLAG} \
+    ${TVOSOPTIONS} \
     --disable-macosx \
     --disable-macosx-dialog-provider \
     --disable-macosx-qtkit \
@@ -358,7 +364,6 @@ ${VLCROOT}/configure \
     --disable-httpd \
     --disable-nls \
     --disable-sse \
-    --enable-neon \
     --disable-notify \
     --enable-live555 \
     --enable-realrtsp \
@@ -388,7 +393,7 @@ ${VLCROOT}/configure \
     --enable-taglib \
     --disable-mmx \
     --disable-addonmanagermodules \
-    --disable-mad > ${out} # MMX and SSE support requires llvm which is broken on Simulator
+    --disable-mad > ${out}
 fi
 
 info "Building libvlc"
-- 
GitLab