Makefile revision 5235
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
5235N/ACOMPONENT_VERSION= 1.4.2
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= \
5235N/A sha256:418c09061fb9c3c26fec391a35a062780b21b3199885e3b27054619582469bd3
5235N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
5235N/ACOMPONENT_BUGDB= library/libssh2
5235N/A
5235N/ATPNO= 11357
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
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