author | Vladimir Marek <Vladimir.Marek@oracle.com> |
Mon, 12 Oct 2015 09:25:27 -0700 | |
changeset 4981 | 2da2d7a85ba2 |
parent 4580 | 5c702246a898 |
child 5682 | 94c0ca64c022 |
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 |
# |
3643
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
21 |
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
1321
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
23 |
include ../../make-rules/shared-macros.mk |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
|
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
25 |
COMPONENT_NAME= libssh2 |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
COMPONENT_VERSION= 1.4.2 |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
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
|
28 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_ARCHIVE_HASH= \ |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
sha256:418c09061fb9c3c26fec391a35a062780b21b3199885e3b27054619582469bd3 |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
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
|
33 |
COMPONENT_BUGDB= library/libssh2 |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1521
diff
changeset
|
35 |
TPNO= 11357 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1521
diff
changeset
|
36 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3659
diff
changeset
|
37 |
include $(WS_MAKE_RULES)/prep.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3659
diff
changeset
|
38 |
include $(WS_MAKE_RULES)/configure.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3659
diff
changeset
|
39 |
include $(WS_MAKE_RULES)/ips.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 += CFLAGS="$(CFLAGS)" |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
CONFIGURE_OPTIONS += --enable-shared |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
CONFIGURE_OPTIONS += --disable-static |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
|
1521
f6809e8c5110
17626706 The man page for libssh2_sftp_fstatvfs is broken
Rich Burridge <rich.burridge@oracle.com>
parents:
1434
diff
changeset
|
45 |
# 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
|
46 |
# 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
|
47 |
# |
f6809e8c5110
17626706 The man page for libssh2_sftp_fstatvfs is broken
Rich Burridge <rich.burridge@oracle.com>
parents:
1434
diff
changeset
|
48 |
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
|
49 |
$(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
|
50 |
$(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
|
51 |
|
3643
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
52 |
# 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
|
53 |
# 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
|
54 |
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
|
55 |
|
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
56 |
# 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
|
57 |
# 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
|
58 |
COMPONENT_TEST_TRANSFORMS += \ |
3854
9d8d138d52ca
20587726 Various master test files can be improved.
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
59 |
'-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
|
60 |
'-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
|
61 |
'-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
|
62 |
'-e "s|^.*make.*$$|XXX_CC_XXX|g" ' \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
63 |
'-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
|
64 |
'-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
|
65 |
'-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
|
66 |
|
4580
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
67 |
# 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
|
68 |
COMPONENT_TEST_DIR = $(BUILD_DIR_$(BITS))/tests |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
69 |
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
|
70 |
|
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
71 |
# 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
|
72 |
COMPONENT_PRE_SYSTEM_TEST_ACTION += \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
73 |
$(GSED) -e "s|^simple_DEPENDENCIES.*$$|simple_DEPENDENCIES =|" \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
74 |
-e "s|^LDADD.*$$|LDADD = -lssh2|" \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
75 |
$(BUILD_DIR_$(BITS))/tests/Makefile \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
76 |
> $(BUILD_DIR_$(BITS))/tests/Makefile-system-test |
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 |
COMPONENT_SYSTEM_TEST_ENV = \ |
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
79 |
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
|
80 |
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
|
81 |
|
1434
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1321
diff
changeset
|
82 |
ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1321
diff
changeset
|
83 |
|
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
84 |
configure: $(CONFIGURE_32_and_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
85 |
|
1321
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
86 |
build: $(BUILD_32_and_64) |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
87 |
|
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
88 |
install: $(INSTALL_32_and_64) |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
89 |
|
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
90 |
test: $(TEST_32_and_64) |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
91 |
|
4580
5c702246a898
21351386 Hookup system-tests for libssh2
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
92 |
system-test: configure $(SYSTEM_TEST_32_and_64) |
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3854
diff
changeset
|
93 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3659
diff
changeset
|
94 |
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
|
95 |
REQUIRED_PACKAGES += library/zlib |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3659
diff
changeset
|
96 |
REQUIRED_PACKAGES += system/library |