Makefile revision 3817
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental# CDDL HEADER START
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental# The contents of this file are subject to the terms of the
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental# Common Development and Distribution License (the "License").
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental# You may not use this file except in compliance with the License.
27802dfd0ec79acd49c0bf8a3b6cff62f9fd576ckiirala#
9dc68827cbd515262ecb8d5ae8547d9e82c72e00Jon A. Cruz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental# or http://www.opensolaris.org/os/licensing.
27802dfd0ec79acd49c0bf8a3b6cff62f9fd576ckiirala# See the License for the specific language governing permissions
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental# and limitations under the License.
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental# When distributing Covered Code, include this CDDL HEADER in each
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1b3a8414f17dc95fc921d999ea715c99d10dd4aaAlex Valavanis# If applicable, add the following below this CDDL HEADER, with the
1b3a8414f17dc95fc921d999ea715c99d10dd4aaAlex Valavanis# fields enclosed by brackets "[]" replaced with your own identifying
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental# information: Portions Copyright [yyyy] [name of copyright owner]
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental# CDDL HEADER END
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
47badd0035ae8c9135c51444f3770b17ae504ddaAlex Valavanis#
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalinclude ../../make-rules/shared-macros.mk
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalCOMPONENT_NAME= libssh2
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalCOMPONENT_VERSION= 1.4.2
43a1d19c56879f438d64ab52860a1385fdad7e14buliabyakCOMPONENT_PROJECT_URL= http://www.libssh2.org/
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalCOMPONENT_ARCHIVE_HASH= \
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental sha256:418c09061fb9c3c26fec391a35a062780b21b3199885e3b27054619582469bd3
035e109c2dce9f6a9552f75d09b1573311d02546tweenkCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalCOMPONENT_BUGDB= library/libssh2
1b3a8414f17dc95fc921d999ea715c99d10dd4aaAlex Valavanis
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalTPNO= 11357
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalinclude $(WS_MAKE_RULES)/prep.mk
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalinclude $(WS_MAKE_RULES)/configure.mk
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalinclude $(WS_MAKE_RULES)/ips.mk
073e18ad60852ae12d4c4c28abed5c86004a3967John Smith
073e18ad60852ae12d4c4c28abed5c86004a3967John SmithCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
6b030a0bd66dd49928e3fa3273b9733886c9a9d0joncruzCONFIGURE_OPTIONS += --enable-shared
6b030a0bd66dd49928e3fa3273b9733886c9a9d0joncruzCONFIGURE_OPTIONS += --disable-static
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
17eb9e57e1550f744916bf486947162aa523bddamental# Adjust the .so line in the libssh2_sftp_fstatvfs man page to correctly find
17eb9e57e1550f744916bf486947162aa523bddamental# the file it references (as we place it in the man3ssh2 section on Solaris).
17eb9e57e1550f744916bf486947162aa523bddamental#
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalCOMPONENT_POST_INSTALL_ACTION += \
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental $(GSED) -i -e 's|3|3ssh2|g' \
7079a43aa387066c2f67402d77dbe3db981b1054Ted Gould $(PROTOUSRSHAREMAN3DIR)/libssh2_sftp_fstatvfs.3;
073e18ad60852ae12d4c4c28abed5c86004a3967John Smith
073e18ad60852ae12d4c4c28abed5c86004a3967John Smith# Master test results are the same for both 32-bit and 64-bit, so override
7079a43aa387066c2f67402d77dbe3db981b1054Ted Gould# here, rather than create multiple identical master files.
7079a43aa387066c2f67402d77dbe3db981b1054Ted GouldCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
7079a43aa387066c2f67402d77dbe3db981b1054Ted Gould
7079a43aa387066c2f67402d77dbe3db981b1054Ted Gould# The additional libssh2 specific set of transforms to be applied to the
7079a43aa387066c2f67402d77dbe3db981b1054Ted Gould# test results to try to normalize them.
073e18ad60852ae12d4c4c28abed5c86004a3967John SmithCOMPONENT_TEST_TRANSFORMS += \
7079a43aa387066c2f67402d77dbe3db981b1054Ted Gould '-e "s|\(^$(CC)\).*|\\$$(CC)|" ' \
be6c4327fc304962b439fd503536678e029ad51dmental '-e "s|\(^/bin/bash ../libtool\).*|\1|" ' \
9d2da14dec9f62765544a573f9151d83b85d0909mental '-e "s|\(^libtool: link:\).*|\1|" '
9d2da14dec9f62765544a573f9151d83b85d0909mental
4424b8328f6e253450bb7015c223257bb5bcd7bementalASLR_MODE = $(ASLR_NOT_APPLICABLE)
9d2da14dec9f62765544a573f9151d83b85d0909mental
4b10a04c1fc4a1447261849ce256fabc33e6114bJohn Smith# common targets
286d18945cb19dcbae081665931ea9713f03358dJohn Smithconfigure: $(CONFIGURE_32_and_64)
3deb9b5ce0f058530cd0749009464b5afe8cf09cAlex Valavanis
3deb9b5ce0f058530cd0749009464b5afe8cf09cAlex Valavanisbuild: $(BUILD_32_and_64)
3deb9b5ce0f058530cd0749009464b5afe8cf09cAlex Valavanis
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalinstall: $(INSTALL_32_and_64)
3deb9b5ce0f058530cd0749009464b5afe8cf09cAlex Valavanis
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentaltest: $(TEST_32_and_64)
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
be6c4327fc304962b439fd503536678e029ad51dmentalREQUIRED_PACKAGES += library/security/openssl
ad83b521a557c8a2d91c469f74137ca4ff4ab2d1mentalREQUIRED_PACKAGES += library/zlib
ad83b521a557c8a2d91c469f74137ca4ff4ab2d1mentalREQUIRED_PACKAGES += system/library
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental