components/tcl/expect/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 27 Oct 2016 10:42:36 -0700
changeset 7170 019e1326fbcf
parent 6346 ec1d5aacfdef
child 7687 1093e2a9adbd
permissions -rw-r--r--
24683216 ocaml fails to build with studio 12.5 24683711 expect fails to build with studio 12.5 24683715 tk fails to build with studio 12.5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     1
#
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     3
#
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     7
#
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    12
#
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    18
#
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    20
#
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    21
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    22
#
5475
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents: 5066
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
225
2f3e03a69313 7040199 Update tcl to 8.5.9
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: 5475
diff changeset
    25
BUILD_BITS= 64_and_32
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    27
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		expect
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	5.45
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 313
diff changeset
    30
COMPONENT_PROJECT_URL=	http://expect.nist.gov/
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)$(COMPONENT_VERSION)
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
    32
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
    33
    sha256:b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/expect/files/Expect/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    35
6346
ec1d5aacfdef 23743901 Fix fping TPNO
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    36
TPNO=			29680
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1460
diff changeset
    37
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5475
diff changeset
    38
include $(WS_MAKE_RULES)/common.mk
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    39
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    40
SCRIPTS = timed-run timed-read ftp-rfc autopasswd lpunlock weather \
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    41
          passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    42
          tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect multixterm
5475
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents: 5066
diff changeset
    43
COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv); 
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    44
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    45
COMPONENT_PRE_CONFIGURE_ACTION = \
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    46
	($(CLONEY) $(SOURCE_DIR) $(@D))
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    47
1138
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1058
diff changeset
    48
COMPONENT_BUILD_TARGETS = all ${SCRIPTS}
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    49
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5475
diff changeset
    50
# 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: 5475
diff changeset
    51
CONFIGURE_BINDIR.64= $(USRBINDIR64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5475
diff changeset
    52
CONFIGURE_OPTIONS +=		--enable-shared
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5475
diff changeset
    53
CONFIGURE_OPTIONS +=		--with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH$(BITS))"
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5475
diff changeset
    54
CONFIGURE_OPTIONS +=		--with-tclinclude="$(COMPONENT_DIR)/../tcl/build/$(MACH$(BITS))/generic"
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5475
diff changeset
    55
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: 5475
diff changeset
    56
CONFIGURE_OPTIONS.sparc.64 +=	--enable-64bit-vis
835
b6a2cd5fcda6 7166472 expect does not work with tclsh
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    57
7170
019e1326fbcf 24683216 ocaml fails to build with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6346
diff changeset
    58
CC += $(CC_BITS)
019e1326fbcf 24683216 ocaml fails to build with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6346
diff changeset
    59
3843
6f427a923e13 20460248 expect should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    60
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    61
COMPONENT_TEST_TARGETS = test
3843
6f427a923e13 20460248 expect should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    62
COMPONENT_TEST_TRANSFORMS += \
6f427a923e13 20460248 expect should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    63
	'-e "s|$(WS_TOP)|\\$$(WS_TOP)|g"' \
7170
019e1326fbcf 24683216 ocaml fails to build with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6346
diff changeset
    64
	'-e "/Nothing to be done/d"' \
019e1326fbcf 24683216 ocaml fails to build with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6346
diff changeset
    65
	'-e "/Leaving directory/d"' \
019e1326fbcf 24683216 ocaml fails to build with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6346
diff changeset
    66
	'-e "/Entering directory/d"' \
3843
6f427a923e13 20460248 expect should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents: 3817
diff changeset
    67
	'-e "s|tcl/build/$(MACH$(BITS))|\\$$(TCLBUILD)|g"'
225
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    68
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    69
# special targets due to tcl internals dependencies
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    70
../tcl/build/%/.built:
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    71
	(cd ../tcl ; $(GMAKE) build)
2f3e03a69313 7040199 Update tcl to 8.5.9
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    72
839
a0aa4d6306c4 7172499 expect 'install' target fails
Rich Burridge <rich.burridge@oracle.com>
parents: 835
diff changeset
    73
$(CONFIGURE_32):	../tcl/build/$(MACH32)/.built
a0aa4d6306c4 7172499 expect 'install' target fails
Rich Burridge <rich.burridge@oracle.com>
parents: 835
diff changeset
    74
$(CONFIGURE_64):	../tcl/build/$(MACH64)/.built
835
b6a2cd5fcda6 7166472 expect does not work with tclsh
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    75
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    76
REQUIRED_PACKAGES += runtime/tcl-8
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    77
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    78
REQUIRED_PACKAGES += system/library/math