perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / shell / zsh / Makefile
blob058833183c6f6b551d3ed0698e4357b1cdd84257
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2018, Michal Nowak
27 BUILD_STYLE=configure
28 BUILD_BITS=64
29 include ../../../make-rules/shared-macros.mk
30 include $(WS_MAKE_RULES)/shared-targets.mk
32 COMPONENT_NAME= zsh
33 COMPONENT_VERSION= 5.9
34 COMPONENT_PROJECT_URL= https://www.zsh.org/
35 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
37 COMPONENT_ARCHIVE_HASH= sha256:9b8d1ecedd5b5e81fbf1918e876752a7dd948e05c1a0dba10ab863842d45acd5
38 COMPONENT_ARCHIVE_URL= https://downloads.sourceforge.net/project/zsh/zsh/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
39 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
40 COMPONENT_CLASSIFICATION= System/Shells
41 COMPONENT_FMRI= shell/zsh
43 include $(WS_MAKE_RULES)/common.mk
45 # Force help files regeneration
46 COMPONENT_POST_UNPACK_ACTION = ($(RM) $(SOURCE_DIR)/Doc/help.txt)
48 CONFIGURE_LIBDIR.64= $(USRLIBDIR)
50 CONFIGURE_OPTIONS += -n
51 CONFIGURE_OPTIONS += --enable-cppflags="$(CPP_LARGEFILES)"
52 CONFIGURE_OPTIONS += --enable-cap
53 CONFIGURE_OPTIONS += --enable-dynamic
54 CONFIGURE_OPTIONS += --enable-etcdir=/etc
55 CONFIGURE_OPTIONS += --enable-function-subdirs
56 # Zsh uses the compiler to link, so we need to pass CC_BITS, not LD_BITS.
57 CONFIGURE_OPTIONS += --enable-ldflags="$(CC_BITS) -zignore"
58 CONFIGURE_OPTIONS += --enable-libs="-lnsl"
59 CONFIGURE_OPTIONS += --enable-maildir-support
60 CONFIGURE_OPTIONS += --enable-multibyte
61 CONFIGURE_OPTIONS += --enable-pcre
62 CONFIGURE_OPTIONS += --with-tcsetpgrp
63 CONFIGURE_OPTIONS += --disable-gdbm
65 COMPONENT_POST_CONFIGURE_ACTION = (cd $(@D); ./config.status)
67 COMPOVERRIDES = $(shell test -d Completion && find Completion -type f -print)
69 $(PROTOETCDIR)/%: % $(PROTOETCDIR)
70 $(INS.file)
72 $(PROTOETCDIR)/zprofile: $(PROTOETCDIR)
73 $(RM) $@; $(SYMLINK) profile $@
75 # The configure test for NIS tests to make sure that NIS is working, not whether
76 # it's available to compile against. We actually want to go through the switch
77 # in all cases, so we force it off, regardless of whether the build environment
78 # has it enabled.
79 CONFIGURE_ENV += zsh_cv_sys_nis=no
81 $(COMPONENT_SRC)/Completion/%: Completion/%
82 $(CP) $< $@
84 $(COMPONENT_SRC)/LICENCE: prep
86 license: $(COMPONENT_SRC)/LICENCE
87 tail +13 $< > $@
89 CLEAN_PATHS += license
91 COMPONENT_POST_INSTALL_ACTION = find $(PROTO_DIR) -name '*.~1~' -exec rm {} \;
93 COMPONENT_TEST_ENV += PATH=$(PATH.gnu)
95 # common targets
96 build: $(BUILD_64) $(COMPOVERRIDES:%=$(COMPONENT_SRC)/%)
98 install: build $(INSTALL_64) $(PROTOETCDIR)/zprofile $(PROTOETCDIR)/zshrc license
100 # build does this always
102 # Auto-generated dependencies
103 REQUIRED_PACKAGES += library/ncurses
104 REQUIRED_PACKAGES += library/pcre
105 REQUIRED_PACKAGES += system/library
106 REQUIRED_PACKAGES += system/library/math