author | Shawn Walker-Salas <shawn.walker@oracle.com> |
Wed, 30 Mar 2016 13:33:31 -0700 | |
changeset 5682 | 94c0ca64c022 |
parent 5427 | 25b736152081 |
child 6911 | 7b878dfe6f0d |
permissions | -rw-r--r-- |
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 |
198
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
32 |
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
|
33 |
|
d697072a92f5
19782029 userland should be able to build from SCM repositories
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3896
diff
changeset
|
34 |
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
|
35 |
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
|
36 |
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
|
37 |
|
198
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
38 |
|
3896
9ac96ba60329
20632831 vim 7.4 needs TPNO information
Danek Duvall <danek.duvall@oracle.com>
parents:
3817
diff
changeset
|
39 |
TPNO= 21780 |
9ac96ba60329
20632831 vim 7.4 needs TPNO information
Danek Duvall <danek.duvall@oracle.com>
parents:
3817
diff
changeset
|
40 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5427
diff
changeset
|
41 |
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
|
42 |
include $(WS_MAKE_RULES)/common.mk |
198
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
43 |
|
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
44 |
PATCH_LEVEL = 0 |
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
45 |
|
1431
9a892a7cb482
17301901 update vim to 7.4
Danek Duvall <danek.duvall@oracle.com>
parents:
1250
diff
changeset
|
46 |
PKG_MACROS += VIMVER=vim74 |
198
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
47 |
|
1250
c7a246ecccbb
16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents:
1058
diff
changeset
|
48 |
X_VARIANT = $(BUILD_DIR)/$(MACH64)-gvim |
c7a246ecccbb
16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents:
1058
diff
changeset
|
49 |
NOX_VARIANT = $(BUILD_DIR)/$(MACH64)-vim |
198
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
50 |
|
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
51 |
VARIANTS = $(X_VARIANT) $(NOX_VARIANT) |
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
52 |
|
1250
c7a246ecccbb
16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents:
1058
diff
changeset
|
53 |
$(VARIANTS:%=%/.configured): BITS=64 |
198
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
54 |
|
1250
c7a246ecccbb
16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents:
1058
diff
changeset
|
55 |
BUILD_64 = $(VARIANTS:%=%/.built) |
198
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
56 |
|
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
57 |
# 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
|
58 |
# 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
|
59 |
INSTALL_64 = $(NOX_VARIANT)/.installed |
c7a246ecccbb
16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents:
1058
diff
changeset
|
60 |
|
c7a246ecccbb
16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents:
1058
diff
changeset
|
61 |
TEST_64 = $(NOX_VARIANT)/.tested |
c7a246ecccbb
16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents:
1058
diff
changeset
|
62 |
|
c7a246ecccbb
16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents:
1058
diff
changeset
|
63 |
# 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
|
64 |
CC += $(CC_BITS) |
198
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
65 |
|
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
66 |
CONFIGURE_OPTIONS += --with-features=huge |
379 | 67 |
CONFIGURE_OPTIONS += --with-compiledby="the Solaris Userland build environment" |
68 |
CONFIGURE_OPTIONS += --with-modified-by="Solaris Userland <[email protected]>" |
|
69 |
CONFIGURE_OPTIONS += --enable-luainterp=dynamic |
|
70 |
# XXX Perl compilation fails, for some reason. |
|
71 |
# - Perl_croak_nocontext is redefined (embed.h, line 5157), having something to |
|
72 |
# do with PERL_IMPLICIT_CONTEXT, which is discussed in perlguts(1). This is |
|
73 |
# just a warning, but looks like it might have nasty consequences. |
|
74 |
# - The declaration of Perl_Gthr_key_ptr() has a problem with its argument of |
|
75 |
# type pTHX. if_perl.xs defines that to void if it's not already defined, |
|
76 |
# but perl.h probably does something else to it, not sure what yet. This |
|
77 |
# also appears to have something to do with PERL_IMPLICIT_CONTEXT. |
|
78 |
# CONFIGURE_OPTIONS += --enable-perlinterp=dynamic |
|
79 |
CONFIGURE_OPTIONS += --enable-pythoninterp=dynamic |
|
80 |
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
|
81 |
|
198
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
82 |
# 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
|
83 |
$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --without-x |
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
84 |
$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-gui |
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
85 |
$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-gtktest |
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
86 |
$(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
|
87 |
$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-x |
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
88 |
$(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
|
89 |
$(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
|
90 |
|
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
91 |
# 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
|
92 |
# complete source tree. |
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
93 |
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
|
94 |
|
829
92b5de339d33
7166132 vim should be able to run its test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents:
820
diff
changeset
|
95 |
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
|
96 |
|
198
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
97 |
$(SOURCE_DIR)/runtime/doc/uganda.txt: prep |
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
98 |
|
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
99 |
$(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
|
100 |
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
|
101 |
|
172fc01ce997
7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
102 |
# common targets |
1250
c7a246ecccbb
16609699 update vim to 7.3.882
Danek Duvall <danek.duvall@oracle.com>
parents:
1058
diff
changeset
|
103 |
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
|
104 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
105 |
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
|
106 |
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
|
107 |
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
|
108 |
REQUIRED_PACKAGES += library/glib2 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
109 |
REQUIRED_PACKAGES += library/ncurses |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
110 |
REQUIRED_PACKAGES += shell/ksh93 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
111 |
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
|
112 |
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
|
113 |
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
|
114 |
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
|
115 |
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
|
116 |
REQUIRED_PACKAGES += x11/library/toolkit/libxt |