Makefile revision 5680
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
1935N/ACOMPONENT_VERSION= 7.4
4194N/AIPS_COMPONENT_VERSION= $(shell echo $(HG_REV) | sed -e 's/-/./g' -e 's/v//')
4194N/A# COMPONENT_SRC* is autodefined by the prep-{SCM} Makefile fragment
198N/ACOMPONENT_PROJECT_URL= http://www.vim.org/
4194N/A
4194N/AHG_REPO= https://vim.googlecode.com/hg
4194N/AHG_REV= v7-4
4199N/AHG_HASH= sha256:0c823290aebf4ea341be2f8280cc5906cdbbf772c54fa675afb0845983f23b60
4199N/A
198N/A
3896N/ATPNO= 21780
3896N/A
5680N/AINSTALL_TARGET=
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
198N/A
198N/APATCH_LEVEL = 0
198N/A
1935N/APKG_MACROS += VIMVER=vim74
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)
198N/A
198N/A# Only install the non-X variant. We will cherry-pick gvim out of the build
198N/A# directory to avoid re-installing everything.
1579N/AINSTALL_64 = $(NOX_VARIANT)/.installed
1579N/A
1579N/ATEST_64 = $(NOX_VARIANT)/.tested
1579N/A
1579N/A# Necessary to pass 64-bit flags to the link stage.
1579N/ACC += $(CC_BITS)
198N/A
198N/ACONFIGURE_OPTIONS += --with-features=huge
379N/ACONFIGURE_OPTIONS += --with-compiledby="the Solaris Userland build environment"
379N/ACONFIGURE_OPTIONS += --with-modified-by="Solaris Userland <userland-discuss@opensolaris.org>"
379N/ACONFIGURE_OPTIONS += --enable-luainterp=dynamic
379N/A# XXX Perl compilation fails, for some reason.
379N/A# - Perl_croak_nocontext is redefined (embed.h, line 5157), having something to
379N/A# do with PERL_IMPLICIT_CONTEXT, which is discussed in perlguts(1). This is
379N/A# just a warning, but looks like it might have nasty consequences.
379N/A# - The declaration of Perl_Gthr_key_ptr() has a problem with its argument of
379N/A# type pTHX. if_perl.xs defines that to void if it's not already defined,
379N/A# but perl.h probably does something else to it, not sure what yet. This
379N/A# also appears to have something to do with PERL_IMPLICIT_CONTEXT.
379N/A# CONFIGURE_OPTIONS += --enable-perlinterp=dynamic
379N/ACONFIGURE_OPTIONS += --enable-pythoninterp=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
198N/A$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-gui=gtk2
198N/A$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-gtk2-check
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
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
1579N/Ainstall: $(INSTALL_64) $(X_VARIANT)/.built $(BUILD_DIR)/license
198N/A
3817N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
3817N/AREQUIRED_PACKAGES += library/desktop/gtk2
3817N/AREQUIRED_PACKAGES += library/desktop/pango
3817N/AREQUIRED_PACKAGES += library/glib2
3817N/AREQUIRED_PACKAGES += library/ncurses
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library/math
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