[vlc-commits] mac build: add option to switch between stable and unstable libvlc

Felix Paul Kühne git at videolan.org
Fri Feb 6 11:34:08 CET 2015


npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Feb  6 11:29:19 2015 +0100| [f71eb66033507dc7cc433aac6a863a78130892a4] | committer: Felix Paul Kühne

mac build: add option to switch between stable and unstable libvlc

Stable is enabled by default

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=f71eb66033507dc7cc433aac6a863a78130892a4
---

 extras/macosx/build-vlc.sh |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/extras/macosx/build-vlc.sh b/extras/macosx/build-vlc.sh
index 753879f..da30997 100755
--- a/extras/macosx/build-vlc.sh
+++ b/extras/macosx/build-vlc.sh
@@ -12,6 +12,7 @@ OSX_VERSION="10.9"
 ARCH="x86_64"
 MINIMAL_OSX_VERSION="10.6"
 SDKROOT=`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk
+UNSTABLE=no
 
 usage()
 {
@@ -20,6 +21,7 @@ usage: $0 [-v] [-d]
 
 OPTIONS
    -v            Be more verbose
+   -u            Use unstable libvlc
    -k <sdk>      Use the specified sdk (default: $SDKROOT for $ARCH)
    -a <arch>     Use the specified arch (default: $ARCH)
 EOF
@@ -42,7 +44,7 @@ info()
      echo "[${green}info${normal}] $1"
 }
 
-while getopts "hva:k:" OPTION
+while getopts "hvua:k:" OPTION
 do
      case $OPTION in
          h)
@@ -52,6 +54,9 @@ do
          v)
              VERBOSE=yes
              ;;
+         u)
+             UNSTABLE=yes
+             ;;
          a)
              ARCH=$OPTARG
              ;;
@@ -95,7 +100,11 @@ info "Preparing build dirs"
 spushd extras/macosx
 
 if ! [ -e vlc ]; then
+if [ "$UNSTABLE" = "yes" ]; then
 git clone git://git.videolan.org/vlc.git vlc
+else
+git clone git://git.videolan.org/vlc/vlc-2.2.git vlc
+fi
 fi
 
 spopd #extras/macosx



More information about the vlc-commits mailing list