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