Makefile revision 894
402N/A#
402N/A# CDDL HEADER START
402N/A#
402N/A# The contents of this file are subject to the terms of the
402N/A# Common Development and Distribution License (the "License").
402N/A# You may not use this file except in compliance with the License.
402N/A#
402N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
402N/A# or http://www.opensolaris.org/os/licensing.
402N/A# See the License for the specific language governing permissions
402N/A# and limitations under the License.
402N/A#
402N/A# When distributing Covered Code, include this CDDL HEADER in each
402N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
402N/A# If applicable, add the following below this CDDL HEADER, with the
402N/A# fields enclosed by brackets "[]" replaced with your own identifying
402N/A# information: Portions Copyright [yyyy] [name of copyright owner]
402N/A#
402N/A# CDDL HEADER END
402N/A#
2899N/A
402N/A#
814N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
814N/A#
814N/A
1780N/Ainclude ../../make-rules/shared-macros.mk
814N/Ainclude ../../make-rules/shared-targets.mk
402N/A
402N/ACOMPONENT_NAME= zsh
402N/ACOMPONENT_VERSION= 4.3.17
402N/ACOMPONENT_PROJECT_URL= http://www.zsh.org/
402N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
402N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
618N/ACOMPONENT_ARCHIVE_HASH= \
402N/A sha256:054e0452afd9c742c9f1489465175e1d4d7db50d88b602d132551d850cf7a704
402N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/zsh/zsh-dev/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
402N/A
844N/Ainclude ../../make-rules/prep.mk
844N/Ainclude ../../make-rules/configure.mk
402N/Ainclude ../../make-rules/ips.mk
1407N/A
402N/ACONFIGURE_OPTIONS += -n
2899N/ACONFIGURE_OPTIONS += --enable-cppflags="$(CPP_LARGEFILES)"
2899N/ACONFIGURE_OPTIONS += --enable-dynamic
814N/ACONFIGURE_OPTIONS += --enable-etcdir=/etc
814N/ACONFIGURE_OPTIONS += --enable-function-subdirs
402N/ACONFIGURE_OPTIONS += --enable-ldflags="-zignore"
402N/ACONFIGURE_OPTIONS += --enable-libs="-lnsl"
402N/ACONFIGURE_OPTIONS += --enable-maildir-support
402N/ACONFIGURE_OPTIONS += --enable-multibyte
402N/ACONFIGURE_OPTIONS += --enable-pcre
402N/ACONFIGURE_OPTIONS += --with-tcsetpgrp
402N/ACONFIGURE_OPTIONS += --disable-gdbm
402N/A
402N/A# pcre-config --libs unnecessarily emits "-L/usr/lib -R/usr/lib"; we remove it
402N/A# so that it doesn't end up in the binaries.
402N/ACOMPONENT_POST_CONFIGURE_ACTION = \
402N/A (cd $(@D); \
402N/A sed -e 's,-L/usr/lib -R/usr/lib,,' \
402N/A config.status > config.status.new; \
402N/A mv config.status.new config.status; \
402N/A chmod 755 config.status; \
402N/A ./config.status)
402N/A
402N/ACOMPOVERRIDES = $(shell find Completion -type f -print)
402N/A
402N/A$(PROTOETCDIR)/%: % $(PROTOETCDIR)
402N/A $(INS.file)
402N/A
402N/A$(PROTOETCDIR)/zprofile: $(PROTOETCDIR)
402N/A $(RM) $@; $(SYMLINK) profile $@
402N/A
402N/A# makepro.awk leaves turds behind when using gawk 3.1.5 and a UTF-8 locale.
402N/A# Upgrading gawk would fix the problem, but for now, all we can do is change
402N/A# the language.
402N/ACOMPONENT_BUILD_ENV += LC_ALL=C
402N/A
402N/A$(COMPONENT_SRC)/Completion/%: Completion/%
402N/A $(CP) $< $@
402N/A
402N/A$(COMPONENT_SRC)/LICENCE: prep
402N/A
402N/Alicense: $(COMPONENT_SRC)/LICENCE
402N/A iconv -f 8859-1 -t utf-8 $< > $@
402N/A
402N/ACLEAN_PATHS += license
402N/A
402N/A# common targets
402N/Abuild: $(BUILD_32) $(COMPOVERRIDES:%=$(COMPONENT_SRC)/%)
402N/A
402N/Ainstall: build $(INSTALL_32) $(PROTOETCDIR)/zprofile $(PROTOETCDIR)/zshrc license
402N/A
459N/A# build does this always
402N/Atest: $(TEST_32)
402N/A
402N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
402N/A
402N/Ainclude ../../make-rules/depend.mk
402N/A