components/vim/Makefile
author Danek Duvall <danek.duvall@oracle.com>
Thu, 15 Sep 2016 11:53:59 -0700
changeset 6911 7b878dfe6f0d
parent 5682 94c0ca64c022
child 7049 e8d705cba87d
permissions -rw-r--r--
24661161 COMPONENT_SRC and COMPONENT_ARCHIVE are un-overridable in prep-*.mk 24662696 gmake clobber in ftp-proxy doesn't remove tarball
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     1
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     3
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     7
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    12
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    18
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    20
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    21
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    22
#
5427
25b736152081 15814060 SUNBT7196216 userland build mangles PKG_MACROS containing whitespace
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5427
diff changeset
    25
BUILD_BITS= 64
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    27
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		vim
1431
9a892a7cb482 17301901 update vim to 7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 1250
diff changeset
    29
COMPONENT_VERSION=	7.4
4196
d697072a92f5 19782029 userland should be able to build from SCM repositories
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3896
diff changeset
    30
IPS_COMPONENT_VERSION=	$(shell echo $(HG_REV) | sed -e 's/-/./g' -e 's/v//')
d697072a92f5 19782029 userland should be able to build from SCM repositories
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3896
diff changeset
    31
# COMPONENT_SRC* is autodefined by the prep-{SCM} Makefile fragment
6911
7b878dfe6f0d 24661161 COMPONENT_SRC and COMPONENT_ARCHIVE are un-overridable in prep-*.mk
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    33
COMPONENT_PROJECT_URL=	http://www.vim.org/
4196
d697072a92f5 19782029 userland should be able to build from SCM repositories
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3896
diff changeset
    34
d697072a92f5 19782029 userland should be able to build from SCM repositories
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3896
diff changeset
    35
HG_REPO=	https://vim.googlecode.com/hg
d697072a92f5 19782029 userland should be able to build from SCM repositories
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3896
diff changeset
    36
HG_REV=		v7-4
4201
1db8af129b18 19782029 userland should be able to build from SCM repositories (fix dependency, hash)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 4196
diff changeset
    37
HG_HASH= sha256:0c823290aebf4ea341be2f8280cc5906cdbbf772c54fa675afb0845983f23b60
1db8af129b18 19782029 userland should be able to build from SCM repositories (fix dependency, hash)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 4196
diff changeset
    38
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    39
3896
9ac96ba60329 20632831 vim 7.4 needs TPNO information
Danek Duvall <danek.duvall@oracle.com>
parents: 3817
diff changeset
    40
TPNO=			21780
9ac96ba60329 20632831 vim 7.4 needs TPNO information
Danek Duvall <danek.duvall@oracle.com>
parents: 3817
diff changeset
    41
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5427
diff changeset
    42
INSTALL_TARGET=
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5427
diff changeset
    43
include $(WS_MAKE_RULES)/common.mk
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    44
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    45
PATCH_LEVEL =	0
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    46
1431
9a892a7cb482 17301901 update vim to 7.4
Danek Duvall <danek.duvall@oracle.com>
parents: 1250
diff changeset
    47
PKG_MACROS +=	VIMVER=vim74
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    48
1250
c7a246ecccbb 16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents: 1058
diff changeset
    49
X_VARIANT =	$(BUILD_DIR)/$(MACH64)-gvim
c7a246ecccbb 16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents: 1058
diff changeset
    50
NOX_VARIANT =	$(BUILD_DIR)/$(MACH64)-vim
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    51
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    52
VARIANTS =	$(X_VARIANT) $(NOX_VARIANT)
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    53
1250
c7a246ecccbb 16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents: 1058
diff changeset
    54
$(VARIANTS:%=%/.configured):	BITS=64
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    55
1250
c7a246ecccbb 16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents: 1058
diff changeset
    56
BUILD_64 = 	$(VARIANTS:%=%/.built)
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    57
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    58
# Only install the non-X variant.  We will cherry-pick gvim out of the build
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    59
# directory to avoid re-installing everything.
1250
c7a246ecccbb 16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents: 1058
diff changeset
    60
INSTALL_64 = 	$(NOX_VARIANT)/.installed
c7a246ecccbb 16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents: 1058
diff changeset
    61
c7a246ecccbb 16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents: 1058
diff changeset
    62
TEST_64 = 	$(NOX_VARIANT)/.tested
c7a246ecccbb 16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents: 1058
diff changeset
    63
c7a246ecccbb 16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents: 1058
diff changeset
    64
# Necessary to pass 64-bit flags to the link stage.
c7a246ecccbb 16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents: 1058
diff changeset
    65
CC +=			$(CC_BITS)
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    66
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    67
CONFIGURE_OPTIONS +=	--with-features=huge
379
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    68
CONFIGURE_OPTIONS +=	--with-compiledby="the Solaris Userland build environment"
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    69
CONFIGURE_OPTIONS +=	--with-modified-by="Solaris Userland <[email protected]>"
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    70
CONFIGURE_OPTIONS +=	--enable-luainterp=dynamic
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    71
# XXX Perl compilation fails, for some reason.
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    72
# - Perl_croak_nocontext is redefined (embed.h, line 5157), having something to
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    73
#   do with PERL_IMPLICIT_CONTEXT, which is discussed in perlguts(1).  This is
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    74
#   just a warning, but looks like it might have nasty consequences.
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    75
# - The declaration of Perl_Gthr_key_ptr() has a problem with its argument of
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    76
#   type pTHX.  if_perl.xs defines that to void if it's not already defined,
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    77
#   but perl.h probably does something else to it, not sure what yet.  This
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    78
#   also appears to have something to do with PERL_IMPLICIT_CONTEXT.
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    79
# CONFIGURE_OPTIONS +=	--enable-perlinterp=dynamic
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    80
CONFIGURE_OPTIONS +=	--enable-pythoninterp=dynamic
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    81
CONFIGURE_OPTIONS +=	--enable-rubyinterp=dynamic
1482
7a1f84fbc2d7 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents: 1431
diff changeset
    82
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    83
# We build two variants: with and without X support.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    84
$(NOX_VARIANT)/.configured:	CONFIGURE_OPTIONS += --without-x
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    85
$(NOX_VARIANT)/.configured:	CONFIGURE_OPTIONS += --disable-gui
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    86
$(NOX_VARIANT)/.configured:	CONFIGURE_OPTIONS += --disable-gtktest
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    87
$(X_VARIANT)/.configured:	CONFIGURE_OPTIONS += --with-vim-name=gvim
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    88
$(X_VARIANT)/.configured:	CONFIGURE_OPTIONS += --with-x
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    89
$(X_VARIANT)/.configured:	CONFIGURE_OPTIONS += --enable-gui=gtk2
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    90
$(X_VARIANT)/.configured:	CONFIGURE_OPTIONS += --enable-gtk2-check
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    91
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    92
# Vim's build is too smart for itself and configure can't run outside of a
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    93
# complete source tree.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    94
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    95
829
92b5de339d33 7166132 vim should be able to run its test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents: 820
diff changeset
    96
COMPONENT_TEST_TARGETS = test
92b5de339d33 7166132 vim should be able to run its test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents: 820
diff changeset
    97
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    98
$(SOURCE_DIR)/runtime/doc/uganda.txt: prep
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    99
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   100
$(BUILD_DIR)/license: $(SOURCE_DIR)/runtime/doc/uganda.txt
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   101
	nawk '/begin of license/ {p=1; getline; next} /end of license/ {p=0} p == 1 {print}' $< > $@
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   102
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   103
# common targets
1250
c7a246ecccbb 16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents: 1058
diff changeset
   104
install:	$(INSTALL_64) $(X_VARIANT)/.built $(BUILD_DIR)/license
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   105
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   106
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   107
REQUIRED_PACKAGES += library/desktop/gtk2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   108
REQUIRED_PACKAGES += library/desktop/pango
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   109
REQUIRED_PACKAGES += library/glib2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   110
REQUIRED_PACKAGES += library/ncurses
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   111
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   112
REQUIRED_PACKAGES += system/library/math
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   113
REQUIRED_PACKAGES += x11/library/libice
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   114
REQUIRED_PACKAGES += x11/library/libsm
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   115
REQUIRED_PACKAGES += x11/library/libx11
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   116
REQUIRED_PACKAGES += x11/library/libxcursor
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   117
REQUIRED_PACKAGES += x11/library/toolkit/libxt