Commit 70dba705 authored by Jerome Wu's avatar Jerome Wu

Add comments in scripts

parent 20ecbb8c
...@@ -13,3 +13,6 @@ ...@@ -13,3 +13,6 @@
[submodule "third_party/WavPack"] [submodule "third_party/WavPack"]
path = third_party/WavPack path = third_party/WavPack
url = https://github.com/ffmpegwasm/WavPack url = https://github.com/ffmpegwasm/WavPack
[submodule "third_party/lame"]
path = third_party/lame
url = https://github.com/ffmpegwasm/lame
Subproject commit 2badea1974ae36cb8312afe99cff1e6b3b5decee
...@@ -7,13 +7,13 @@ LIB_PATH=third_party/WavPack ...@@ -7,13 +7,13 @@ LIB_PATH=third_party/WavPack
FLAGS="-s USE_PTHREADS=1 $OPTIM_FLAGS" FLAGS="-s USE_PTHREADS=1 $OPTIM_FLAGS"
CONF_FLAGS=( CONF_FLAGS=(
--prefix=$BUILD_DIR # install library in a build directory for FFmpeg to include --prefix=$BUILD_DIR # install library in a build directory for FFmpeg to include
--host=x86-linux-gnu --host=x86-linux-gnu # use x86 linux as host
--disable-asm # disable asm optimization --disable-asm # disable asm optimization
--disable-man --disable-man # disable docs
--disable-tests --disable-tests # disable tests
--disable-apps --disable-apps # disable wavpack apps
--disable-dsd --disable-dsd # disalbe legacy
--enable-legacy --enable-legacy # enable compability for old version of wav
--disable-shared # enable building static library --disable-shared # enable building static library
) )
echo "CONF_FLAGS=${CONF_FLAGS[@]}" echo "CONF_FLAGS=${CONF_FLAGS[@]}"
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
cmds=() cmds=()
# Detect what dependencies are missing.
for cmd in autoconf automake libtool for cmd in autoconf automake libtool
do do
if ! command -v $cmd &> /dev/null if ! command -v $cmd &> /dev/null
...@@ -10,6 +11,7 @@ do ...@@ -10,6 +11,7 @@ do
fi fi
done done
# Install missing dependencies
if [ ${#cmds[@]} -ne 0 ]; if [ ${#cmds[@]} -ne 0 ];
then then
if [[ "$OSTYPE" == "linux-gnu"* ]]; then if [[ "$OSTYPE" == "linux-gnu"* ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment