FFmpeg-Builds/scripts.d/25-fftw3.sh

47 lines
937 B
Bash
Raw Normal View History

#!/bin/bash
2022-07-12 22:23:51 +00:00
SCRIPT_REPO="https://github.com/FFTW/fftw3.git"
2023-04-18 14:23:16 +00:00
SCRIPT_COMMIT="0842f00ae6b6e1f3aade155bc0edd17a7313fa6a"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR/$SELF"
local myconf=(
--prefix="$FFBUILD_PREFIX"
2022-07-12 22:23:51 +00:00
--enable-maintainer-mode
--disable-shared
--enable-static
--disable-fortran
--disable-doc
--with-our-malloc
--enable-threads
--with-combined-threads
--with-incoming-stack-boundary=2
)
2022-05-09 22:15:31 +00:00
if [[ $TARGET != *arm64 ]]; then
myconf+=(
--enable-sse2
--enable-avx
--enable-avx2
)
fi
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
)
else
echo "Unknown target"
return -1
fi
2022-07-12 22:23:51 +00:00
./bootstrap.sh "${myconf[@]}"
make -j$(nproc)
make install
}