components/zsh/Makefile
author Danek Duvall <danek.duvall@oracle.com>
Fri, 03 Oct 2014 15:13:30 -0700
branchs11-update
changeset 3370 979f5e2250e8
parent 3021 b9308977c65b
child 2210 96a1346fe8ad
permissions -rw-r--r--
19078691 zsh version 5.0.5 needs a TPNO in the fullness of time
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     1
#
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     3
#
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     7
#
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    12
#
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    18
#
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    20
#
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    21
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    22
#
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    23
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    24
#
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    25
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-targets.mk
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    28
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		zsh
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    30
COMPONENT_VERSION=	5.0.5
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 285
diff changeset
    31
COMPONENT_PROJECT_URL=	http://www.zsh.org/
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    32
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    34
COMPONENT_ARCHIVE_HASH=	\
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    35
    sha256:6624d2fb6c8fa4e044d2b009f86ed1617fe8583c83acfceba7ec82826cfa8eaf
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    36
COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/project/zsh/zsh/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 837
diff changeset
    37
COMPONENT_BUGDB=	utility/zsh
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    38
3370
979f5e2250e8 19078691 zsh version 5.0.5 needs a TPNO in the fullness of time
Danek Duvall <danek.duvall@oracle.com>
parents: 3021
diff changeset
    39
TPNO=			19296
979f5e2250e8 19078691 zsh version 5.0.5 needs a TPNO in the fullness of time
Danek Duvall <danek.duvall@oracle.com>
parents: 3021
diff changeset
    40
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    41
include ../../make-rules/prep.mk
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    42
include ../../make-rules/configure.mk
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    43
include ../../make-rules/ips.mk
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    44
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS += -n
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    46
CONFIGURE_OPTIONS += --bindir=/usr/bin
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    47
CONFIGURE_OPTIONS += --libdir=/usr/lib
99
c15c9099bb44 6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 93
diff changeset
    48
CONFIGURE_OPTIONS += --enable-cppflags="$(CPP_LARGEFILES)"
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    49
CONFIGURE_OPTIONS += --enable-dynamic
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    50
CONFIGURE_OPTIONS += --enable-etcdir=/etc
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    51
CONFIGURE_OPTIONS += --enable-function-subdirs
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    52
# Zsh uses the compiler to link, so we need to pass CC_BITS, not LD_BITS.
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    53
CONFIGURE_OPTIONS += --enable-ldflags="$(CC_BITS) -zignore"
285
6ce8a202e4f3 7051367 zsh 4.3.12
Danek Duvall <danek.duvall@oracle.com>
parents: 181
diff changeset
    54
CONFIGURE_OPTIONS += --enable-libs="-lnsl"
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS += --enable-maildir-support
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    56
CONFIGURE_OPTIONS += --enable-multibyte
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS += --enable-pcre
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS += --with-tcsetpgrp
285
6ce8a202e4f3 7051367 zsh 4.3.12
Danek Duvall <danek.duvall@oracle.com>
parents: 181
diff changeset
    59
CONFIGURE_OPTIONS += --disable-gdbm
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    60
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    61
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    62
# pcre-config --libs unnecessarily emits "-R/usr/lib"; we remove it so that it
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    63
# doesn't end up in the binaries.
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    64
COMPONENT_POST_CONFIGURE_ACTION = \
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    65
	(cd $(@D); \
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    66
	sed -e 's,-R/usr/lib,,' \
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    67
		config.status > config.status.new; \
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    68
	mv config.status.new config.status; \
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    69
	chmod 755 config.status; \
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    70
	./config.status)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    71
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    72
COMPOVERRIDES = $(shell test -d find && find Completion -type f -print)
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    73
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    74
$(PROTOETCDIR)/%: % $(PROTOETCDIR)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    75
	$(INS.file)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    76
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    77
$(PROTOETCDIR)/zprofile: $(PROTOETCDIR)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    78
	$(RM) $@; $(SYMLINK) profile $@
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    79
837
3496f33edfbb 7170543 zsh 4.3.17
Danek Duvall <danek.duvall@oracle.com>
parents: 800
diff changeset
    80
# makepro.awk leaves turds behind when using gawk 3.1.5 and a UTF-8 locale.
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    81
# Upgrading gawk would fix the problem, but for now, all we can do is change
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    82
# the language.
837
3496f33edfbb 7170543 zsh 4.3.17
Danek Duvall <danek.duvall@oracle.com>
parents: 800
diff changeset
    83
COMPONENT_BUILD_ENV += LC_ALL=C
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    84
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    85
# The configure test for NIS tests to make sure that NIS is working, not whether
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    86
# it's available to compile against.  We actually want to go through the switch
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    87
# in all cases, so we force it off, regardless of whether the build environment
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    88
# has it enabled.
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    89
CONFIGURE_ENV += zsh_cv_sys_nis=no
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    90
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    91
$(COMPONENT_SRC)/Completion/%: Completion/%
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    92
	$(CP) $< $@
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    94
$(COMPONENT_SRC)/LICENCE: prep
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    95
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    96
license: $(COMPONENT_SRC)/LICENCE
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
    97
	tail +13 $< > $@
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    98
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    99
CLEAN_PATHS += license
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   100
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
   101
ASLR_MODE = $(ASLR_ENABLE)
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
   102
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   103
# common targets
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
   104
build:		$(BUILD_64) $(COMPOVERRIDES:%=$(COMPONENT_SRC)/%)
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   105
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
   106
install:	build $(INSTALL_64) $(PROTOETCDIR)/zprofile $(PROTOETCDIR)/zshrc license
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   107
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   108
# build does this always
3021
b9308977c65b 18037255 update zsh to 5.x
Danek Duvall <danek.duvall@oracle.com>
parents: 2434
diff changeset
   109
test:		$(TEST_64)
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   110
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   111
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   112
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   113
include ../../make-rules/depend.mk