93N/A#
93N/A# CDDL HEADER START
93N/A#
93N/A# The contents of this file are subject to the terms of the
93N/A# Common Development and Distribution License (the "License").
93N/A# You may not use this file except in compliance with the License.
93N/A#
93N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93N/A# or http://www.opensolaris.org/os/licensing.
93N/A# See the License for the specific language governing permissions
93N/A# and limitations under the License.
93N/A#
93N/A# When distributing Covered Code, include this CDDL HEADER in each
93N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
93N/A# If applicable, add the following below this CDDL HEADER, with the
93N/A# fields enclosed by brackets "[]" replaced with your own identifying
93N/A# information: Portions Copyright [yyyy] [name of copyright owner]
93N/A#
93N/A# CDDL HEADER END
93N/A#
93N/A
93N/A#
5491N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
93N/A#
5680N/ABUILD_BITS= 64
93N/Ainclude ../../make-rules/shared-macros.mk
3817N/Ainclude $(WS_MAKE_RULES)/shared-targets.mk
93N/A
93N/ACOMPONENT_NAME= zsh
5491N/ACOMPONENT_VERSION= 5.2
618N/ACOMPONENT_PROJECT_URL= http://www.zsh.org/
5491N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH= \
5491N/A sha256:f17916320ffaa844bbd7ce48ceeb5945fc5f3eff64b149b4229bbfbdf3795a9d
2289N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/zsh/zsh/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
93N/A
5491N/ATPNO= 26447
3271N/A
5680N/ABUILD_TARGET=
5680N/AINSTALL_TARGET=
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5680N/A
5680N/ACONFIGURE_LIBDIR.64= $(CONFIGURE_LIBDIR.32)
93N/A
93N/ACONFIGURE_OPTIONS += -n
99N/ACONFIGURE_OPTIONS += --enable-cppflags="$(CPP_LARGEFILES)"
93N/ACONFIGURE_OPTIONS += --enable-dynamic
5680N/ACONFIGURE_OPTIONS += --enable-etcdir=$(ETCDIR)
93N/ACONFIGURE_OPTIONS += --enable-function-subdirs
2289N/A# Zsh uses the compiler to link, so we need to pass CC_BITS, not LD_BITS.
2289N/ACONFIGURE_OPTIONS += --enable-ldflags="$(CC_BITS) -zignore"
5680N/Aifeq ($(OS_VERSION),5.11)
285N/ACONFIGURE_OPTIONS += --enable-libs="-lnsl"
5680N/Aendif
93N/ACONFIGURE_OPTIONS += --enable-maildir-support
93N/ACONFIGURE_OPTIONS += --enable-multibyte
93N/ACONFIGURE_OPTIONS += --enable-pcre
93N/ACONFIGURE_OPTIONS += --with-tcsetpgrp
285N/ACONFIGURE_OPTIONS += --disable-gdbm
93N/A
5680N/A# pcre-config --libs unnecessarily emits "-R$(USRLIBDIR64)"; we remove it so that it
2289N/A# doesn't end up in the binaries.
93N/ACOMPONENT_POST_CONFIGURE_ACTION = \
93N/A (cd $(@D); \
5680N/A sed -e "s,-R$(USRLIBDIR64),," \
93N/A config.status > config.status.new; \
93N/A mv config.status.new config.status; \
93N/A chmod 755 config.status; \
93N/A ./config.status)
93N/A
2289N/ACOMPOVERRIDES = $(shell test -d find && find Completion -type f -print)
93N/A
93N/A$(PROTOETCDIR)/%: % $(PROTOETCDIR)
93N/A $(INS.file)
93N/A
93N/A$(PROTOETCDIR)/zprofile: $(PROTOETCDIR)
93N/A $(RM) $@; $(SYMLINK) profile $@
93N/A
894N/A# makepro.awk leaves turds behind when using gawk 3.1.5 and a UTF-8 locale.
93N/A# Upgrading gawk would fix the problem, but for now, all we can do is change
93N/A# the language.
894N/ACOMPONENT_BUILD_ENV += LC_ALL=C
93N/A
2289N/A# The configure test for NIS tests to make sure that NIS is working, not whether
2289N/A# it's available to compile against. We actually want to go through the switch
2289N/A# in all cases, so we force it off, regardless of whether the build environment
2289N/A# has it enabled.
2289N/ACONFIGURE_ENV += zsh_cv_sys_nis=no
2289N/A
93N/A$(COMPONENT_SRC)/Completion/%: Completion/%
93N/A $(CP) $< $@
93N/A
93N/A$(COMPONENT_SRC)/LICENCE: prep
93N/A
93N/Alicense: $(COMPONENT_SRC)/LICENCE
2289N/A tail +13 $< > $@
93N/A
93N/ACLEAN_PATHS += license
93N/A
93N/A# common targets
2289N/Abuild: $(BUILD_64) $(COMPOVERRIDES:%=$(COMPONENT_SRC)/%)
93N/A
2289N/Ainstall: build $(INSTALL_64) $(PROTOETCDIR)/zprofile $(PROTOETCDIR)/zshrc license
93N/A
3817N/AREQUIRED_PACKAGES += library/ncurses
3817N/AREQUIRED_PACKAGES += library/pcre
3817N/AREQUIRED_PACKAGES += system/library/math