5f5870385cff47efd2f58e7892f251cf13761528Timo Sirainen#
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# CDDL HEADER START
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8Mark Washenberger#
b44650b0f48a4b5f0dc240ed836833a00b643b9fTimo Sirainen# The contents of this file are subject to the terms of the
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# Common Development and Distribution License (the "License").
bdd36cfdba3ff66d25570a9ff568d69e1eb543cfTimo Sirainen# You may not use this file except in compliance with the License.
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen#
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
be5c76fabc7439fd33bc799bc3ab3f570799977bTimo Sirainen# or http://www.opensolaris.org/os/licensing.
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# See the License for the specific language governing permissions
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen# and limitations under the License.
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen#
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen#
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# CDDL HEADER END
b624773984e35dd894db8dff976c1a2114c70782Timo Sirainen#
b624773984e35dd894db8dff976c1a2114c70782Timo Sirainen
12d38e76ba7f70d6219c89ec7416fea0d5de7e02Timo Sirainen#
b624773984e35dd894db8dff976c1a2114c70782Timo Sirainen# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen#
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Siraineninclude ../../../make-rules/shared-macros.mk
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo SirainenCOMPONENT_NAME= expect
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo SirainenCOMPONENT_VERSION= 5.45
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo SirainenCOMPONENT_PROJECT_URL= http://expect.nist.gov/
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION)
3a7113e3e2dac0e333e1a3f62af7d682896f59c6Timo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
be5c76fabc7439fd33bc799bc3ab3f570799977bTimo SirainenCOMPONENT_ARCHIVE_HASH= \
be5c76fabc7439fd33bc799bc3ab3f570799977bTimo Sirainen sha256:b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040
be5c76fabc7439fd33bc799bc3ab3f570799977bTimo SirainenCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/expect/files/Expect/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo SirainenCOMPONENT_BUGDB= utility/expect
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo SirainenTPNO= 5552
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Siraineninclude $(WS_MAKE_RULES)/prep.mk
e9371f899a3d4207a0ffd3923ea5ec7250cf5e75Timo Siraineninclude $(WS_MAKE_RULES)/configure.mk
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Siraineninclude $(WS_MAKE_RULES)/ips.mk
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenSCRIPTS = timed-run timed-read ftp-rfc autopasswd lpunlock weather \
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \
788a0754cfd38dcfec1902844b085e4e84cfe7e6Timo Sirainen tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect multixterm
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen
788a0754cfd38dcfec1902844b085e4e84cfe7e6Timo SirainenCOMPONENT_PRE_CONFIGURE_ACTION = \
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen ($(CLONEY) $(SOURCE_DIR) $(@D))
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo SirainenCOMPONENT_BUILD_TARGETS = all ${SCRIPTS}
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo SirainenCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo SirainenCONFIGURE_OPTIONS += --enable-shared
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo SirainenCONFIGURE_OPTIONS += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH$(BITS))"
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo SirainenCONFIGURE_OPTIONS += --with-tclinclude="$(COMPONENT_DIR)/../tcl/build/$(MACH$(BITS))/generic"
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo SirainenCONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo SirainenCOMPONENT_TEST_TARGETS = test
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainen# common targets
f93c833d644ecff0b0f80bee4f1cdde3e697b5c8Timo Sirainenbuild: $(BUILD_32_and_64)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Siraineninstall: $(INSTALL_32_and_64)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainentest: $(TEST_32_and_64)
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen# special targets due to tcl internals dependencies
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen../tcl/build/%/.built:
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainen (cd ../tcl ; $(GMAKE) build)
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainen
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen$(CONFIGURE_32): ../tcl/build/$(MACH32)/.built
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen$(CONFIGURE_64): ../tcl/build/$(MACH64)/.built
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo SirainenREQUIRED_PACKAGES += runtime/tcl-8
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo SirainenREQUIRED_PACKAGES += shell/ksh93
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo SirainenREQUIRED_PACKAGES += system/library
31597236d79ac38a5cea7ab65a9d0a3df64ed201Timo SirainenREQUIRED_PACKAGES += system/library/math
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo SirainenREQUIRED_PACKAGES += system/linker
9ed2951bd0bb1878a27437d7c00611b2baadd614Timo Sirainen