components/zsh/Makefile
changeset 7589 7eccd056eff6
parent 5682 94c0ca64c022
child 7687 1093e2a9adbd
equal deleted inserted replaced
7586:3db1c2ef2aa9 7589:7eccd056eff6
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 BUILD_BITS= 64
    25 BUILD_BITS= 64
    26 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 include $(WS_MAKE_RULES)/shared-targets.mk
    27 include $(WS_MAKE_RULES)/shared-targets.mk
    28 
    28 
    29 COMPONENT_NAME=		zsh
    29 COMPONENT_NAME=		zsh
    30 COMPONENT_VERSION=	5.2
    30 COMPONENT_VERSION=	5.3.1
    31 COMPONENT_PROJECT_URL=	http://www.zsh.org/
    31 COMPONENT_PROJECT_URL=	http://www.zsh.org/
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
    33 COMPONENT_ARCHIVE_HASH=	\
    33 COMPONENT_ARCHIVE_HASH=	\
    34     sha256:f17916320ffaa844bbd7ce48ceeb5945fc5f3eff64b149b4229bbfbdf3795a9d
    34     sha256:fc886cb2ade032d006da8322c09a7e92b2309177811428b121192d44832920da
    35 COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/project/zsh/zsh/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
    35 COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/project/zsh/zsh/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
    36 
    36 
    37 TPNO=			26447
    37 TPNO=			33339
    38 
    38 
    39 BUILD_TARGET=
    39 BUILD_TARGET=
    40 INSTALL_TARGET=
    40 INSTALL_TARGET=
    41 include $(WS_MAKE_RULES)/common.mk
    41 include $(WS_MAKE_RULES)/common.mk
    42 
    42 
    43 CONFIGURE_LIBDIR.64= $(CONFIGURE_LIBDIR.32)
    43 CONFIGURE_LIBDIR.64= $(CONFIGURE_LIBDIR.32)
    44 
    44 
    45 CONFIGURE_OPTIONS += -n
       
    46 CONFIGURE_OPTIONS += --enable-cppflags="$(CPP_LARGEFILES)"
    45 CONFIGURE_OPTIONS += --enable-cppflags="$(CPP_LARGEFILES)"
    47 CONFIGURE_OPTIONS += --enable-dynamic
    46 CONFIGURE_OPTIONS += --enable-dynamic
    48 CONFIGURE_OPTIONS += --enable-etcdir=$(ETCDIR)
    47 CONFIGURE_OPTIONS += --enable-etcdir=$(ETCDIR)
    49 CONFIGURE_OPTIONS += --enable-function-subdirs
    48 CONFIGURE_OPTIONS += --enable-function-subdirs
    50 # Zsh uses the compiler to link, so we need to pass CC_BITS, not LD_BITS.
    49 # Zsh uses the compiler to link, so we need to pass CC_BITS, not LD_BITS.
    51 CONFIGURE_OPTIONS += --enable-ldflags="$(CC_BITS) -zignore"
    50 CONFIGURE_OPTIONS += --enable-ldflags="$(CC_BITS) -zignore"
    52 ifeq ($(OS_VERSION),5.11)
    51 ifeq ($(OS_VERSION),5.11)
    53 CONFIGURE_OPTIONS += --enable-libs="-lnsl"
    52 CONFIGURE_OPTIONS += --enable-libs="-lnsl"
    54 endif
    53 endif
       
    54 CONFIGURE_OPTIONS += --enable-additional-fpath=/usr/share/zsh/vendor-functions/Completion
    55 CONFIGURE_OPTIONS += --enable-maildir-support
    55 CONFIGURE_OPTIONS += --enable-maildir-support
    56 CONFIGURE_OPTIONS += --enable-multibyte
    56 CONFIGURE_OPTIONS += --enable-multibyte
    57 CONFIGURE_OPTIONS += --enable-pcre
    57 CONFIGURE_OPTIONS += --enable-pcre
    58 CONFIGURE_OPTIONS += --with-tcsetpgrp
    58 CONFIGURE_OPTIONS += --with-tcsetpgrp
    59 CONFIGURE_OPTIONS += --disable-gdbm
    59 CONFIGURE_OPTIONS += --disable-gdbm
    60 
       
    61 # pcre-config --libs unnecessarily emits "-R$(USRLIBDIR64)"; we remove it so that it
       
    62 # doesn't end up in the binaries.
       
    63 COMPONENT_POST_CONFIGURE_ACTION = \
       
    64 	(cd $(@D); \
       
    65 	sed -e "s,-R$(USRLIBDIR64),," \
       
    66 		config.status > config.status.new; \
       
    67 	mv config.status.new config.status; \
       
    68 	chmod 755 config.status; \
       
    69 	./config.status)
       
    70 
    60 
    71 COMPOVERRIDES = $(shell test -d find && find Completion -type f -print)
    61 COMPOVERRIDES = $(shell test -d find && find Completion -type f -print)
    72 
    62 
    73 $(PROTOETCDIR)/%: % $(PROTOETCDIR)
    63 $(PROTOETCDIR)/%: % $(PROTOETCDIR)
    74 	$(INS.file)
    64 	$(INS.file)
    75 
    65 
    76 $(PROTOETCDIR)/zprofile: $(PROTOETCDIR)
    66 $(PROTOETCDIR)/zprofile: $(PROTOETCDIR)
    77 	$(RM) $@; $(SYMLINK) profile $@
    67 	$(RM) $@; $(SYMLINK) profile $@
    78 
       
    79 # makepro.awk leaves turds behind when using gawk 3.1.5 and a UTF-8 locale.
       
    80 # Upgrading gawk would fix the problem, but for now, all we can do is change
       
    81 # the language.
       
    82 COMPONENT_BUILD_ENV += LC_ALL=C
       
    83 
    68 
    84 # The configure test for NIS tests to make sure that NIS is working, not whether
    69 # The configure test for NIS tests to make sure that NIS is working, not whether
    85 # it's available to compile against.  We actually want to go through the switch
    70 # it's available to compile against.  We actually want to go through the switch
    86 # in all cases, so we force it off, regardless of whether the build environment
    71 # in all cases, so we force it off, regardless of whether the build environment
    87 # has it enabled.
    72 # has it enabled.