Makefile revision 5680
0N/A#
2790N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
1472N/A# CDDL HEADER END
1472N/A#
1472N/A
0N/A#
0N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/ABUILD_BITS= 64_and_32
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= libssh2
0N/ACOMPONENT_VERSION= 1.4.2
0N/ACOMPONENT_PROJECT_URL= http://www.libssh2.org/
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:418c09061fb9c3c26fec391a35a062780b21b3199885e3b27054619582469bd3
0N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_BUGDB= library/libssh2
0N/A
0N/ATPNO= 11357
0N/A
0N/ASYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_32_and_64)
0N/Ainclude $(WS_MAKE_RULES)/common.mk
0N/A
0N/ACONFIGURE_OPTIONS += --enable-shared
0N/ACONFIGURE_OPTIONS += --disable-static
0N/A
0N/A# Adjust the .so line in the libssh2_sftp_fstatvfs man page to correctly find
0N/A# the file it references (as we place it in the man3ssh2 section on Solaris).
0N/A#
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A $(GSED) -i -e 's|3|3ssh2|g' \
0N/A $(PROTOUSRSHAREMAN3DIR)/libssh2_sftp_fstatvfs.3;
0N/A
0N/A# Master test results are the same for both 32-bit and 64-bit, so override
0N/A# here, rather than create multiple identical master files.
0N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
0N/A
0N/A# The additional libssh2 specific set of transforms to be applied to the
0N/A# test results to try to normalize them.
0N/ACOMPONENT_TEST_TRANSFORMS += \
0N/A '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
0N/A '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
0N/A '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
0N/A '-e "s|^.*make.*$$|XXX_CC_XXX|g" ' \
0N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
0N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
0N/A '-e "/^XXX_CC_XXX$$/d" '
0N/A
0N/A# Just run "gmake check" from the tests directory.
0N/ACOMPONENT_TEST_DIR = $(BUILD_DIR_$(BITS))/tests
0N/ACOMPONENT_SYSTEM_TEST_DIR = $(BUILD_DIR_$(BITS))/tests
0N/A
0N/A# Adjust how the simple test program is built.
0N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION += \
0N/A $(GSED) -e "s|^simple_DEPENDENCIES.*$$|simple_DEPENDENCIES =|" \
973N/A -e "s|^LDADD.*$$|LDADD = -lssh2|" \
0N/A $(BUILD_DIR_$(BITS))/tests/Makefile \
0N/A > $(BUILD_DIR_$(BITS))/tests/Makefile-system-test
0N/A
116N/ACOMPONENT_SYSTEM_TEST_ENV = \
116N/A AM_MAKEFLAGS="-f $(BUILD_DIR_$(BITS))/tests/Makefile-system-test"
116N/ACOMPONENT_SYSTEM_TEST_ARGS = -f $(BUILD_DIR_$(BITS))/tests/Makefile-system-test
116N/A
116N/AREQUIRED_PACKAGES += library/security/openssl
0N/AREQUIRED_PACKAGES += library/zlib
0N/A