123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #!/bin/bash
- SCRIPT_REPO="https://svn.code.sf.net/p/lame/svn/trunk/lame"
- SCRIPT_REV="6531"
- ffbuild_enabled() {
- return 0
- }
- ffbuild_dockerdl() {
- echo "retry-tool sh -c \"rm -rf lame && svn checkout '${SCRIPT_REPO}@${SCRIPT_REV}' lame\" && cd lame"
- }
- ffbuild_dockerbuild() {
- 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 -Wno-error=incompatible-pointer-types"
- ./configure "${myconf[@]}"
- make -j$(nproc)
- make install
- }
- ffbuild_configure() {
- echo --enable-libmp3lame
- }
- ffbuild_unconfigure() {
- echo --disable-libmp3lame
- }
|