author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Mon, 18 Nov 2013 23:01:15 -0800 | |
branch | s11-update |
changeset 2823 | 4650282513ce |
parent 2434 | 6c9bb5cf5610 |
child 1460 | 21deed5f135f |
child 3661 | 47545fb8aed4 |
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 |
# |
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
|
23 |
# Copyright (c) 2011, 2012, 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 |
# |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
25 |
|
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 |
2423
86657720cb34
15819852 SUNBT7202328-12.0 Upgrade TCL to 8.5.12
Rich Burridge <rich.burridge@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= \ |
2423
86657720cb34
15819852 SUNBT7202328-12.0 Upgrade TCL to 8.5.12
Rich Burridge <rich.burridge@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) |
2434
6c9bb5cf5610
15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents:
2423
diff
changeset
|
36 |
COMPONENT_BUGDB= library/libtcl |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
37 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
38 |
include ../../../make-rules/prep.mk |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
39 |
include ../../../make-rules/configure.mk |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
40 |
include ../../../make-rules/ips.mk |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
41 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
42 |
COMPONENT_PREP_ACTION = \ |
225
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
43 |
(cd $(SOURCE_DIR)/unix ; autoreconf -f; \ |
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
44 |
cd ../doc; \ |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
45 |
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
|
46 |
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
|
47 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
48 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
225
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
49 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
50 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
51 |
#This macro will help to look for the configure |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
52 |
#file at the pointed location |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
53 |
CONFIGURE_SCRIPT = $(SOURCE_DIR)/unix/configure |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
54 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
55 |
CFLAGS += $(studio_XREGS) -xstrconst $(XPG6MODE) $(studio_C99_ENABLE) |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
56 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
57 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
58 |
CONFIGURE_OPTIONS += --enable-shared |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
59 |
CONFIGURE_OPTIONS += --enable-man-symlinks |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
60 |
CONFIGURE_OPTIONS += --enable-threads |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
61 |
CONFIGURE_OPTIONS.64 += --enable-64bit |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
62 |
|
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
175
diff
changeset
|
63 |
COMPONENT_TEST_TARGETS = test |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
175
diff
changeset
|
64 |
|
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
65 |
# common targets |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
66 |
build: $(BUILD_32_and_64) |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
67 |
|
225
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
68 |
install: $(INSTALL_32_and_64) $(PROTOUSRLIBDIR)/tclConfig.sh |
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
69 |
|
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
70 |
$(PROTOUSRLIBDIR)/tclConfig.sh: $(INSTALL_32) |
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
71 |
sed -f $(COMPONENT_DIR)/files/tclsed $(PROTOUSRLIBDIR)/tclConfig.sh > \ |
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
72 |
$(PROTOUSRLIBDIR)/tclConfig.sh.new |
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
73 |
$(MV) $(PROTOUSRLIBDIR)/tclConfig.sh.new $(PROTOUSRLIBDIR)/tclConfig.sh |
2f3e03a69313
7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
74 |
$(CHMOD) 555 $(PROTOUSRLIBDIR)/tclConfig.sh |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
75 |
|
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
175
diff
changeset
|
76 |
test: $(TEST_32_and_64) |
175
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
77 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
78 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
79 |
|
5195b4ea17ad
7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
80 |
include ../../../make-rules/depend.mk |