1################################################################################ 2# 3# libsamplerate 4# 5################################################################################ 6 7LIBSAMPLERATE_VERSION = 0.2.2 8LIBSAMPLERATE_SOURCE = libsamplerate-$(LIBSAMPLERATE_VERSION).tar.xz 9LIBSAMPLERATE_SITE = https://github.com/libsndfile/libsamplerate/releases/download/$(LIBSAMPLERATE_VERSION) 10LIBSAMPLERATE_INSTALL_STAGING = YES 11LIBSAMPLERATE_DEPENDENCIES = host-pkgconf 12# sndfile is only used for examples and tests so it doesn't make sense 13# to support it as an optional dependency 14LIBSAMPLERATE_CONF_OPTS = \ 15 --disable-fftw \ 16 --disable-sndfile \ 17 --program-transform-name='' 18LIBSAMPLERATE_LICENSE = BSD-2-Clause 19LIBSAMPLERATE_LICENSE_FILES = COPYING 20LIBSAMPLERATE_CPE_ID_VALID = YES 21 22ifeq ($(BR2_PACKAGE_ALSA_LIB),y) 23LIBSAMPLERATE_DEPENDENCIES += alsa-lib 24LIBSAMPLERATE_CONF_OPTS += --enable-alsa 25else 26LIBSAMPLERATE_CONF_OPTS += --disable-alsa 27endif 28 29$(eval $(autotools-package)) 30