198N/A#
198N/A# CDDL HEADER START
198N/A#
198N/A# The contents of this file are subject to the terms of the
198N/A# Common Development and Distribution License (the "License").
198N/A# You may not use this file except in compliance with the License.
198N/A#
198N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
198N/A# or http://www.opensolaris.org/os/licensing.
198N/A# See the License for the specific language governing permissions
198N/A# and limitations under the License.
198N/A#
198N/A# When distributing Covered Code, include this CDDL HEADER in each
198N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
198N/A# If applicable, add the following below this CDDL HEADER, with the
198N/A# fields enclosed by brackets "[]" replaced with your own identifying
198N/A# information: Portions Copyright [yyyy] [name of copyright owner]
198N/A#
198N/A# CDDL HEADER END
198N/A#
198N/A
198N/A#
5425N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
198N/A#
5680N/ABUILD_BITS= 64
198N/Ainclude ../../make-rules/shared-macros.mk
198N/A
198N/ACOMPONENT_NAME= vim
7047N/ACOMPONENT_VERSION= 8.0
7047N/ACOMPONENT_FULL_VERSION= $(shell echo $(GIT_TAG) | sed -e 's/v//')
7047N/AIPS_COMPONENT_VERSION= $(shell echo $(GIT_TAG) | sed -e 's/v//' -e 's/\.0*\([1-9]\)/.\1/')
7047N/ACOMPONENT_LABEL= $(COMPONENT_FULL_VERSION)
4194N/A# COMPONENT_SRC* is autodefined by the prep-{SCM} Makefile fragment
6909N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
198N/ACOMPONENT_PROJECT_URL= http://www.vim.org/
4194N/A
7047N/AGIT_REPO= git://github.com/vim/vim
7376N/AGIT_TAG= v8.0.0095
7376N/AGIT_COMMIT_ID= 182707a
7376N/AGIT_HASH= sha256:9a9c90d3c5576e7a3e092ec86469529a7386828086d3631eee1b8db4b4c80f37
3896N/A
7376N/ATPNO= 32753
198N/A
7047N/APKG_MACROS += VIMVER=vim$(subst .,,$(COMPONENT_VERSION))
198N/A
1579N/AX_VARIANT = $(BUILD_DIR)/$(MACH64)-gvim
1579N/ANOX_VARIANT = $(BUILD_DIR)/$(MACH64)-vim
198N/A
198N/AVARIANTS = $(X_VARIANT) $(NOX_VARIANT)
198N/A
1579N/A$(VARIANTS:%=%/.configured): BITS=64
198N/A
1579N/ABUILD_64 = $(VARIANTS:%=%/.built)
7047N/AINSTALL_64 = $(VARIANTS:%=%/.installed)
7047N/A# Test only the terminal variant.
1579N/ATEST_64 = $(NOX_VARIANT)/.tested
1579N/A
7047N/Ainclude $(WS_MAKE_RULES)/common.mk
7047N/A
7047N/A# Studio 12.3 and 12.4 allow unknown __attribute__s, but complain about them,
7047N/A# making the build pretty loud about unknown "unused" attributes. If we make
7047N/A# it an error, configure will turn off its use. See bug 20230791.
7047N/ACFLAGS += -errwarn=E_ATTRIBUTE_UNKNOWN
7047N/A
7047N/A# Make sure we use a 64-bit, multithreaded perl
7047N/ACONFIGURE_ENV += vi_cv_path_perl=/usr/perl5/5.22/bin/perl
7047N/A# Vim's configure script looks for a "python3" executable, per PEP 394
7047N/ACONFIGURE_ENV += vi_cv_path_python3=/usr/bin/python3.5
7047N/A# zh_CN.cp936.po has invalid characters which GNU msgfmt seems to be able to ignore.
7047N/ACONFIGURE_ENV += MSGFMT=gmsgfmt
7047N/ACONFIGURE_ENV += SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH)
198N/A
198N/ACONFIGURE_OPTIONS += --with-features=huge
379N/ACONFIGURE_OPTIONS += --with-compiledby="the Solaris Userland build environment"
7047N/ACONFIGURE_OPTIONS += --with-modified-by="Solaris Userland <discuss@solaris-userland.java.net>"
379N/ACONFIGURE_OPTIONS += --enable-luainterp=dynamic
7047N/ACONFIGURE_OPTIONS += --enable-perlinterp=dynamic
379N/ACONFIGURE_OPTIONS += --enable-pythoninterp=dynamic
7047N/ACONFIGURE_OPTIONS += --enable-python3interp=dynamic
379N/ACONFIGURE_OPTIONS += --enable-rubyinterp=dynamic
2032N/A
198N/A# We build two variants: with and without X support.
198N/A$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --without-x
198N/A$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-gui
198N/A$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-gtktest
198N/A$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-vim-name=gvim
198N/A$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-x
7047N/A$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-gui=gtk3
198N/A
198N/A# Vim's build is too smart for itself and configure can't run outside of a
198N/A# complete source tree.
198N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
198N/A
7047N/A# For the GUI, install only the executable itself.
7047N/A$(X_VARIANT)/.installed: COMPONENT_INSTALL_ARGS += -C src
7047N/A$(X_VARIANT)/.installed: COMPONENT_INSTALL_TARGETS = installvimbin
7047N/A
885N/ACOMPONENT_TEST_TARGETS = test
885N/A
198N/A$(SOURCE_DIR)/runtime/doc/uganda.txt: prep
198N/A
198N/A$(BUILD_DIR)/license: $(SOURCE_DIR)/runtime/doc/uganda.txt
198N/A nawk '/begin of license/ {p=1; getline; next} /end of license/ {p=0} p == 1 {print}' $< > $@
198N/A
198N/A# common targets
7047N/Ainstall: $(INSTALL_64) $(BUILD_DIR)/license
7047N/A
198N/A
7047N/AREQUIRED_PACKAGES += library/desktop/cairo
3817N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
7047N/AREQUIRED_PACKAGES += library/desktop/gtk3
3817N/AREQUIRED_PACKAGES += library/desktop/pango
3817N/AREQUIRED_PACKAGES += library/glib2
3817N/AREQUIRED_PACKAGES += library/ncurses
7047N/AREQUIRED_PACKAGES += runtime/lua
7047N/AREQUIRED_PACKAGES += runtime/perl-522
7047N/AREQUIRED_PACKAGES += runtime/python-27
7047N/AREQUIRED_PACKAGES += runtime/python-35
7047N/AREQUIRED_PACKAGES += runtime/ruby-21
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library/math
7047N/AREQUIRED_PACKAGES += text/gnu-gettext
3817N/AREQUIRED_PACKAGES += x11/library/libice
3817N/AREQUIRED_PACKAGES += x11/library/libsm
3817N/AREQUIRED_PACKAGES += x11/library/libx11
3817N/AREQUIRED_PACKAGES += x11/library/libxcursor
3817N/AREQUIRED_PACKAGES += x11/library/toolkit/libxt