Makefile revision 3281
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
cc5a4a08dc9783fcbc52ce86f11e01c281a43810minfrin#
50cfe8bbbaf4279375802531268e2bf0155215fetrawick# The contents of this file are subject to the terms of the
50cfe8bbbaf4279375802531268e2bf0155215fetrawick# Common Development and Distribution License (the "License").
50cfe8bbbaf4279375802531268e2bf0155215fetrawick# You may not use this file except in compliance with the License.
50cfe8bbbaf4279375802531268e2bf0155215fetrawick#
5cb0075c38fc868730c4981e346845dad6c7ea58chrisd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5cb0075c38fc868730c4981e346845dad6c7ea58chrisd# or http://www.opensolaris.org/os/licensing.
5cb0075c38fc868730c4981e346845dad6c7ea58chrisd# See the License for the specific language governing permissions
5cb0075c38fc868730c4981e346845dad6c7ea58chrisd# and limitations under the License.
ffaa9771884a8664f0e6267efbe9d26b40000461trawick#
ffaa9771884a8664f0e6267efbe9d26b40000461trawick# When distributing Covered Code, include this CDDL HEADER in each
ffaa9771884a8664f0e6267efbe9d26b40000461trawick# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ffaa9771884a8664f0e6267efbe9d26b40000461trawick# If applicable, add the following below this CDDL HEADER, with the
f87299dab99bc04b51a6b8cad51b6795db862c0atrawick# fields enclosed by brackets "[]" replaced with your own identifying
f87299dab99bc04b51a6b8cad51b6795db862c0atrawick# information: Portions Copyright [yyyy] [name of copyright owner]
f87299dab99bc04b51a6b8cad51b6795db862c0atrawick#
4d12805e6c18253040223ea637acd6b3b3c18f60jorton# CDDL HEADER END
4d12805e6c18253040223ea637acd6b3b3c18f60jorton#
4d12805e6c18253040223ea637acd6b3b3c18f60jorton
4d12805e6c18253040223ea637acd6b3b3c18f60jorton#
4d12805e6c18253040223ea637acd6b3b3c18f60jorton# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
f2287adf33e3664c55b421fd65c45f0e05fe6977covener#
f2287adf33e3664c55b421fd65c45f0e05fe6977covener
f2287adf33e3664c55b421fd65c45f0e05fe6977covenerinclude ../../make-rules/shared-macros.mk
e5d909f2b06bd880fb3675cd49363df981caa631trawickinclude ../../make-rules/shared-targets.mk
a4df2cd1e1391575a327c2a90ba4315f805a0a78covener
a4df2cd1e1391575a327c2a90ba4315f805a0a78covenerCOMPONENT_NAME= zsh
a4df2cd1e1391575a327c2a90ba4315f805a0a78covenerCOMPONENT_VERSION= 5.0.5
cb666b29f81df1d11d65002250153353568021fccovenerCOMPONENT_PROJECT_URL= http://www.zsh.org/
cb666b29f81df1d11d65002250153353568021fccovenerCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
cb666b29f81df1d11d65002250153353568021fccovenerCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
6a80c3c6f4b8ea7ba5e89402b8b779b09ce020e0covenerCOMPONENT_ARCHIVE_HASH= \
1c2cab00d988fc48cbe59032cf76cc0bab20d6f7covener sha256:6624d2fb6c8fa4e044d2b009f86ed1617fe8583c83acfceba7ec82826cfa8eaf
6a80c3c6f4b8ea7ba5e89402b8b779b09ce020e0covenerCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/zsh/zsh/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
45dffe6c346dd73571ccaead10295fc7d53b59a6covenerCOMPONENT_BUGDB= utility/zsh
45dffe6c346dd73571ccaead10295fc7d53b59a6covener
45dffe6c346dd73571ccaead10295fc7d53b59a6covenerTPNO= 19296
75a230a728338d84dcfe81edd375352f34de22d0covener
75a230a728338d84dcfe81edd375352f34de22d0covenerinclude ../../make-rules/prep.mk
75a230a728338d84dcfe81edd375352f34de22d0covenerinclude ../../make-rules/configure.mk
3694b0116c5729804ed6a5ce119bd8efda116c7fcovenerinclude ../../make-rules/ips.mk
3694b0116c5729804ed6a5ce119bd8efda116c7fcovener
3694b0116c5729804ed6a5ce119bd8efda116c7fcovenerCONFIGURE_OPTIONS += -n
3694b0116c5729804ed6a5ce119bd8efda116c7fcovenerCONFIGURE_OPTIONS += --bindir=/usr/bin
1f50dc34ae069adeed20b2986e5ffdefa5c410e0covenerCONFIGURE_OPTIONS += --libdir=/usr/lib
1f50dc34ae069adeed20b2986e5ffdefa5c410e0covenerCONFIGURE_OPTIONS += --enable-cppflags="$(CPP_LARGEFILES)"
1f50dc34ae069adeed20b2986e5ffdefa5c410e0covenerCONFIGURE_OPTIONS += --enable-dynamic
63a5ea80bddcc84a462e40f402b4f330e0e05411covenerCONFIGURE_OPTIONS += --enable-etcdir=/etc
63a5ea80bddcc84a462e40f402b4f330e0e05411covenerCONFIGURE_OPTIONS += --enable-function-subdirs
63a5ea80bddcc84a462e40f402b4f330e0e05411covener# Zsh uses the compiler to link, so we need to pass CC_BITS, not LD_BITS.
63a5ea80bddcc84a462e40f402b4f330e0e05411covenerCONFIGURE_OPTIONS += --enable-ldflags="$(CC_BITS) -zignore"
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrinCONFIGURE_OPTIONS += --enable-libs="-lnsl"
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrinCONFIGURE_OPTIONS += --enable-maildir-support
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrinCONFIGURE_OPTIONS += --enable-multibyte
65a4e663b82f8bce28ac22ab2edfd7502de36998sfCONFIGURE_OPTIONS += --enable-pcre
65a4e663b82f8bce28ac22ab2edfd7502de36998sfCONFIGURE_OPTIONS += --with-tcsetpgrp
65a4e663b82f8bce28ac22ab2edfd7502de36998sfCONFIGURE_OPTIONS += --disable-gdbm
65a4e663b82f8bce28ac22ab2edfd7502de36998sfCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
c7de1955eb0eaeabf7042902476397692672d549sf
509622419be000045d461ef38fb97df778fdf81djailletc# pcre-config --libs unnecessarily emits "-R/usr/lib"; we remove it so that it
509622419be000045d461ef38fb97df778fdf81djailletc# doesn't end up in the binaries.
509622419be000045d461ef38fb97df778fdf81djailletcCOMPONENT_POST_CONFIGURE_ACTION = \
509622419be000045d461ef38fb97df778fdf81djailletc (cd $(@D); \
0b9de55d178312ec929dbe417dd61199b269991djailletc sed -e 's,-R/usr/lib,,' \
0b9de55d178312ec929dbe417dd61199b269991djailletc config.status > config.status.new; \
0b9de55d178312ec929dbe417dd61199b269991djailletc mv config.status.new config.status; \
0b9de55d178312ec929dbe417dd61199b269991djailletc chmod 755 config.status; \
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin ./config.status)
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrinCOMPOVERRIDES = $(shell test -d find && find Completion -type f -print)
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin
a511a29faf2ff7ead3b67680154a624effb31aafminfrin$(PROTOETCDIR)/%: % $(PROTOETCDIR)
a511a29faf2ff7ead3b67680154a624effb31aafminfrin $(INS.file)
a511a29faf2ff7ead3b67680154a624effb31aafminfrin
a511a29faf2ff7ead3b67680154a624effb31aafminfrin$(PROTOETCDIR)/zprofile: $(PROTOETCDIR)
a511a29faf2ff7ead3b67680154a624effb31aafminfrin $(RM) $@; $(SYMLINK) profile $@
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin# makepro.awk leaves turds behind when using gawk 3.1.5 and a UTF-8 locale.
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin# Upgrading gawk would fix the problem, but for now, all we can do is change
deec48c67d4786bc77112ffbf3a4e70b931097edminfrin# the language.
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrinCOMPONENT_BUILD_ENV += LC_ALL=C
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin# The configure test for NIS tests to make sure that NIS is working, not whether
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin# it's available to compile against. We actually want to go through the switch
4c02bab56a528a180bbe394d8b6e6fd9c1a3ac1esf# in all cases, so we force it off, regardless of whether the build environment
4c02bab56a528a180bbe394d8b6e6fd9c1a3ac1esf# has it enabled.
4c02bab56a528a180bbe394d8b6e6fd9c1a3ac1esfCONFIGURE_ENV += zsh_cv_sys_nis=no
4c02bab56a528a180bbe394d8b6e6fd9c1a3ac1esf
2c487ac43b583db869e743772a7a10b278aa2bcfminfrin$(COMPONENT_SRC)/Completion/%: Completion/%
684e0cfc200f66287a93bbd1708d1dd8a92a7eefcovener $(CP) $< $@
684e0cfc200f66287a93bbd1708d1dd8a92a7eefcovener
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsf$(COMPONENT_SRC)/LICENCE: prep
05a5a9c3e16f21566e1b61f4bd68025ce1b741ccjoes
05a5a9c3e16f21566e1b61f4bd68025ce1b741ccjoeslicense: $(COMPONENT_SRC)/LICENCE
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq tail +13 $< > $@
26c5829347f6a355c00f1ba0301d575056b69536niq
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niqCLEAN_PATHS += license
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niqASLR_MODE = $(ASLR_ENABLE)
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq# common targets
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niqbuild: $(BUILD_64) $(COMPOVERRIDES:%=$(COMPONENT_SRC)/%)
413ee814748f37be168ff12407fa6dba0ceeabe6trawick
c12917da693bae4028a1d5a5e8224bceed8c739dsfinstall: build $(INSTALL_64) $(PROTOETCDIR)/zprofile $(PROTOETCDIR)/zshrc license
c12917da693bae4028a1d5a5e8224bceed8c739dsf
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf# build does this always
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsftest: $(TEST_64)
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsfBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf
d7ffd2da16d58b1a0de212e4d56f7aebb72bef26sfinclude ../../make-rules/depend.mk
d7ffd2da16d58b1a0de212e4d56f7aebb72bef26sf