libshout.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ################################################################################
  2. #
  3. # libshout
  4. #
  5. ################################################################################
  6. LIBSHOUT_VERSION = 2.4.6
  7. LIBSHOUT_SITE = https://downloads.xiph.org/releases/libshout
  8. LIBSHOUT_LICENSE = LGPL-2.0+
  9. LIBSHOUT_LICENSE_FILES = COPYING
  10. LIBSHOUT_INSTALL_STAGING = YES
  11. LIBSHOUT_DEPENDENCIES = host-pkgconf libogg
  12. LIBSHOUT_CONF_OPTS = \
  13. --disable-examples \
  14. --disable-tools
  15. ifeq ($(BR2_PACKAGE_LIBTHEORA),y)
  16. LIBSHOUT_CONF_OPTS += --enable-theora
  17. LIBSHOUT_DEPENDENCIES += libtheora
  18. else
  19. LIBSHOUT_CONF_OPTS += --disable-theora
  20. endif
  21. ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
  22. LIBSHOUT_CONF_OPTS += --enable-vorbis
  23. LIBSHOUT_DEPENDENCIES += libvorbis
  24. else
  25. LIBSHOUT_CONF_OPTS += --disable-vorbis
  26. endif
  27. ifeq ($(BR2_PACKAGE_SPEEX),y)
  28. LIBSHOUT_CONF_OPTS += --enable-speex
  29. LIBSHOUT_DEPENDENCIES += speex
  30. else
  31. LIBSHOUT_CONF_OPTS += --disable-speex
  32. endif
  33. ifeq ($(BR2_PACKAGE_OPENSSL),y)
  34. LIBSHOUT_CONF_OPTS += --with-openssl
  35. LIBSHOUT_DEPENDENCIES += openssl
  36. else
  37. LIBSHOUT_CONF_OPTS += --without-openssl
  38. endif
  39. $(eval $(autotools-package))