aubio.mk 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. ################################################################################
  2. #
  3. # aubio
  4. #
  5. ################################################################################
  6. AUBIO_VERSION = 0.4.9
  7. AUBIO_SITE = https://aubio.org/pub
  8. AUBIO_SOURCE = aubio-$(AUBIO_VERSION).tar.bz2
  9. AUBIO_LICENSE = GPL-3.0+
  10. AUBIO_LICENSE_FILES = COPYING
  11. AUBIO_CPE_ID_VENDOR = aubio
  12. AUBIO_INSTALL_STAGING = YES
  13. AUBIO_DEPENDENCIES = host-pkgconf
  14. AUBIO_CONF_OPTS = \
  15. --disable-docs \
  16. --disable-atlas
  17. # The waf script bundled in aubio 0.4.9 is too old for python3.11
  18. # Similar issue with Jack:
  19. # https://github.com/jackaudio/jack2/issues/898
  20. AUBIO_NEEDS_EXTERNAL_WAF = YES
  21. # Add --notests for each build step to avoid running unit tests on the
  22. # build machine.
  23. AUBIO_WAF_OPTS = --notests
  24. ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
  25. AUBIO_DEPENDENCIES += libsndfile
  26. AUBIO_CONF_OPTS += --enable-sndfile
  27. else
  28. AUBIO_CONF_OPTS += --disable-sndfile
  29. endif
  30. # Could not compile aubio in double precision mode with libsamplerate
  31. ifeq ($(BR2_PACKAGE_LIBSAMPLERATE):$(BR2_PACKAGE_FFTW_DOUBLE),y:)
  32. AUBIO_DEPENDENCIES += libsamplerate
  33. AUBIO_CONF_OPTS += --enable-samplerate
  34. else
  35. AUBIO_CONF_OPTS += --disable-samplerate
  36. endif
  37. ifeq ($(BR2_PACKAGE_JACK2),y)
  38. AUBIO_DEPENDENCIES += jack2
  39. AUBIO_CONF_OPTS += --enable-jack
  40. else
  41. AUBIO_CONF_OPTS += --disable-jack
  42. endif
  43. # fftw3 require double otherwise it will look for fftw3f
  44. ifeq ($(BR2_PACKAGE_FFTW_DOUBLE),y)
  45. AUBIO_CONF_OPTS += --enable-fftw3 --enable-double
  46. AUBIO_DEPENDENCIES += fftw-double
  47. else ifeq ($(BR2_PACKAGE_FFTW_SINGLE),y)
  48. AUBIO_CONF_OPTS += --enable-fftw3f --disable-double
  49. AUBIO_DEPENDENCIES += fftw-single
  50. else
  51. AUBIO_CONF_OPTS += --disable-fftw3
  52. endif
  53. ifeq ($(BR2_PACKAGE_FFMPEG_AVRESAMPLE),y)
  54. AUBIO_DEPENDENCIES += ffmpeg
  55. AUBIO_CONF_OPTS += --enable-avcodec
  56. else
  57. AUBIO_CONF_OPTS += --disable-avcodec
  58. endif
  59. $(eval $(waf-package))