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