libsndfile.mk 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ################################################################################
  2. #
  3. # libsndfile
  4. #
  5. ################################################################################
  6. LIBSNDFILE_VERSION = 1.2.2
  7. LIBSNDFILE_SOURCE = libsndfile-$(LIBSNDFILE_VERSION).tar.xz
  8. LIBSNDFILE_SITE = https://github.com/libsndfile/libsndfile/releases/download/$(LIBSNDFILE_VERSION)
  9. LIBSNDFILE_INSTALL_STAGING = YES
  10. LIBSNDFILE_LICENSE = LGPL-2.1+
  11. LIBSNDFILE_LICENSE_FILES = COPYING
  12. LIBSNDFILE_CPE_ID_VALID = YES
  13. LIBSNDFILE_DEPENDENCIES = host-pkgconf
  14. # 0001-mat4-mat5-fix-int-overflow-in-dataend-calculation.patch
  15. # 0002-au-avoid-int-overflow-while-calculating-data_end.patch
  16. # 0003-avr-fix-int-overflow-in-avr_read_header.patch
  17. # 0004-sds-fix-int-overflow-warning-in-sample-calculations.patch
  18. # 0005-aiff-fix-int-overflow-when-counting-header-elements.patch
  19. # 0006-ircam-fix-int-overflow-in-ircam_read_header.patch
  20. # 0007-mat4-mat5-fix-int-overflow-when-calculating-blockwid.patch
  21. # 0008-common-fix-int-overflow-in-psf_binheader_readf.patch
  22. # 0009-nms_adpcm-fix-int-overflow-in-signal-estimate.patch
  23. # 0010-nms_adpcm-fix-int-overflow-in-sf.frames-calc.patch
  24. # 0011-pcm-fix-int-overflow-in-pcm_init.patch
  25. # 0012-rf64-fix-int-overflow-in-rf64_read_header.patch
  26. # 0013-ima_adpcm-fix-int-overflow-in-ima_reader_init.patch
  27. LIBSNDFILE_IGNORE_CVES += CVE-2022-33065
  28. # 0014-src-ogg-better-error-checking-for-vorbis.-Fixes-1035.patch
  29. LIBSNDFILE_IGNORE_CVES += CVE-2024-50612
  30. LIBSNDFILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
  31. LIBSNDFILE_CONF_OPTS = \
  32. --disable-sqlite \
  33. --disable-alsa \
  34. --disable-full-suite
  35. ifeq ($(BR2_PACKAGE_FLAC)$(BR2_PACKAGE_LIBVORBIS)$(BR2_PACKAGE_OPUS),yyy)
  36. LIBSNDFILE_DEPENDENCIES += flac host-pkgconf libvorbis opus
  37. LIBSNDFILE_CONF_OPTS += --enable-external-libs
  38. else
  39. LIBSNDFILE_CONF_OPTS += --disable-external-libs
  40. endif
  41. $(eval $(autotools-package))