components/zsh/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 29 Aug 2012 11:05:56 -0700
changeset 957 255465c5756f
parent 837 3496f33edfbb
child 1058 34d7aaa03423
permissions -rw-r--r--
Close of build 04.
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
#
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
    23
# Copyright (c) 2011, 2012, 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
837
3496f33edfbb 7170543 zsh 4.3.17
Danek Duvall <danek.duvall@oracle.com>
parents: 800
diff changeset
    30
COMPONENT_VERSION=	4.3.17
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=	\
837
3496f33edfbb 7170543 zsh 4.3.17
Danek Duvall <danek.duvall@oracle.com>
parents: 800
diff changeset
    35
    sha256:054e0452afd9c742c9f1489465175e1d4d7db50d88b602d132551d850cf7a704
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/project/zsh/zsh-dev/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    37
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    38
include ../../make-rules/prep.mk
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/configure.mk
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/ips.mk
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    41
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    42
CONFIGURE_OPTIONS += -n
99
c15c9099bb44 6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 93
diff changeset
    43
CONFIGURE_OPTIONS += --enable-cppflags="$(CPP_LARGEFILES)"
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    44
CONFIGURE_OPTIONS += --enable-dynamic
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS += --enable-etcdir=/etc
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS += --enable-function-subdirs
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    47
CONFIGURE_OPTIONS += --enable-ldflags="-zignore"
285
6ce8a202e4f3 7051367 zsh 4.3.12
Danek Duvall <danek.duvall@oracle.com>
parents: 181
diff changeset
    48
CONFIGURE_OPTIONS += --enable-libs="-lnsl"
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    49
CONFIGURE_OPTIONS += --enable-maildir-support
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    50
CONFIGURE_OPTIONS += --enable-multibyte
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    51
CONFIGURE_OPTIONS += --enable-pcre
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    52
CONFIGURE_OPTIONS += --with-tcsetpgrp
285
6ce8a202e4f3 7051367 zsh 4.3.12
Danek Duvall <danek.duvall@oracle.com>
parents: 181
diff changeset
    53
CONFIGURE_OPTIONS += --disable-gdbm
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    54
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    55
# pcre-config --libs unnecessarily emits "-L/usr/lib -R/usr/lib"; we remove it
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    56
# so that it doesn't end up in the binaries.
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    57
COMPONENT_POST_CONFIGURE_ACTION = \
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    58
	(cd $(@D); \
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    59
	sed -e 's,-L/usr/lib -R/usr/lib,,' \
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    60
		config.status > config.status.new; \
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    61
	mv config.status.new config.status; \
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    62
	chmod 755 config.status; \
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    63
	./config.status)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    64
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    65
COMPOVERRIDES = $(shell find Completion -type f -print)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    66
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    67
$(PROTOETCDIR)/%: % $(PROTOETCDIR)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    68
	$(INS.file)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    69
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    70
$(PROTOETCDIR)/zprofile: $(PROTOETCDIR)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    71
	$(RM) [email protected]; $(SYMLINK) profile [email protected]
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    72
837
3496f33edfbb 7170543 zsh 4.3.17
Danek Duvall <danek.duvall@oracle.com>
parents: 800
diff changeset
    73
# 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
    74
# 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
    75
# the language.
837
3496f33edfbb 7170543 zsh 4.3.17
Danek Duvall <danek.duvall@oracle.com>
parents: 800
diff changeset
    76
COMPONENT_BUILD_ENV += LC_ALL=C
93
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    77
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    78
$(COMPONENT_SRC)/Completion/%: Completion/%
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    79
	$(CP) $< [email protected]
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    80
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    81
$(COMPONENT_SRC)/LICENCE: prep
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    82
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    83
license: $(COMPONENT_SRC)/LICENCE
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    84
	iconv -f 8859-1 -t utf-8 $< > [email protected]
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    85
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    86
CLEAN_PATHS += license
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    87
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    88
# common targets
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    89
build:		$(BUILD_32) $(COMPOVERRIDES:%=$(COMPONENT_SRC)/%)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    90
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    91
install:	build $(INSTALL_32) $(PROTOETCDIR)/zprofile $(PROTOETCDIR)/zshrc license
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    92
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    93
# build does this always
285
6ce8a202e4f3 7051367 zsh 4.3.12
Danek Duvall <danek.duvall@oracle.com>
parents: 181
diff changeset
    94
test:		$(TEST_32)
93
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
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    97
b579c7b1bb44 7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    98
include ../../make-rules/depend.mk