Makefile revision 5473
1332N/A#
1332N/A# CDDL HEADER START
1332N/A#
1332N/A# The contents of this file are subject to the terms of the
1332N/A# Common Development and Distribution License (the "License").
1332N/A# You may not use this file except in compliance with the License.
1332N/A#
1332N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1332N/A# or http://www.opensolaris.org/os/licensing.
1332N/A# See the License for the specific language governing permissions
1332N/A# and limitations under the License.
1332N/A#
1332N/A# When distributing Covered Code, include this CDDL HEADER in each
1332N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1332N/A# If applicable, add the following below this CDDL HEADER, with the
1332N/A# fields enclosed by brackets "[]" replaced with your own identifying
1332N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1332N/A#
1332N/A# CDDL HEADER END
1332N/A#
1332N/A
1332N/A#
3817N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
1332N/A#
1332N/A
1332N/Ainclude ../../../make-rules/shared-macros.mk
1332N/A
1332N/ACOMPONENT_NAME= expect
3998N/ACOMPONENT_VERSION= 5.45
1332N/ACOMPONENT_PROJECT_URL= http://expect.nist.gov/
3998N/ACOMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION)
1332N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3998N/ACOMPONENT_ARCHIVE_HASH= \
3998N/A sha256:b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040
3998N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/expect/files/Expect/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
1332N/ACOMPONENT_BUGDB= utility/expect
1332N/A
3998N/ATPNO= 5552
2899N/A
2818N/Ainclude $(WS_MAKE_RULES)/prep.mk
4982N/Ainclude $(WS_MAKE_RULES)/configure.mk
2818N/Ainclude $(WS_MAKE_RULES)/ips.mk
3817N/A
3817N/ASCRIPTS = timed-run timed-read ftp-rfc autopasswd lpunlock weather \
3817N/A passmass rftp kibitz rlogin-cwd xpstat tkpasswd dislocate xkibitz \
1332N/A tknewsbiff unbuffer mkpasswd cryptdir decryptdir autoexpect multixterm
3998N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
3998N/A
3998N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
3998N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
3998N/A
3998N/ACOMPONENT_BUILD_TARGETS = all ${SCRIPTS}
3998N/A
3998N/ALDFLAGS += $(CC_BITS)
3497N/A
2367N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2367N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
2367N/ACONFIGURE_OPTIONS += --enable-shared
2367N/ACONFIGURE_OPTIONS += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH$(BITS))"
1938N/ACONFIGURE_OPTIONS += --with-tclinclude="$(COMPONENT_DIR)/../tcl/build/$(MACH$(BITS))/generic"
1938N/A
1332N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
3998N/ACOMPONENT_TEST_TARGETS = test
1332N/ACOMPONENT_TEST_TRANSFORMS += \
3998N/A '-e "s|$(WS_TOP)|\\$$(WS_TOP)|g"' \
1332N/A '-e "s|tcl/build/$(MACH$(BITS))|\\$$(TCLBUILD)|g"'
3998N/A
1332N/AASLR_MODE = $(ASLR_ENABLE)
4337N/A
4337N/A# common targets
1332N/Aconfigure: $(CONFIGURE_32_and_64)
4941N/Abuild: $(BUILD_32_and_64)
3817N/Ainstall: $(INSTALL_32_and_64)
3817N/Atest: $(TEST_32_and_64)
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
# special targets due to tcl internals dependencies
../tcl/build/%/.built:
(cd ../tcl ; $(GMAKE) build)
$(CONFIGURE_32): ../tcl/build/$(MACH32)/.built
$(CONFIGURE_64): ../tcl/build/$(MACH64)/.built
REQUIRED_PACKAGES += runtime/tcl-8
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math