From 52496344657ddcd69da4fa22b38e5c752476f603 Mon Sep 17 00:00:00 2001 From: Javernaut Date: Wed, 22 Apr 2020 14:01:16 +0300 Subject: [PATCH] libwavpack is now supported --- .travis.yml | 2 +- scripts/libwavpack/build.sh | 25 +++++++++++++++++++++++++ scripts/libwavpack/download.sh | 9 +++++++++ scripts/parse-arguments.sh | 4 +++- 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100755 scripts/libwavpack/build.sh create mode 100755 scripts/libwavpack/download.sh diff --git a/.travis.yml b/.travis.yml index cd4f504..2c88a5d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,4 +17,4 @@ install: - curl http://archive.ubuntu.com/ubuntu/pool/universe/n/nasm/nasm_2.14.02-1_amd64.deb --output $HOME/nasm_2.14.02-1_amd64.deb - sudo dpkg -i $HOME/nasm_2.14.02-1_amd64.deb script: - - ./ffmpeg-android-maker.sh -dav1d -mp3lame -aom -opus -android=18 + - ./ffmpeg-android-maker.sh -dav1d -mp3lame -aom -opus -wavpack -android=18 diff --git a/scripts/libwavpack/build.sh b/scripts/libwavpack/build.sh new file mode 100755 index 0000000..1bd547d --- /dev/null +++ b/scripts/libwavpack/build.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +# The Wavpack may reqire libiconv for proper work +# Consider building it and passing via --with-iconv + +./configure \ + --prefix=${INSTALL_DIR} \ + --host=${TARGET} \ + --with-sysroot=${SYSROOT_PATH} \ + --disable-shared \ + --enable-static \ + --with-pic \ + --disable-apps \ + --disable-tests \ + --enable-asm \ + --disable-man \ + CC=${FAM_CC} \ + AR=${FAM_AR} \ + RANLIB=${FAM_RANLIB} || exit 1 + +export FFMPEG_EXTRA_LD_FLAGS="${FFMPEG_EXTRA_LD_FLAGS} -lm" + +${MAKE_EXECUTABLE} clean +${MAKE_EXECUTABLE} -j${HOST_NPROC} +${MAKE_EXECUTABLE} install diff --git a/scripts/libwavpack/download.sh b/scripts/libwavpack/download.sh new file mode 100755 index 0000000..e36de8f --- /dev/null +++ b/scripts/libwavpack/download.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +source ${SCRIPTS_DIR}/common-functions.sh + +WAVPACK_VERSION=5.3.0 + +downloadTarArchive \ + "libwavpack" \ + "http://www.wavpack.com/wavpack-${WAVPACK_VERSION}.tar.bz2" diff --git a/scripts/parse-arguments.sh b/scripts/parse-arguments.sh index ae4520b..c28e295 100755 --- a/scripts/parse-arguments.sh +++ b/scripts/parse-arguments.sh @@ -78,7 +78,9 @@ for argument in "$@"; do ;; --enable-libopus|-opus) EXTERNAL_LIBRARIES+=( "libopus" ) - shift + ;; + --enable-wavpack|-wavpack) + EXTERNAL_LIBRARIES+=( "libwavpack" ) ;; *) echo "Unknown argument $argument"