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