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