2020-09-04 18:56:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
LAME_SRC="https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz/download"
|
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
|
|
|
mkdir lame
|
|
|
|
cd lame
|
2021-04-04 21:20:31 +00:00
|
|
|
wget -O lame.tar.gz "$LAME_SRC"
|
|
|
|
tar xaf lame.tar.gz
|
2020-09-04 18:56:48 +00:00
|
|
|
rm lame.tar.gz
|
|
|
|
cd lame*
|
|
|
|
|
|
|
|
local myconf=(
|
|
|
|
--prefix="$FFBUILD_PREFIX"
|
|
|
|
--disable-shared
|
|
|
|
--enable-static
|
|
|
|
--enable-nasm
|
|
|
|
--disable-gtktest
|
|
|
|
--disable-cpml
|
|
|
|
--disable-frontend
|
|
|
|
)
|
|
|
|
|
2021-05-14 02:52:29 +00:00
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
2020-09-04 18:56:48 +00:00
|
|
|
myconf+=(
|
|
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
|
|
)
|
2021-05-14 02:52:29 +00:00
|
|
|
else
|
2020-09-04 18:56:48 +00:00
|
|
|
echo "Unknown target"
|
|
|
|
return -1
|
|
|
|
fi
|
|
|
|
|
2021-04-04 21:20:31 +00:00
|
|
|
./configure "${myconf[@]}"
|
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
2020-09-04 18:56:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-libmp3lame
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-libmp3lame
|
|
|
|
}
|