soxr: don't create libavutil dependency on ARM

When both SIMD/NEON optimized and non-SIMD resamplers are built
soxr uses libavutil to do runtime CPU detection to switch
between these.

Avoid that by enabling only one of them depending on NEON
availability.

Also explicitly disable AVFFT to avoid picking up a dependency
on libavcodec.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2018-06-05 11:46:01 +02:00
parent 01391bb7db
commit c0c0c08f32

View File

@ -32,4 +32,13 @@ PKG_BUILD_FLAGS="+pic"
PKG_CMAKE_OPTS_TARGET="-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTS=OFF"
-DBUILD_TESTS=OFF \
-DWITH_AVFFT=OFF"
if [ "$TARGET_ARCH" = "arm" ]; then
if target_has_feature neon; then
PKG_CMAKE_OPTS_TARGET+=" -DWITH_CR32=OFF"
else
PKG_CMAKE_OPTS_TARGET+=" -DWITH_CR32S=OFF"
fi
fi