5235N/A#
5235N/A# CDDL HEADER START
5235N/A#
5235N/A# The contents of this file are subject to the terms of the
5235N/A# Common Development and Distribution License (the "License").
5235N/A# You may not use this file except in compliance with the License.
5235N/A#
5235N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5235N/A# or http://www.opensolaris.org/os/licensing.
5235N/A# See the License for the specific language governing permissions
5235N/A# and limitations under the License.
5235N/A#
5235N/A# When distributing Covered Code, include this CDDL HEADER in each
5235N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5235N/A# If applicable, add the following below this CDDL HEADER, with the
5235N/A# fields enclosed by brackets "[]" replaced with your own identifying
5235N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5235N/A#
5235N/A# CDDL HEADER END
5235N/A#
5235N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
5235N/A#
5235N/Ainclude ../../make-rules/shared-macros.mk
5235N/A
5235N/ACOMPONENT_NAME= libssh2
7162N/ACOMPONENT_VERSION= 1.7.0
5235N/ACOMPONENT_PROJECT_URL= http://www.libssh2.org/
5235N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5235N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5235N/ACOMPONENT_ARCHIVE_HASH= \
7162N/A sha256:e4561fd43a50539a8c2ceb37841691baf03ecb7daf043766da1b112e4280d584
5235N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
5235N/ACOMPONENT_BUGDB= library/libssh2
5235N/A
7162N/ATPNO= 27245
5235N/A
5235N/Ainclude $(WS_MAKE_RULES)/prep.mk
5235N/Ainclude $(WS_MAKE_RULES)/configure.mk
5235N/Ainclude $(WS_MAKE_RULES)/ips.mk
5235N/A
5235N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5235N/ACONFIGURE_OPTIONS += --enable-shared
5235N/ACONFIGURE_OPTIONS += --disable-static
5235N/A
5235N/A# Adjust the .so line in the libssh2_sftp_fstatvfs man page to correctly find
5235N/A# the file it references (as we place it in the man3ssh2 section on Solaris).
5235N/A#
5235N/ACOMPONENT_POST_INSTALL_ACTION += \
5235N/A $(GSED) -i -e 's|3|3ssh2|g' \
5235N/A $(PROTOUSRSHAREMAN3DIR)/libssh2_sftp_fstatvfs.3;
5235N/A
7162N/A# Needed for "gmake test" to work successfully.
7162N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
7162N/A# then all shell options get exported to child invocations of bash,
7162N/A# which results in test failures due to nounset and xtrace being
7162N/A# set unexpectedly, and errors such as "$1: unbound variable" and
7162N/A# diffs failing due to script tracing in output files.
7162N/Aunexport SHELLOPTS
7162N/A
5235N/A# common targets
5235N/Abuild: $(BUILD_32_and_64)
5235N/A
5235N/Ainstall: $(INSTALL_32_and_64)
5235N/A
5235N/Atest: $(TEST_32_and_64)
5235N/A
5235N/AREQUIRED_PACKAGES += library/security/openssl
5235N/AREQUIRED_PACKAGES += library/zlib
5235N/AREQUIRED_PACKAGES += system/library