Makefile revision 3817
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington#
816e576f77e2c46df3e3d97d65822aa8aded7c4bDavid Lawrence# CDDL HEADER START
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafsson#
69b641bf31d95fd79a50dcea2cdb0fcb23fe22c6David Lawrence# The contents of this file are subject to the terms of the
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafsson# Common Development and Distribution License (the "License").
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafsson# You may not use this file except in compliance with the License.
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafsson#
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafsson# See the License for the specific language governing permissions
d8417b5f3406f4ace0f3bdb228b05a7b701976d6Andreas Gustafsson# and limitations under the License.
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafsson#
d8417b5f3406f4ace0f3bdb228b05a7b701976d6Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
adb6b4397091d2380f0cb412c603816610638f95Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
adb6b4397091d2380f0cb412c603816610638f95Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
d8417b5f3406f4ace0f3bdb228b05a7b701976d6Andreas Gustafsson#
d8417b5f3406f4ace0f3bdb228b05a7b701976d6Andreas Gustafsson# CDDL HEADER END
d8417b5f3406f4ace0f3bdb228b05a7b701976d6Andreas Gustafsson#
d8417b5f3406f4ace0f3bdb228b05a7b701976d6Andreas Gustafsson
59ddb53fd74be6c4d76536e45465f34f1a08b834Andreas Gustafsson#
59ddb53fd74be6c4d76536e45465f34f1a08b834Andreas Gustafsson# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
59ddb53fd74be6c4d76536e45465f34f1a08b834Andreas Gustafsson#
59ddb53fd74be6c4d76536e45465f34f1a08b834Andreas Gustafsson
59ddb53fd74be6c4d76536e45465f34f1a08b834Andreas Gustafssoninclude ../../make-rules/shared-macros.mk
59ddb53fd74be6c4d76536e45465f34f1a08b834Andreas Gustafsson
35b61b8fb1f377ec9b68bbc8e4e43fbd2756a04dAndreas GustafssonCOMPONENT_NAME= tcsh
d8417b5f3406f4ace0f3bdb228b05a7b701976d6Andreas GustafssonCOMPONENT_VERSION= 6.18.01
35b61b8fb1f377ec9b68bbc8e4e43fbd2756a04dAndreas GustafssonIPS_COMPONENT_VERSION= 6.18.1
35b61b8fb1f377ec9b68bbc8e4e43fbd2756a04dAndreas GustafssonCOMPONENT_PROJECT_URL= http://www.tcsh.org/
35b61b8fb1f377ec9b68bbc8e4e43fbd2756a04dAndreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
35b61b8fb1f377ec9b68bbc8e4e43fbd2756a04dAndreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
35b61b8fb1f377ec9b68bbc8e4e43fbd2756a04dAndreas GustafssonCOMPONENT_ARCHIVE_HASH= \
5c62008dee307058a7f70511bf260fdea6f5b1d6Andreas Gustafsson sha256:d81ca27851f3e8545666399b4bcf25433e602a195113b3f7c73886fef84c9fa8
5c62008dee307058a7f70511bf260fdea6f5b1d6Andreas GustafssonCOMPONENT_ARCHIVE_URL= ftp://ftp.astron.com/pub/tcsh/$(COMPONENT_ARCHIVE)
35b61b8fb1f377ec9b68bbc8e4e43fbd2756a04dAndreas GustafssonCOMPONENT_BUGDB= utility/tcsh
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas Gustafsson
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas GustafssonTPNO= 5688
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas Gustafsson
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas Gustafssoninclude $(WS_MAKE_RULES)/prep.mk
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas Gustafssoninclude $(WS_MAKE_RULES)/configure.mk
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas Gustafssoninclude $(WS_MAKE_RULES)/ips.mk
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas Gustafsson
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas GustafssonCOMPONENT_PRE_CONFIGURE_ACTION = \
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas Gustafsson ($(CLONEY) $(SOURCE_DIR) $(@D))
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas Gustafsson
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas GustafssonCOMPONENT_PREP_ACTION = \
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas Gustafsson (cd $(@D) ; autoconf )
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas Gustafsson
074ae7bf0993ced96b32e3e85553a401f3f3eca9Andreas GustafssonLOCALEDIR=$(PROTO_DIR)/$(CONFIGURE_LOCALEDIR)
322445da85b6a318cb2506d216442b3e5af7c3c0Andreas Gustafsson
533df4efdafcf7a8b7292a298f45df9ab7f7f7f9Mark AndrewsCONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
533df4efdafcf7a8b7292a298f45df9ab7f7f7f9Mark Andrews
a488e91e5dedfd055b6a6e6dc3018866478facceAndreas Gustafsson# since we patch out AM_ICONV so we can run autoconf,
a488e91e5dedfd055b6a6e6dc3018866478facceAndreas Gustafsson# the new configure doesn't look for iconv(3C), so
95940593a680fd37704b74849902ca7fd2ff8f2aAndreas Gustafsson# we'll tell it here.
322445da85b6a318cb2506d216442b3e5af7c3c0Andreas GustafssonCFLAGS += -DHAVE_ICONV -DICONV_CONST=
692f5c282d13b6a0276e5a60c87ab4af013d3b80Mark Andrews
692f5c282d13b6a0276e5a60c87ab4af013d3b80Mark AndrewsCONFIGURE_OPTIONS += --localedir=$(CONFIGURE_LOCALEDIR)
692f5c282d13b6a0276e5a60c87ab4af013d3b80Mark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
d8417b5f3406f4ace0f3bdb228b05a7b701976d6Andreas Gustafsson
d8417b5f3406f4ace0f3bdb228b05a7b701976d6Andreas GustafssonCOMPONENT_TEST_ENV += PATH=/usr/gnu/bin:/usr/bin
d8417b5f3406f4ace0f3bdb228b05a7b701976d6Andreas Gustafsson
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas GustafssonASLR_MODE = $(ASLR_ENABLE)
8f9d22f92aae318244392e217bd53c6173ee6079Andreas Gustafsson
8f9d22f92aae318244392e217bd53c6173ee6079Andreas Gustafsson# common targets
8f9d22f92aae318244392e217bd53c6173ee6079Andreas Gustafssonconfigure: $(CONFIGURE_64)
8f9d22f92aae318244392e217bd53c6173ee6079Andreas Gustafsson
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafssonbuild: $(BUILD_64)
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas Gustafsson
8f9d22f92aae318244392e217bd53c6173ee6079Andreas Gustafssoninstall: $(INSTALL_64)
8f9d22f92aae318244392e217bd53c6173ee6079Andreas Gustafsson
8f9d22f92aae318244392e217bd53c6173ee6079Andreas Gustafssontest: $(TEST_64)
8f9d22f92aae318244392e217bd53c6173ee6079Andreas Gustafsson
8f9d22f92aae318244392e217bd53c6173ee6079Andreas Gustafsson
9769d3146777ca71af80b459ecec1ef8e2d05950Andreas GustafssonREQUIRED_PACKAGES += system/library
8f9d22f92aae318244392e217bd53c6173ee6079Andreas GustafssonREQUIRED_PACKAGES += text/locale
8f9d22f92aae318244392e217bd53c6173ee6079Andreas Gustafsson