author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Mon, 17 Apr 2017 16:38:34 -0700 | |
changeset 7887 | 2143681d78e2 |
parent 7687 | 1093e2a9adbd |
child 7896 | 0f03c7e0b475 |
permissions | -rw-r--r-- |
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
1 |
# |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
3 |
# |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
7 |
# |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
12 |
# |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
18 |
# |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
20 |
# |
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
21 |
|
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
22 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
23 |
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
24 |
# |
5831
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
25 |
BUILD_BITS=64 |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
26 |
# Currently only builds with gcc |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
27 |
COMPILER= gcc |
7887
2143681d78e2
25824193 userland should move to parfait 1.9.3
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
7687
diff
changeset
|
28 |
export PARFAIT_BUILD=no |
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
29 |
include ../../make-rules/shared-macros.mk |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
30 |
|
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_NAME= cmake |
6915
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
32 |
COMPONENT_VERSION= 3.5.2 |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
774
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
6915
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
34 |
sha256:92d8410d3d981bb881dfff2aed466da55a58d34c7390d50449aa59b32bb5e62a |
5831
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
35 |
COMPONENT_ARCHIVE_URL= http://www.cmake.org/files/v3.5/$(COMPONENT_ARCHIVE) |
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
36 |
COMPONENT_PROJECT_URL= http://www.cmake.org/ |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7245
diff
changeset
|
37 |
COMPONENT_ANITYA_ID= 306 |
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
38 |
|
6915
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
39 |
TPNO= 29071 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1352
diff
changeset
|
40 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
41 |
# configure in cmake does not accept many of the options set in |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
42 |
# configure.mk (CC=, CXX=, --bindir, --libdir, --sbindir). |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
43 |
CONFIGURE_DEFAULT_DIRS= no |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
44 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
45 |
# expected failure for test: CTestTestUpload |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
46 |
SYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64) |
6915
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
47 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
48 |
include $(WS_MAKE_RULES)/common.mk |
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
49 |
|
5081
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
50 |
# Remove undesriable /opt/csw lines from the Modules/*.cmake files. |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
51 |
COMPONENT_PREP_ACTION += \ |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
52 |
cd $(COMPONENT_SRC)/Modules; $(GNU_GREP) -l '/opt/csw' *.cmake | /usr/bin/xargs -I \{\} $(GSED) -i -e '/^[ ]*\/opt\/csw/d' \{\} |
5831
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
53 |
|
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
54 |
# The default -O3 is *MUCH* too aggressive and will break things, |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
55 |
# not just in CMake but everywhere. |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
56 |
# CMake sets its own Language Standard flags in the Makefile it |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
57 |
# generates for itself. The Userland default Language Standard flags |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
58 |
# contradict cmake. |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
59 |
gcc_OPT = -O2 |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
60 |
|
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
61 |
HTTP_PROXY = http://www-proxy.us.oracle.com:80/ |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
62 |
HTTPS_PROXY = https://www-proxy.us.oracle.com:80/ |
5081
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
63 |
|
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
64 |
# Need to remove this option from LD_OPTIONS (only affects sparc build); |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
65 |
# it causes a SegFault failure in kwsys/testSystemInformation |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
66 |
# when testing on sparc |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
67 |
LD_MAP_NOEXBSS.sparc= |
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
68 |
|
7245
934578b959f0
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents:
6915
diff
changeset
|
69 |
# map.noexbss has the side effect of making the heap non executable. |
934578b959f0
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents:
6915
diff
changeset
|
70 |
# Reflect the setting above explicitly disabling NXHEAP. |
934578b959f0
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents:
6915
diff
changeset
|
71 |
NXHEAP_MODE = $(NXHEAP_DISABLE) |
934578b959f0
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents:
6915
diff
changeset
|
72 |
|
934578b959f0
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents:
6915
diff
changeset
|
73 |
|
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
74 |
# We need these in the environment, although they are already passed |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
75 |
# as CONFIGURE_OPTIONS; otherwise the correct compilers are not used |
5831
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
76 |
CONFIGURE_ENV += MAKE="$(GMAKE)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
77 |
CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
78 |
CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
79 |
CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)" |
5081
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
80 |
|
614
db6c0cd206dd
6892526 cmake upgrade to v2.8.6
April Chin <april.chin@oracle.com>
parents:
312
diff
changeset
|
81 |
# Use system-installed third-party libraries, rather than the private |
5081
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
82 |
# copies in the cmake source. |
5831
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
83 |
CONFIGURE_OPTIONS = |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
84 |
CONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX) |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
85 |
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR) |
614
db6c0cd206dd
6892526 cmake upgrade to v2.8.6
April Chin <april.chin@oracle.com>
parents:
312
diff
changeset
|
86 |
CONFIGURE_OPTIONS += --system-curl |
db6c0cd206dd
6892526 cmake upgrade to v2.8.6
April Chin <april.chin@oracle.com>
parents:
312
diff
changeset
|
87 |
CONFIGURE_OPTIONS += --system-expat |
db6c0cd206dd
6892526 cmake upgrade to v2.8.6
April Chin <april.chin@oracle.com>
parents:
312
diff
changeset
|
88 |
CONFIGURE_OPTIONS += --system-zlib |
db6c0cd206dd
6892526 cmake upgrade to v2.8.6
April Chin <april.chin@oracle.com>
parents:
312
diff
changeset
|
89 |
CONFIGURE_OPTIONS += --system-bzip2 |
5081
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
90 |
CONFIGURE_OPTIONS += --system-libarchive |
5831
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
91 |
CONFIGURE_OPTIONS += --system-liblzma |
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
92 |
|
5831
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
93 |
COMPONENT_BUILD_ENV += CC="$(CC)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
94 |
COMPONENT_BUILD_ENV += CXX="$(CXX)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
95 |
COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
96 |
COMPONENT_BUILD_ENV += MAKE="$(GMAKE)" |
3814
60344306d223
20548104 cmake should deliver 64-bit executables
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
97 |
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)" |
60344306d223
20548104 cmake should deliver 64-bit executables
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
98 |
COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)" |
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
99 |
COMPONENT_BUILD_TARGETS = all |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
100 |
|
614
db6c0cd206dd
6892526 cmake upgrade to v2.8.6
April Chin <april.chin@oracle.com>
parents:
312
diff
changeset
|
101 |
# Need C and C++ compiler locations for cmake tests |
db6c0cd206dd
6892526 cmake upgrade to v2.8.6
April Chin <april.chin@oracle.com>
parents:
312
diff
changeset
|
102 |
COMPONENT_TEST_ENV += CC="$(CC)" |
db6c0cd206dd
6892526 cmake upgrade to v2.8.6
April Chin <april.chin@oracle.com>
parents:
312
diff
changeset
|
103 |
COMPONENT_TEST_ENV += CXX="$(CXX)" |
5831
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
104 |
COMPONENT_TEST_ENV += CFLAGS="$(CFLAGS)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
105 |
COMPONENT_TEST_ENV += CXXFLAGS="$(CXXFLAGS)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
106 |
COMPONENT_TEST_ENV += LDFLAGS="$(LDFLAGS)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
107 |
COMPONENT_TEST_ENV += http_proxy="$(HTTP_PROXY)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
108 |
COMPONENT_TEST_ENV += https_proxy="$(HTTPS_PROXY)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
109 |
COMPONENT_TEST_ENV += HTTP_PROXY="$(HTTP_PROXY)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
110 |
COMPONENT_TEST_ENV += HTTPS_PROXY="$(HTTPS_PROXY)" |
614
db6c0cd206dd
6892526 cmake upgrade to v2.8.6
April Chin <april.chin@oracle.com>
parents:
312
diff
changeset
|
111 |
|
6915
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
112 |
# Results output is different on Intel vs. SPARC. |
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
113 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master |
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
114 |
|
312
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
115 |
COMPONENT_TEST_TARGETS = test |
6ca02fd5a199
7053567 Move cmake from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
116 |
|
3814
60344306d223
20548104 cmake should deliver 64-bit executables
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
117 |
COMPONENT_TEST_TRANSFORMS += \ |
60344306d223
20548104 cmake should deliver 64-bit executables
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
118 |
'-e "s/\s\s*[0-9][0-9]*\.[0-9][0-9]* sec/ SEC sec/"' \ |
6915
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
119 |
'-e "s/\][0-9][0-9]*\.[0-9][0-9]* sec/\]SEC sec/"' \ |
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
120 |
'-e "/bin/ctest/d"' \ |
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
121 |
'-e "/Test project/d"' \ |
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
122 |
'-e "/^[mM]ake/d"' \ |
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
123 |
'-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \ |
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
124 |
'-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \ |
8e42a5077b6d
23710573 upgrade cmake to 3.5.2
Rich Burridge <rich.burridge@oracle.com>
parents:
5831
diff
changeset
|
125 |
'-e "/^XXX_REMOVE_XXX$$/d" ' |
3814
60344306d223
20548104 cmake should deliver 64-bit executables
April Chin <april.chin@oracle.com>
parents:
2225
diff
changeset
|
126 |
|
5831
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
127 |
COMPONENT_SYSTEM_TEST_ENV += CC="$(CC)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
128 |
COMPONENT_SYSTEM_TEST_ENV += CXX="$(CXX)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
129 |
COMPONENT_SYSTEM_TEST_ENV += CFLAGS="$(CFLAGS)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
130 |
COMPONENT_SYSTEM_TEST_ENV += CXXFLAGS="$(CXXFLAGS)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
131 |
COMPONENT_SYSTEM_TEST_ENV += LDFLAGS="$(LDFLAGS)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
132 |
COMPONENT_SYSTEM_TEST_ENV += http_proxy="$(HTTP_PROXY)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
133 |
COMPONENT_SYSTEM_TEST_ENV += https_proxy="$(HTTPS_PROXY)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
134 |
COMPONENT_SYSTEM_TEST_ENV += HTTP_PROXY="$(HTTP_PROXY)" |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
135 |
COMPONENT_SYSTEM_TEST_ENV += HTTPS_PROXY="$(HTTPS_PROXY)" |
5081
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
136 |
|
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
137 |
COMPONENT_SYSTEM_TEST_TARGETS = test |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
138 |
|
5831
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
139 |
# Install the man pages this way because we do not have Sphinx. |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
140 |
COMPONENT_POST_INSTALL_ACTION += \ |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
141 |
( $(MKDIR) -p $(PROTO_DIR)/usr/share ; \ |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
142 |
$(CP) -r $(COMPONENT_DIR)/files/man1 $(PROTO_DIR)/usr/share/ ; \ |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
143 |
$(CP) -r $(COMPONENT_DIR)/files/man7 $(PROTO_DIR)/usr/share/ ) |
0a28d29c7d5b
22950969 upgrade cmake to 3.5.0
Stefan Teleman <stefan.teleman@oracle.com>
parents:
5682
diff
changeset
|
144 |
|
5081
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
145 |
# Built binaries are moved aside and replaced with |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
146 |
# symlinks to the system-installed binaries in /usr/bin, |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
147 |
# which will be executed for the system-test target |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
148 |
COMPONENT_PRE_SYSTEM_TEST_ACTION += \ |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
149 |
$(MV) $(BUILD_DIR_64)/bin $(BUILD_DIR_64)/bin-save; \ |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
150 |
$(MKDIR) $(BUILD_DIR_64)/bin; cd $(BUILD_DIR_64)/bin; \ |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
151 |
$(LN) -s $(USRBINDIR)/cmake; $(LN) -s /usr/bin/ctest; \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5125
diff
changeset
|
152 |
$(LN) -s $(USRBINDIR)/ccmake; $(LN) -s /usr/bin/cpack |
5081
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
153 |
|
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
154 |
# Restore the built binaries after system-test is done |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
155 |
COMPONENT_POST_SYSTEM_TEST_ACTION += \ |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
156 |
$(RM) -r $(BUILD_DIR_64)/bin; \ |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
157 |
$(MV) $(BUILD_DIR_64)/bin-save $(BUILD_DIR_64)/bin |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
158 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3814
diff
changeset
|
159 |
REQUIRED_PACKAGES += compress/bzip2 |
5081
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
160 |
REQUIRED_PACKAGES += compress/xz |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3814
diff
changeset
|
161 |
REQUIRED_PACKAGES += library/expat |
5081
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
162 |
REQUIRED_PACKAGES += library/libarchive |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
163 |
REQUIRED_PACKAGES += library/ncurses |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3814
diff
changeset
|
164 |
REQUIRED_PACKAGES += library/zlib |
5081
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
165 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
198d4a3e4b73
21834219 update cmake to 3.3.2
April Chin <april.chin@oracle.com>
parents:
5066
diff
changeset
|
166 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3814
diff
changeset
|
167 |
REQUIRED_PACKAGES += system/library/math |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3814
diff
changeset
|
168 |
REQUIRED_PACKAGES += web/curl |