52 lines
954 B
Bash
Executable file
52 lines
954 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://svn.code.sf.net/p/lame/svn/trunk/lame"
|
|
SCRIPT_REV="6507"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerdl() {
|
|
retry-tool sh -c "rm -rf lame && svn checkout '${SCRIPT_REPO}@${SCRIPT_REV}' lame"
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
cd "$FFBUILD_DLDIR"/lame
|
|
|
|
autoreconf -i
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
--disable-shared
|
|
--enable-static
|
|
--enable-nasm
|
|
--disable-gtktest
|
|
--disable-cpml
|
|
--disable-frontend
|
|
--disable-decoder
|
|
)
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
myconf+=(
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
)
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
export CFLAGS="$CFLAGS -DNDEBUG"
|
|
|
|
./configure "${myconf[@]}"
|
|
make -j$(nproc)
|
|
make install
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-libmp3lame
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-libmp3lame
|
|
}
|