author | Rich Burridge <rich.burridge@oracle.com> |
Wed, 21 Jan 2015 07:59:43 -0800 | |
changeset 3659 | 2110c4baed8f |
parent 3643 | 1a4ba329c762 |
child 3817 | 30b42c38bbc4 |
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 |
|
1321
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
include ../../make-rules/prep.mk |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
include ../../make-rules/configure.mk |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
include ../../make-rules/ips.mk |
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 += \ |
3659
2110c4baed8f
20373716 Cleanup regexp expressions for normalizing cc / libtool lines in test files
Rich Burridge <rich.burridge@oracle.com>
parents:
3643
diff
changeset
|
59 |
'-e "s|\(^$(CC)\).*|\\$$(CC)|" ' \ |
2110c4baed8f
20373716 Cleanup regexp expressions for normalizing cc / libtool lines in test files
Rich Burridge <rich.burridge@oracle.com>
parents:
3643
diff
changeset
|
60 |
'-e "s|\(^/bin/bash ../libtool\).*|\1|" ' \ |
2110c4baed8f
20373716 Cleanup regexp expressions for normalizing cc / libtool lines in test files
Rich Burridge <rich.burridge@oracle.com>
parents:
3643
diff
changeset
|
61 |
'-e "s|\(^libtool: link:\).*|\1|" ' |
3643
1a4ba329c762
20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
62 |
|
1434
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1321
diff
changeset
|
63 |
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
|
64 |
|
1321
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
# common targets |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
66 |
configure: $(CONFIGURE_32_and_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
67 |
|
1321
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
68 |
build: $(BUILD_32_and_64) |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
69 |
|
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
70 |
install: $(INSTALL_32_and_64) |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
71 |
|
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
72 |
test: $(TEST_32_and_64) |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
73 |
|
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
74 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
75 |
|
29cf849e7801
PSARC 2012/341 libssh2 version 1.4.2
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
76 |
include ../../make-rules/depend.mk |