Makefile revision 3659
337d121aa0049cbd0ae664f5d1c431d862f1d49ejim#
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# CDDL HEADER START
6aa2272cc4af77e605ba2c4a4781f8567408b7e3pquerna#
ee508128c414648982d1cca7801f63b01a0a4f8aminfrin# The contents of this file are subject to the terms of the
9a60abfb324ea66f9d7089b856f315efeb7056b4trawick# Common Development and Distribution License (the "License").
9a60abfb324ea66f9d7089b856f315efeb7056b4trawick# You may not use this file except in compliance with the License.
9a60abfb324ea66f9d7089b856f315efeb7056b4trawick#
9a60abfb324ea66f9d7089b856f315efeb7056b4trawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1ce78cf71b5baaf2c1ab48e818cb1f2397df5010trawick# or http://www.opensolaris.org/os/licensing.
1ce78cf71b5baaf2c1ab48e818cb1f2397df5010trawick# See the License for the specific language governing permissions
1ce78cf71b5baaf2c1ab48e818cb1f2397df5010trawick# and limitations under the License.
1ce78cf71b5baaf2c1ab48e818cb1f2397df5010trawick#
1ce78cf71b5baaf2c1ab48e818cb1f2397df5010trawick# When distributing Covered Code, include this CDDL HEADER in each
1ce78cf71b5baaf2c1ab48e818cb1f2397df5010trawick# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
886f0852a0b7e9f0b6414b157ea9dc403d282e3erpluem# If applicable, add the following below this CDDL HEADER, with the
886f0852a0b7e9f0b6414b157ea9dc403d282e3erpluem# fields enclosed by brackets "[]" replaced with your own identifying
886f0852a0b7e9f0b6414b157ea9dc403d282e3erpluem# information: Portions Copyright [yyyy] [name of copyright owner]
886f0852a0b7e9f0b6414b157ea9dc403d282e3erpluem#
fafad9231a6b47368d4b690346f90698542caa50trawick# CDDL HEADER END
fafad9231a6b47368d4b690346f90698542caa50trawick#
fafad9231a6b47368d4b690346f90698542caa50trawick# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
b1bb7fe353e0f1759febb0c67e517195137275d3rpluem#
b1bb7fe353e0f1759febb0c67e517195137275d3rplueminclude ../../make-rules/shared-macros.mk
b1bb7fe353e0f1759febb0c67e517195137275d3rpluem
b1bb7fe353e0f1759febb0c67e517195137275d3rpluemCOMPONENT_NAME= libssh2
b1bb7fe353e0f1759febb0c67e517195137275d3rpluemCOMPONENT_VERSION= 1.4.2
4bd465052c4a0c8d41e573ee7a90c312d980355fchrisdCOMPONENT_PROJECT_URL= http://www.libssh2.org/
4bd465052c4a0c8d41e573ee7a90c312d980355fchrisdCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4bd465052c4a0c8d41e573ee7a90c312d980355fchrisdCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4bd465052c4a0c8d41e573ee7a90c312d980355fchrisdCOMPONENT_ARCHIVE_HASH= \
4bd465052c4a0c8d41e573ee7a90c312d980355fchrisd sha256:418c09061fb9c3c26fec391a35a062780b21b3199885e3b27054619582469bd3
4bd465052c4a0c8d41e573ee7a90c312d980355fchrisdCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
4bd465052c4a0c8d41e573ee7a90c312d980355fchrisdCOMPONENT_BUGDB= library/libssh2
c3c8103039e36494987aff50451896459826a361rpluem
a71dbbcb4f19f6b1d19a45defcd3ed1988d9db56niqTPNO= 11357
a71dbbcb4f19f6b1d19a45defcd3ed1988d9db56niq
27b38d4191d5f638165e2a77ec6e6f567bd7784dniqinclude ../../make-rules/prep.mk
27b38d4191d5f638165e2a77ec6e6f567bd7784dniqinclude ../../make-rules/configure.mk
27b38d4191d5f638165e2a77ec6e6f567bd7784dniqinclude ../../make-rules/ips.mk
a87e2a23083aa62229307482afbb3b802a0c2105mturk
a87e2a23083aa62229307482afbb3b802a0c2105mturkCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
a87e2a23083aa62229307482afbb3b802a0c2105mturkCONFIGURE_OPTIONS += --enable-shared
a87e2a23083aa62229307482afbb3b802a0c2105mturkCONFIGURE_OPTIONS += --disable-static
a87e2a23083aa62229307482afbb3b802a0c2105mturk
a87e2a23083aa62229307482afbb3b802a0c2105mturk# Adjust the .so line in the libssh2_sftp_fstatvfs man page to correctly find
6d8d07c0167960873d449b217da08faab50c410dmjc# the file it references (as we place it in the man3ssh2 section on Solaris).
6d8d07c0167960873d449b217da08faab50c410dmjc#
6d8d07c0167960873d449b217da08faab50c410dmjcCOMPONENT_POST_INSTALL_ACTION += \
6d8d07c0167960873d449b217da08faab50c410dmjc $(GSED) -i -e 's|3|3ssh2|g' \
6d8d07c0167960873d449b217da08faab50c410dmjc $(PROTOUSRSHAREMAN3DIR)/libssh2_sftp_fstatvfs.3;
6d8d07c0167960873d449b217da08faab50c410dmjc
260825f41ee3fb517a5c5ecd675f5f58de9ea0b7rpluem# Master test results are the same for both 32-bit and 64-bit, so override
260825f41ee3fb517a5c5ecd675f5f58de9ea0b7rpluem# here, rather than create multiple identical master files.
260825f41ee3fb517a5c5ecd675f5f58de9ea0b7rpluemCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
260825f41ee3fb517a5c5ecd675f5f58de9ea0b7rpluem
188befd3a49e3a126bd801d7dc5a7f6e63ad4332mturk# The additional libssh2 specific set of transforms to be applied to the
188befd3a49e3a126bd801d7dc5a7f6e63ad4332mturk# test results to try to normalize them.
188befd3a49e3a126bd801d7dc5a7f6e63ad4332mturkCOMPONENT_TEST_TRANSFORMS += \
188befd3a49e3a126bd801d7dc5a7f6e63ad4332mturk '-e "s|\(^$(CC)\).*|\\$$(CC)|" ' \
188befd3a49e3a126bd801d7dc5a7f6e63ad4332mturk '-e "s|\(^/bin/bash ../libtool\).*|\1|" ' \
188befd3a49e3a126bd801d7dc5a7f6e63ad4332mturk '-e "s|\(^libtool: link:\).*|\1|" '
8fd638698262130d00458b2c95548f6f94875847rpluem
534611d341a1a48b93c7a1fd5e333dbd261527d3rpluemASLR_MODE = $(ASLR_NOT_APPLICABLE)
534611d341a1a48b93c7a1fd5e333dbd261527d3rpluem
534611d341a1a48b93c7a1fd5e333dbd261527d3rpluem# common targets
e99dfd55d29a7b4209b814efc7270d0b74ccee74niqconfigure: $(CONFIGURE_32_and_64)
c3c8103039e36494987aff50451896459826a361rpluem
e99dfd55d29a7b4209b814efc7270d0b74ccee74niqbuild: $(BUILD_32_and_64)
127aef4ce9f7b6b32a95c5ed9a93b796d18755e6rpluem
127aef4ce9f7b6b32a95c5ed9a93b796d18755e6rplueminstall: $(INSTALL_32_and_64)
127aef4ce9f7b6b32a95c5ed9a93b796d18755e6rpluem
127aef4ce9f7b6b32a95c5ed9a93b796d18755e6rpluemtest: $(TEST_32_and_64)
62a2cea4c337100e330fd31c786c5323de2ff1a2rpluem
62a2cea4c337100e330fd31c786c5323de2ff1a2rpluemBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
62a2cea4c337100e330fd31c786c5323de2ff1a2rpluem
62a2cea4c337100e330fd31c786c5323de2ff1a2rplueminclude ../../make-rules/depend.mk
88a69c2c895d959ba4120a8ccaddfe603d6ee2c0wrowe