1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-24 06:46:19 +00:00
Lakka-LibreELEC/packages/audio/soxr/package.mk
2021-09-27 20:37:23 +10:00

28 lines
1.0 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="soxr"
PKG_VERSION="0.1.3"
PKG_SHA256="b111c15fdc8c029989330ff559184198c161100a59312f5dc19ddeb9b5a15889"
PKG_LICENSE="LGPL"
PKG_SITE="https://sourceforge.net/projects/soxr/"
PKG_URL="${SOURCEFORGE_SRC}/soxr/soxr-${PKG_VERSION}-Source.tar.xz"
PKG_DEPENDS_TARGET="toolchain cmake:host"
PKG_LONGDESC="The SoX Resampler library performs one-dimensional sample-rate conversion. It may be used to resample PCM-encoded audio."
PKG_BUILD_FLAGS="+pic"
PKG_CMAKE_OPTS_TARGET="-DBUILD_EXAMPLES=OFF \
-DWITH_OPENMP=OFF \
-DBUILD_SHARED_LIBS=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