The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libssh2 / libssh2.mk
1 ################################################################################
2 #
3 # libssh2
4 #
5 ################################################################################
6
7 LIBSSH2_VERSION = 1.5.0
8 LIBSSH2_SITE = http://www.libssh2.org/download
9 LIBSSH2_LICENSE = BSD
10 LIBSSH2_LICENSE_FILES = COPYING
11 LIBSSH2_INSTALL_STAGING = YES
12 LIBSSH2_CONF_OPTS = --disable-examples-build
13
14 # libssh2 must use either libgcrypt or OpenSSL
15 # Only select openssl if libgcrypt is not selected
16 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
17 LIBSSH2_DEPENDENCIES += libgcrypt
18 LIBSSH2_CONF_OPTS += --with-libgcrypt \
19         --with-libgcrypt-prefix=$(STAGING_DIR)/usr \
20         --without-openssl
21 # configure.ac forgets to link to dependent libraries of gcrypt breaking static
22 # linking
23 LIBSSH2_CONF_ENV += LIBS="$(shell $(STAGING_DIR)/usr/bin/libgcrypt-config --libs)"
24 else
25 LIBSSH2_DEPENDENCIES += openssl
26 LIBSSH2_CONF_OPTS += --with-openssl \
27         --with-libssl-prefix=$(STAGING_DIR)/usr \
28         --without-libgcrypt
29 endif
30
31 # Add zlib support if enabled
32 ifeq ($(BR2_PACKAGE_ZLIB),y)
33 LIBSSH2_DEPENDENCIES += zlib
34 LIBSSH2_CONF_OPTS += --with-libz \
35         --with-libz-prefix=$(STAGING_DIR)/usr
36 else
37 LIBSSH2_CONF_OPTS += --without-libz
38 endif
39
40 $(eval $(autotools-package))