4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2018, Michal Nowak
27 USE_COMMON_TEST_MASTER
= yes
28 include ..
/..
/..
/make-rules
/shared-macros.mk
30 COMPONENT_NAME
= expect
31 COMPONENT_VERSION
= 5.45.4
33 COMPONENT_SUMMARY
= expect
- Programmed dialogue with other interactive programs
34 COMPONENT_DESCRIPTION
= Expect is a tool for automating interactive applications
, such
as telnet
, ftp
, passwd
, fsck
, rlogin
, tip
, etc.
35 COMPONENT_PROJECT_URL
= https
://core.tcl.tk
/expect
/index
36 COMPONENT_SRC
= $(COMPONENT_NAME
)$(COMPONENT_VERSION
)
37 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
38 COMPONENT_ARCHIVE_HASH
= sha256
:49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34
39 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/expect
/files
/Expect
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)/download
40 COMPONENT_FMRI
= shell/$(COMPONENT_NAME
)
41 COMPONENT_CLASSIFICATION
= Applications
/System Utilities
42 COMPONENT_LICENSE
= BSD-like
, GPLv2
44 include $(WS_MAKE_RULES
)/common.mk
46 SCRIPTS
= timed-run timed-read ftp-rfc autopasswd lpunlock weather \
47 passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \
48 tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect multixterm
50 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && autoreconf
-vif
)
52 COMPONENT_PRE_CONFIGURE_ACTION
= \
53 ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
55 COMPONENT_BUILD_TARGETS
= all ${SCRIPTS}
57 CONFIGURE_OPTIONS
+= --enable-shared
58 CONFIGURE_OPTIONS
+= --with-tcl
="$(COMPONENT_DIR)/../tcl/build/$(MACH$(BITS))"
59 CONFIGURE_OPTIONS
+= --with-tclinclude
="$(COMPONENT_DIR)/../tcl/build/$(MACH$(BITS))/generic"
60 CONFIGURE_OPTIONS
+= --enable-64bit
61 ifeq ($(strip $(MACH
)),sparc
)
62 CONFIGURE_OPTIONS
+= --enable-64bit-vis
65 COMPONENT_TEST_TRANSFORMS
+= \
69 COMPONENT_TEST_TARGETS
= test
71 # special targets due to tcl internals dependencies
72 ..
/tcl
/build
/%/.built
:
73 (cd ..
/tcl
; $(GMAKE
) build
)
75 $(CONFIGURE_64
): ..
/tcl
/build
/$(MACH64
)/.built
77 # Auto-generated dependencies
78 REQUIRED_PACKAGES
+= runtime
/tcl-8
79 REQUIRED_PACKAGES
+= shell/ksh93
80 REQUIRED_PACKAGES
+= system
/library
81 REQUIRED_PACKAGES
+= system
/library
/math