20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 BUILD_BITS= 64 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
|
28 PATH=/usr/bin:/usr/gnu/bin |
|
29 |
27 |
30 COMPONENT_NAME= vim |
28 COMPONENT_NAME= vim |
31 COMPONENT_VERSION= 7.4 |
29 COMPONENT_VERSION= 7.4 |
32 IPS_COMPONENT_VERSION= $(shell echo $(HG_REV) | sed -e 's/-/./g' -e 's/v//') |
30 IPS_COMPONENT_VERSION= $(shell echo $(HG_REV) | sed -e 's/-/./g' -e 's/v//') |
33 # COMPONENT_SRC* is autodefined by the prep-{SCM} Makefile fragment |
31 # COMPONENT_SRC* is autodefined by the prep-{SCM} Makefile fragment |
36 HG_REPO= https://vim.googlecode.com/hg |
34 HG_REPO= https://vim.googlecode.com/hg |
37 HG_REV= v7-4 |
35 HG_REV= v7-4 |
38 HG_HASH= sha256:0c823290aebf4ea341be2f8280cc5906cdbbf772c54fa675afb0845983f23b60 |
36 HG_HASH= sha256:0c823290aebf4ea341be2f8280cc5906cdbbf772c54fa675afb0845983f23b60 |
39 |
37 |
40 |
38 |
41 COMPONENT_BUGDB= utility/vim |
|
42 |
|
43 TPNO= 21780 |
39 TPNO= 21780 |
44 |
40 |
45 include $(WS_MAKE_RULES)/prep.mk |
41 INSTALL_TARGET= |
46 include $(WS_MAKE_RULES)/configure.mk |
42 include $(WS_MAKE_RULES)/common.mk |
47 include $(WS_MAKE_RULES)/ips.mk |
|
48 |
43 |
49 PATCH_LEVEL = 0 |
44 PATCH_LEVEL = 0 |
50 |
45 |
51 PKG_MACROS += VIMVER=vim74 |
46 PKG_MACROS += VIMVER=vim74 |
52 |
|
53 ASLR_MODE = $(ASLR_ENABLE) |
|
54 |
47 |
55 X_VARIANT = $(BUILD_DIR)/$(MACH64)-gvim |
48 X_VARIANT = $(BUILD_DIR)/$(MACH64)-gvim |
56 NOX_VARIANT = $(BUILD_DIR)/$(MACH64)-vim |
49 NOX_VARIANT = $(BUILD_DIR)/$(MACH64)-vim |
57 |
50 |
58 VARIANTS = $(X_VARIANT) $(NOX_VARIANT) |
51 VARIANTS = $(X_VARIANT) $(NOX_VARIANT) |
68 TEST_64 = $(NOX_VARIANT)/.tested |
61 TEST_64 = $(NOX_VARIANT)/.tested |
69 |
62 |
70 # Necessary to pass 64-bit flags to the link stage. |
63 # Necessary to pass 64-bit flags to the link stage. |
71 CC += $(CC_BITS) |
64 CC += $(CC_BITS) |
72 |
65 |
73 # Put all the binaries directly in /usr/bin, not in /usr/bin/64. |
|
74 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
|
75 |
|
76 # Necessary to pass 64-bit flags to the compilation stage. |
|
77 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
78 CONFIGURE_OPTIONS += --with-features=huge |
66 CONFIGURE_OPTIONS += --with-features=huge |
79 CONFIGURE_OPTIONS += --with-compiledby="the Solaris Userland build environment" |
67 CONFIGURE_OPTIONS += --with-compiledby="the Solaris Userland build environment" |
80 CONFIGURE_OPTIONS += --with-modified-by="Solaris Userland <[email protected]>" |
68 CONFIGURE_OPTIONS += --with-modified-by="Solaris Userland <[email protected]>" |
81 CONFIGURE_OPTIONS += --enable-luainterp=dynamic |
69 CONFIGURE_OPTIONS += --enable-luainterp=dynamic |
82 # XXX Perl compilation fails, for some reason. |
70 # XXX Perl compilation fails, for some reason. |
110 |
98 |
111 $(BUILD_DIR)/license: $(SOURCE_DIR)/runtime/doc/uganda.txt |
99 $(BUILD_DIR)/license: $(SOURCE_DIR)/runtime/doc/uganda.txt |
112 nawk '/begin of license/ {p=1; getline; next} /end of license/ {p=0} p == 1 {print}' $< > $@ |
100 nawk '/begin of license/ {p=1; getline; next} /end of license/ {p=0} p == 1 {print}' $< > $@ |
113 |
101 |
114 # common targets |
102 # common targets |
115 configure: $(CONFIGURE_64) |
|
116 |
|
117 build: $(BUILD_64) |
|
118 |
|
119 install: $(INSTALL_64) $(X_VARIANT)/.built $(BUILD_DIR)/license |
103 install: $(INSTALL_64) $(X_VARIANT)/.built $(BUILD_DIR)/license |
120 |
|
121 test: $(TEST_64) |
|
122 |
|
123 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
124 |
|
125 |
104 |
126 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf |
105 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf |
127 REQUIRED_PACKAGES += library/desktop/gtk2 |
106 REQUIRED_PACKAGES += library/desktop/gtk2 |
128 REQUIRED_PACKAGES += library/desktop/pango |
107 REQUIRED_PACKAGES += library/desktop/pango |
129 REQUIRED_PACKAGES += library/glib2 |
108 REQUIRED_PACKAGES += library/glib2 |
130 REQUIRED_PACKAGES += library/ncurses |
109 REQUIRED_PACKAGES += library/ncurses |
131 REQUIRED_PACKAGES += shell/ksh93 |
110 REQUIRED_PACKAGES += shell/ksh93 |
132 REQUIRED_PACKAGES += system/library |
|
133 REQUIRED_PACKAGES += system/library/math |
111 REQUIRED_PACKAGES += system/library/math |
134 REQUIRED_PACKAGES += x11/library/libice |
112 REQUIRED_PACKAGES += x11/library/libice |
135 REQUIRED_PACKAGES += x11/library/libsm |
113 REQUIRED_PACKAGES += x11/library/libsm |
136 REQUIRED_PACKAGES += x11/library/libx11 |
114 REQUIRED_PACKAGES += x11/library/libx11 |
137 REQUIRED_PACKAGES += x11/library/libxcursor |
115 REQUIRED_PACKAGES += x11/library/libxcursor |