2020-10-30 15:14:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-07-12 22:23:51 +00:00
|
|
|
SCRIPT_REPO="https://github.com/FFTW/fftw3.git"
|
2023-07-08 15:37:10 +00:00
|
|
|
SCRIPT_COMMIT="69f6c1a6ebd7ac5af33e7074134fb79fbc729c3d"
|
2020-10-30 15:14:11 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerbuild() {
|
2023-06-18 19:25:50 +00:00
|
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
2020-10-30 15:14:11 +00:00
|
|
|
|
|
|
|
local myconf=(
|
|
|
|
--prefix="$FFBUILD_PREFIX"
|
2022-07-12 22:23:51 +00:00
|
|
|
--enable-maintainer-mode
|
2020-10-30 15:14:11 +00:00
|
|
|
--disable-shared
|
|
|
|
--enable-static
|
2021-12-06 17:23:09 +00:00
|
|
|
--disable-fortran
|
2020-10-30 15:14:11 +00:00
|
|
|
--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
|
|
|
|
|
2021-05-14 02:52:29 +00:00
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
2020-10-30 15:14:11 +00:00
|
|
|
myconf+=(
|
|
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
|
|
)
|
2021-05-14 02:52:29 +00:00
|
|
|
else
|
2020-10-30 15:14:11 +00:00
|
|
|
echo "Unknown target"
|
|
|
|
return -1
|
|
|
|
fi
|
|
|
|
|
2022-07-12 22:23:51 +00:00
|
|
|
./bootstrap.sh "${myconf[@]}"
|
2020-10-30 15:14:11 +00:00
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
|
|
|
}
|