gloox.mk 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ################################################################################
  2. #
  3. # gloox
  4. #
  5. ################################################################################
  6. GLOOX_VERSION = 1.0.28
  7. GLOOX_SOURCE = gloox-$(GLOOX_VERSION).tar.bz2
  8. GLOOX_SITE = https://camaya.net/download
  9. GLOOX_LICENSE = GPL-3.0 with OpenSSL exception
  10. GLOOX_LICENSE_FILES = LICENSE
  11. GLOOX_INSTALL_STAGING = YES
  12. GLOOX_DEPENDENCIES = mpc
  13. GLOOX_CONF_OPTS = \
  14. --without-libidn \
  15. --enable-getaddrinfo \
  16. --without-examples \
  17. --without-tests
  18. GLOOX_CXXFLAGS = $(TARGET_CXXFLAGS)
  19. ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
  20. GLOOX_CXXFLAGS += -O0
  21. endif
  22. GLOOX_CONF_ENV += CXXFLAGS="$(GLOOX_CXXFLAGS)"
  23. ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
  24. GLOOX_CONF_ENV += LIBS=-latomic
  25. endif
  26. ifeq ($(BR2_PACKAGE_ZLIB),y)
  27. GLOOX_CONF_OPTS += --with-zlib
  28. GLOOX_DEPENDENCIES += zlib
  29. else
  30. GLOOX_CONF_OPTS += --without-zlib
  31. endif
  32. ifeq ($(BR2_PACKAGE_OPENSSL),y)
  33. GLOOX_CONF_OPTS += --with-openssl --without-gnutls
  34. GLOOX_DEPENDENCIES += openssl
  35. else ifeq ($(BR2_PACKAGE_GNUTLS),y)
  36. GLOOX_CONF_OPTS += --with-gnutls --without-openssl
  37. GLOOX_DEPENDENCIES += gnutls
  38. else
  39. GLOOX_CONF_OPTS += --without-gnutls --without-openssl
  40. endif
  41. $(eval $(autotools-package))