libsamplerate.mk 982 B

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