author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 23 Feb 2017 13:46:52 -0800 | |
changeset 7687 | 1093e2a9adbd |
parent 6552 | 402379bc1b60 |
permissions | -rw-r--r-- |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
1 |
# |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
3 |
# |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
7 |
# |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
12 |
# |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
18 |
# |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
20 |
# |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
21 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
22 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
6552
diff
changeset
|
23 |
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
24 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
25 |
BUILD_BITS= 64_and_32 |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
26 |
include ../../../make-rules/shared-macros.mk |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
27 |
|
225
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
28 |
COMPONENT_NAME= tcl |
1017
6a775802d662
7202328 Upgrade TCL to 8.5.12
Srinivasa Sarva <Srinivasa.Sarva@oracle.com>
parents:
800
diff
changeset
|
29 |
COMPONENT_VERSION= 8.5.12 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
225
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://prdownloads.sourceforge.net/tcl/ |
225
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION) |
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
1017
6a775802d662
7202328 Upgrade TCL to 8.5.12
Srinivasa Sarva <Srinivasa.Sarva@oracle.com>
parents:
800
diff
changeset
|
34 |
sha256:20ba7a10a30571983afd3599f19b441adb5222b21f1d2b27d0fba3ed8d4707c2 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
225
diff
changeset
|
35 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
1017
diff
changeset
|
36 |
COMPONENT_BUGDB= library/libtcl |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
6552
diff
changeset
|
37 |
COMPONENT_ANITYA_ID= 4941 |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
38 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1460
diff
changeset
|
39 |
TPNO= 9083 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1460
diff
changeset
|
40 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
41 |
include $(WS_MAKE_RULES)/common.mk |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
42 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
43 |
COMPONENT_PREP_ACTION = \ |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
44 |
(cd $(SOURCE_DIR)/unix ; autoreconf -fi; \ |
225
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
45 |
cd ../doc; \ |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
46 |
for i in *.n ; do manbase="$$(basename "$$i" .n)"; mv "$$i" "$${manbase}.1t"; done ; \ |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
47 |
for i in *.3 ; do manbase="$$(basename "$$i" .3)"; mv "$$i" "$${manbase}.3tcl"; done) |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
48 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
49 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
225
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
50 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
51 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
52 |
CONFIGURE_SCRIPT = $(SOURCE_DIR)/unix/configure |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
53 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
54 |
# LDFLAGS is embedded into the tclConfig.sh script. |
4278
c237501634cd
20815271 libtcl8.5 failed at link stage with new 64-bit compiler
John Beck <John.Beck@Oracle.COM>
parents:
4036
diff
changeset
|
55 |
LDFLAGS += $(CC_BITS) |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
56 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
57 |
CFLAGS.studio += -xstrconst $(XPG6MODE) $(studio_C99_ENABLE) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
58 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
59 |
# 64-bit executables should also be delivered to relevant MACH subdirectory. |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
60 |
CONFIGURE_BINDIR.64= $(USRBINDIR64) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
61 |
CONFIGURE_OPTIONS += --enable-shared |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
62 |
CONFIGURE_OPTIONS += --enable-man-symlinks |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
63 |
CONFIGURE_OPTIONS += --enable-threads |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
64 |
CONFIGURE_OPTIONS.64 += --enable-64bit |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
65 |
CONFIGURE_OPTIONS.sparc.64 += --enable-64bit-vis |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
66 |
|
4036
bccb85100817
20788240 tcl master test results need work
John Beck <John.Beck@Oracle.COM>
parents:
3842
diff
changeset
|
67 |
COMPONENT_TEST_ENV += "TZ=GMT" |
bccb85100817
20788240 tcl master test results need work
John Beck <John.Beck@Oracle.COM>
parents:
3842
diff
changeset
|
68 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
175
diff
changeset
|
69 |
COMPONENT_TEST_TARGETS = test |
4036
bccb85100817
20788240 tcl master test results need work
John Beck <John.Beck@Oracle.COM>
parents:
3842
diff
changeset
|
70 |
# We skip until the beginning (append.test), read until a flaky text |
bccb85100817
20788240 tcl master test results need work
John Beck <John.Beck@Oracle.COM>
parents:
3842
diff
changeset
|
71 |
# (httpold.test), resume with the next (if-old.test), then stop at end time. |
bccb85100817
20788240 tcl master test results need work
John Beck <John.Beck@Oracle.COM>
parents:
3842
diff
changeset
|
72 |
COMPONENT_TEST_TRANSFORMER = $(NAWK) |
bccb85100817
20788240 tcl master test results need work
John Beck <John.Beck@Oracle.COM>
parents:
3842
diff
changeset
|
73 |
COMPONENT_TEST_TRANSFORMS = "'/append.test/ {results = 1}; /httpold.test/ {results = 0}; /if-old.test/ {results = 1}; /Tests ended at/ {results = 0}; {if (results) print $0 } '" |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
175
diff
changeset
|
74 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
75 |
COMPONENT_POST_INSTALL_ACTION += \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
76 |
sed -f $(COMPONENT_DIR)/files/tclsed.$(BITS) \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
77 |
$(PROTO_DIR)$(USRLIB.$(BITS))/tclConfig.sh > \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
78 |
$(PROTO_DIR)$(USRLIB.$(BITS))/tclConfig.sh.new; \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
79 |
$(MV) $(PROTO_DIR)$(USRLIB.$(BITS))/tclConfig.sh.new \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
80 |
$(PROTO_DIR)$(USRLIB.$(BITS))/tclConfig.sh; \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5066
diff
changeset
|
81 |
$(CHMOD) 555 $(PROTO_DIR)$(USRLIB.$(BITS))/tclConfig.sh |
225
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
82 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
83 |
REQUIRED_PACKAGES += system/library/math |