]> git.sesse.net Git - vlc/commitdiff
iOS: try to build armv7 and armv7s contribs without clashing
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 18 May 2013 17:28:17 +0000 (19:28 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 18 May 2013 17:31:04 +0000 (19:31 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
extras/package/ios/build.sh

index 6d1b9c3fe4e5e07e932efb800ae9516c2f5f8fdf..6d1e2ce859efdd8f267da53e62329cc75b19a342 100755 (executable)
@@ -186,7 +186,7 @@ else
   export ASCPP="xcrun as"
 fi
 
-../bootstrap --host=${TARGET} --build="i686-apple-darwin10" --disable-gpl \
+../bootstrap --host=${TARGET} --build="i686-apple-darwin10" --prefix=${VLCROOT}/contrib/${TARGET}-${ARCH} --disable-gpl \
     --disable-disc --disable-sout \
     --enable-small \
     --disable-sdl \
@@ -239,12 +239,6 @@ if [ ".$PLATFORM" != ".Simulator" ]; then
     export AVFORMAT_LIBS="-L${PREFIX}/lib -lavcodec -lz -lavutil -lavformat"
 fi
 
-export DVBPSI_CFLAGS="-I${VLCROOT}/contrib-ios-${TARGET}/include "
-export DVBPSI_LIBS="-L${VLCROOT}/contrib-ios-${TARGET}/lib "
-
-export SWSCALE_CFLAGS="-I${VLCROOT}/contrib-ios-${TARGET}/include "
-export SWSCALE_LIBS="-L${VLCROOT}/contrib-ios-${TARGET}/lib "
-
 mkdir -p ${BUILDDIR}
 spushd ${BUILDDIR}
 
@@ -253,10 +247,10 @@ info ">> --prefix=${PREFIX} --host=${TARGET}"
 # Run configure only upon changes.
 if [ "${VLCROOT}/configure" -nt config.log -o \
      "${THIS_SCRIPT_PATH}" -nt config.log ]; then
-CONTRIB_DIR=${VLCROOT}/contrib-ios-${TARGET} \
 ${VLCROOT}/configure \
     --prefix="${PREFIX}" \
     --host="${TARGET}" \
+    --with-contrib="${VLCROOT}/contrib/${TARGET}-${ARCH}" \
     --disable-debug \
     --enable-static \
     --disable-macosx \