author | Jesse Butler <jesse.butler@oracle.com> |
Mon, 17 Oct 2016 16:13:44 -0700 | |
changeset 7118 | 42f3be2cf0ae |
parent 5808 | 83957a9d0684 |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
1321
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4580
diff
changeset
|
21 |
|
1321
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4580
diff
changeset
|
23 |
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4580
diff
changeset
|
24 |
# |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4580
diff
changeset
|
25 |
BUILD_BITS= 64_and_32 |
1321
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
|
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= libssh2 |
5808
83957a9d0684
23094058 Upgrade libssh2 to 1.7.0
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
5682
diff
changeset
|
29 |
COMPONENT_VERSION= 1.7.0 |
1321
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://www.libssh2.org/ |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_ARCHIVE_HASH= \ |
5808
83957a9d0684
23094058 Upgrade libssh2 to 1.7.0
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
5682
diff
changeset
|
32 |
sha256:e4561fd43a50539a8c2ceb37841691baf03ecb7daf043766da1b112e4280d584 |
1321
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE) |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_BUGDB= library/libssh2 |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
|
5808
83957a9d0684
23094058 Upgrade libssh2 to 1.7.0
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
5682
diff
changeset
|
36 |
TPNO= 27245 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1521
diff
changeset
|
37 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4580
diff
changeset
|
38 |
SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_32_and_64) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4580
diff
changeset
|
39 |
include $(WS_MAKE_RULES)/common.mk |
1321
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
|
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
CONFIGURE_OPTIONS += --enable-shared |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
CONFIGURE_OPTIONS += --disable-static |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
|
1521
f6809e8c5110
17626706 The man page for libssh2_sftp_fstatvfs is broken
Rich Burridge <rich.burridge@oracle.com>
parents:
1434
diff
changeset
|
44 |
# Adjust the .so line in the libssh2_sftp_fstatvfs man page to correctly find |
f6809e8c5110
17626706 The man page for libssh2_sftp_fstatvfs is broken
Rich Burridge <rich.burridge@oracle.com>
parents:
1434
diff
changeset
|
45 |
# the file it references (as we place it in the man3ssh2 section on Solaris). |
f6809e8c5110
17626706 The man page for libssh2_sftp_fstatvfs is broken
Rich Burridge <rich.burridge@oracle.com>
parents:
1434
diff
changeset
|
46 |
# |
f6809e8c5110
17626706 The man page for libssh2_sftp_fstatvfs is broken
Rich Burridge <rich.burridge@oracle.com>
parents:
1434
diff
changeset
|
47 |
COMPONENT_POST_INSTALL_ACTION += \ |
f6809e8c5110
17626706 The man page for libssh2_sftp_fstatvfs is broken
Rich Burridge <rich.burridge@oracle.com>
parents:
1434
diff
changeset
|
48 |
$(GSED) -i -e 's|3|3ssh2|g' \ |
f6809e8c5110
17626706 The man page for libssh2_sftp_fstatvfs is broken
Rich Burridge <rich.burridge@oracle.com>
parents:
1434
diff
changeset
|
49 |
$(PROTOUSRSHAREMAN3DIR)/libssh2_sftp_fstatvfs.3; |
f6809e8c5110
17626706 The man page for libssh2_sftp_fstatvfs is broken
Rich Burridge <rich.burridge@oracle.com>
parents:
1434
diff
changeset
|
50 |
|
5808
83957a9d0684
23094058 Upgrade libssh2 to 1.7.0
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
5682
diff
changeset
|
51 |
# Needed for "gmake test" to work successfully. |
83957a9d0684
23094058 Upgrade libssh2 to 1.7.0
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
5682
diff
changeset
|
52 |
# If SHELLOPTS is exported (as it is by the userland makefiles), |
83957a9d0684
23094058 Upgrade libssh2 to 1.7.0
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
5682
diff
changeset
|
53 |
# then all shell options get exported to child invocations of bash, |
83957a9d0684
23094058 Upgrade libssh2 to 1.7.0
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
5682
diff
changeset
|
54 |
# which results in test failures due to nounset and xtrace being |
83957a9d0684
23094058 Upgrade libssh2 to 1.7.0
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
5682
diff
changeset
|
55 |
# set unexpectedly, and errors such as "$1: unbound variable" and |
83957a9d0684
23094058 Upgrade libssh2 to 1.7.0
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
5682
diff
changeset
|
56 |
# diffs failing due to script tracing in output files. |
83957a9d0684
23094058 Upgrade libssh2 to 1.7.0
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
5682
diff
changeset
|
57 |
unexport SHELLOPTS |
83957a9d0684
23094058 Upgrade libssh2 to 1.7.0
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
5682
diff
changeset
|
58 |
|
3643
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
59 |
# Master test results are the same for both 32-bit and 64-bit, so override |
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
60 |
# here, rather than create multiple identical master files. |
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
61 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
62 |
|
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
63 |
# The additional libssh2 specific set of transforms to be applied to the |
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
64 |
# test results to try to normalize them. |
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
65 |
COMPONENT_TEST_TRANSFORMS += \ |
3854
9d8d138d52ca
20587726 Various master test files can be improved.
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
66 |
'-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \ |
9d8d138d52ca
20587726 Various master test files can be improved.
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
67 |
'-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \ |
9d8d138d52ca
20587726 Various master test files can be improved.
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
68 |
'-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \ |
4580
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
69 |
'-e "s|^.*make.*$$|XXX_CC_XXX|g" ' \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
70 |
'-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
71 |
'-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \ |
3854
9d8d138d52ca
20587726 Various master test files can be improved.
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
72 |
'-e "/^XXX_CC_XXX$$/d" ' |
3643
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
73 |
|
4580
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
74 |
# Just run "gmake check" from the tests directory. |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
75 |
COMPONENT_TEST_DIR = $(BUILD_DIR_$(BITS))/tests |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
76 |
COMPONENT_SYSTEM_TEST_DIR = $(BUILD_DIR_$(BITS))/tests |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
77 |
|
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
78 |
# Adjust how the simple test program is built. |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
79 |
COMPONENT_PRE_SYSTEM_TEST_ACTION += \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
80 |
$(GSED) -e "s|^simple_DEPENDENCIES.*$$|simple_DEPENDENCIES =|" \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
81 |
-e "s|^LDADD.*$$|LDADD = -lssh2|" \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
82 |
$(BUILD_DIR_$(BITS))/tests/Makefile \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
83 |
> $(BUILD_DIR_$(BITS))/tests/Makefile-system-test |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
84 |
|
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
85 |
COMPONENT_SYSTEM_TEST_ENV = \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
86 |
AM_MAKEFLAGS="-f $(BUILD_DIR_$(BITS))/tests/Makefile-system-test" |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
87 |
COMPONENT_SYSTEM_TEST_ARGS = -f $(BUILD_DIR_$(BITS))/tests/Makefile-system-test |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
88 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3659
diff
changeset
|
89 |
REQUIRED_PACKAGES += library/security/openssl |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3659
diff
changeset
|
90 |
REQUIRED_PACKAGES += library/zlib |