mosh.mk 1000 B

123456789101112131415161718192021222324252627282930313233
  1. ################################################################################
  2. #
  3. # mosh
  4. #
  5. ################################################################################
  6. MOSH_VERSION = 1.4.0
  7. MOSH_SITE = https://mosh.org
  8. MOSH_DEPENDENCIES = zlib ncurses protobuf host-pkgconf
  9. MOSH_LICENSE = GPL-3.0+ with exception
  10. MOSH_LICENSE_FILES = COPYING COPYING.iOS
  11. # protobuf needs c++11 (since 3.6.0)
  12. MOSH_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
  13. ifeq ($(BR2_PACKAGE_OPENSSL),y)
  14. MOSH_CONF_OPTS += --with-crypto-library=openssl
  15. MOSH_DEPENDENCIES += openssl
  16. else
  17. MOSH_CONF_OPTS += --with-crypto-library=nettle
  18. MOSH_DEPENDENCIES += nettle
  19. endif
  20. # help the detection of the SSP support: mosh configure.ac doesn't do
  21. # a link test, so it doesn't detect when the toolchain doesn't have
  22. # libssp.
  23. ifeq ($(BR2_TOOLCHAIN_HAS_SSP),)
  24. MOSH_CONF_ENV += \
  25. ax_cv_check_cflags__Werror___fstack_protector_all=no \
  26. ax_cv_check_cxxflags__Werror___fstack_protector_all=no
  27. endif
  28. $(eval $(autotools-package))