4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2019, Michal Nowak
25 # Copyright (c) 2022, Niklas Poslovski
28 USE_DEFAULT_TEST_TRANSFORMS
= yes
29 include ..
/..
/..
/make-rules
/shared-macros.mk
31 COMPONENT_NAME
= libssh2
32 COMPONENT_VERSION
= 1.11.1
33 COMPONENT_SUMMARY
= libssh2
- client-side C library implementing the SSH2 protocol
34 COMPONENT_PROJECT_URL
= https
://www.libssh2.org
/
35 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
36 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
37 COMPONENT_ARCHIVE_HASH
= sha256
:d9ec76cbe34db98eec3539fe2c899d26b0c837cb3eb466a56b0f109cabf658f7
38 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)download
/$(COMPONENT_ARCHIVE
)
39 COMPONENT_CLASSIFICATION
= System
/Security
40 COMPONENT_FMRI
= library
/libssh2
41 COMPONENT_LICENSE
= BSD
42 COMPONENT_LICENSE_FILE
= COPYING
44 include $(WS_MAKE_RULES
)/common.mk
46 # Note that static libs are needed to successfully build the tests.
47 # Many tests fail because docker is needed to run them.
48 CONFIGURE_OPTIONS
+= --enable-shared
49 # Only openssl 1.0 can be found but has 2 more failing tests. Thus, we are using libgcrypt instead.
50 CONFIGURE_OPTIONS
+= --with-crypto
=libgcrypt
52 # Auto-generated dependencies
53 REQUIRED_PACKAGES
+= library
/zlib
54 REQUIRED_PACKAGES
+= system
/library
55 REQUIRED_PACKAGES
+= system
/library
/security
/libgcrypt