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