Script for downloading the source code of libopus

pull/53/head
Javernaut 5 years ago
parent b172acd583
commit 90af601123
  1. 19
      scripts/libopus/download.sh
  2. 4
      scripts/parse-arguments.sh

@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Script to download Opus's source code
# Exports SOURCES_DIR_libopus - path where actual sources are stored
OPUS_VERSION=1.3.1
echo "Using libopus $OPUS_VERSION"
OPUS_SOURCES=opus-${OPUS_VERSION}
if [[ ! -d "$OPUS_SOURCES" ]]; then
TARGET_FILE_NAME=opus-${OPUS_VERSION}.tar.gz
curl https://archive.mozilla.org/pub/opus/${TARGET_FILE_NAME} --output ${TARGET_FILE_NAME}
tar xf ${TARGET_FILE_NAME} -C .
rm ${TARGET_FILE_NAME}
fi
export SOURCES_DIR_libopus=$(pwd)/${OPUS_SOURCES}

@ -49,6 +49,10 @@ do
EXTERNAL_LIBRARIES+=( "libmp3lame" ) EXTERNAL_LIBRARIES+=( "libmp3lame" )
shift shift
;; ;;
--enable-libopus)
EXTERNAL_LIBRARIES+=( "libopus" )
shift
;;
*) *)
echo "Unknown argument $argument" echo "Unknown argument $argument"
;; ;;

Loading…
Cancel
Save