Makefile revision 894
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#
844N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
93N/A#
93N/A
93N/Ainclude ../../make-rules/shared-macros.mk
93N/Ainclude ../../make-rules/shared-targets.mk
93N/A
93N/ACOMPONENT_NAME= zsh
894N/ACOMPONENT_VERSION= 4.3.17
618N/ACOMPONENT_PROJECT_URL= http://www.zsh.org/
93N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
93N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
844N/ACOMPONENT_ARCHIVE_HASH= \
894N/A sha256:054e0452afd9c742c9f1489465175e1d4d7db50d88b602d132551d850cf7a704
93N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/zsh/zsh-dev/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
93N/A
93N/Ainclude ../../make-rules/prep.mk
93N/Ainclude ../../make-rules/configure.mk
93N/Ainclude ../../make-rules/ips.mk
93N/A
93N/ACONFIGURE_OPTIONS += -n
99N/ACONFIGURE_OPTIONS += --enable-cppflags="$(CPP_LARGEFILES)"
93N/ACONFIGURE_OPTIONS += --enable-dynamic
93N/ACONFIGURE_OPTIONS += --enable-etcdir=/etc
93N/ACONFIGURE_OPTIONS += --enable-function-subdirs
93N/ACONFIGURE_OPTIONS += --enable-ldflags="-zignore"
285N/ACONFIGURE_OPTIONS += --enable-libs="-lnsl"
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
93N/A# pcre-config --libs unnecessarily emits "-L/usr/lib -R/usr/lib"; we remove it
93N/A# so that it doesn't end up in the binaries.
93N/ACOMPONENT_POST_CONFIGURE_ACTION = \
93N/A (cd $(@D); \
93N/A sed -e 's,-L/usr/lib -R/usr/lib,,' \
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
93N/ACOMPOVERRIDES = $(shell 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
93N/A$(COMPONENT_SRC)/Completion/%: Completion/%
93N/A $(CP) $< $@
93N/A
93N/A$(COMPONENT_SRC)/LICENCE: prep
93N/A
93N/Alicense: $(COMPONENT_SRC)/LICENCE
93N/A iconv -f 8859-1 -t utf-8 $< > $@
93N/A
93N/ACLEAN_PATHS += license
93N/A
93N/A# common targets
93N/Abuild: $(BUILD_32) $(COMPOVERRIDES:%=$(COMPONENT_SRC)/%)
93N/A
93N/Ainstall: build $(INSTALL_32) $(PROTOETCDIR)/zprofile $(PROTOETCDIR)/zshrc license
93N/A
93N/A# build does this always
285N/Atest: $(TEST_32)
93N/A
93N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
93N/A
93N/Ainclude ../../make-rules/depend.mk