components/tcl/tcl/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 29 Aug 2012 11:05:56 -0700
changeset 957 255465c5756f
parent 800 2ad056ed89ec
child 1017 6a775802d662
permissions -rw-r--r--
Close of build 04.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    29
COMPONENT_VERSION=      8.5.9
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= \
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    34
    sha256:3ab671b417e3eeb41b9cef626d742d8f7f57425101e83e5fcad1d552cd99237d
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)
175
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    36
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    37
include ../../../make-rules/prep.mk
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    38
include ../../../make-rules/configure.mk
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    39
include ../../../make-rules/ips.mk
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    40
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    41
COMPONENT_PREP_ACTION = \
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    42
	(cd $(SOURCE_DIR)/unix ; autoreconf -f; \
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    43
	 cd ../doc; \
175
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    44
            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
    45
            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
    46
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    47
COMPONENT_PRE_CONFIGURE_ACTION = \
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    48
        ($(CLONEY) $(SOURCE_DIR) $(@D))
175
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    49
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    50
#This macro will help to look for the configure 
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    51
#file at the pointed location 
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
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    54
CFLAGS += $(studio_XREGS) -xstrconst $(XPG6MODE) $(studio_C99_ENABLE)
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    55
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    56
CONFIGURE_OPTIONS 	+= CFLAGS="$(CFLAGS)"
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS	+= --enable-shared
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS	+= --enable-man-symlinks
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    59
CONFIGURE_OPTIONS	+= --enable-threads
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    60
CONFIGURE_OPTIONS.64	+= --enable-64bit
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    61
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 175
diff changeset
    62
COMPONENT_TEST_TARGETS = test
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 175
diff changeset
    63
175
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    64
# common targets
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    65
build:		$(BUILD_32_and_64)
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    66
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    67
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
    68
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    69
$(PROTOUSRLIBDIR)/tclConfig.sh:		$(INSTALL_32)	
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    70
					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
    71
						$(PROTOUSRLIBDIR)/tclConfig.sh.new
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    72
					$(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
    73
					$(CHMOD) 555 $(PROTOUSRLIBDIR)/tclConfig.sh
175
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    74
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 175
diff changeset
    75
test: 		$(TEST_32_and_64)
175
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    76
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    77
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    78
5195b4ea17ad 7033092 Move Tcl to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    79
include ../../../make-rules/depend.mk