16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
|
21 |
|
22 # |
21 # 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. |
22 # |
24 # |
23 |
|
24 # As Solaris always has a 64-bit kernel, and 64-bit emacs can handle larger |
25 # As Solaris always has a 64-bit kernel, and 64-bit emacs can handle larger |
25 # files, we only build and deliver 64-bit binaries. |
26 # files, we only build and deliver 64-bit binaries. |
26 BITS=64 |
27 BUILD_BITS= 64 |
27 include ../../make-rules/shared-macros.mk |
28 include ../../make-rules/shared-macros.mk |
28 |
29 |
29 COMPONENT_NAME= emacs |
30 COMPONENT_NAME= emacs |
30 COMPONENT_VERSION= 24.5 |
31 COMPONENT_VERSION= 24.5 |
31 COMPONENT_PROJECT_URL= http://www.gnu.org/software/emacs/ |
|
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
34 COMPONENT_ARCHIVE_HASH= \ |
32 COMPONENT_ARCHIVE_HASH= \ |
35 sha256:2737a6622fb2d9982e9c47fb6f2fb297bda42674e09db40fc9bcc0db4297c3b6 |
33 sha256:2737a6622fb2d9982e9c47fb6f2fb297bda42674e09db40fc9bcc0db4297c3b6 |
36 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/emacs/$(COMPONENT_ARCHIVE) |
|
37 COMPONENT_BUGDB= utility/emacs |
|
38 |
34 |
39 TPNO= 23457 |
35 TPNO= 23457 |
40 |
36 |
41 include $(WS_MAKE_RULES)/prep.mk |
37 INSTALL_TARGET= |
42 include $(WS_MAKE_RULES)/configure.mk |
38 # The upstream emacs distribution does not have tests to be run |
43 include $(WS_MAKE_RULES)/ips.mk |
39 # from this target. |
|
40 TEST_TARGET= $(NO_TESTS) |
|
41 include $(WS_MAKE_RULES)/gnu-component.mk |
44 |
42 |
45 # We patch the configure.ac file. Get the new configure generated during prep. |
43 # We patch the configure.ac file. Get the new configure generated during prep. |
46 COMPONENT_PREP_ACTION = (cd $(@D) ; aclocal -I m4; autoconf ) |
44 COMPONENT_PREP_ACTION = (cd $(@D) ; aclocal -I m4; autoconf ) |
47 |
45 |
48 # We build three different variants of emacs for our users. |
46 # We build three different variants of emacs for our users. |
70 # for initial bringup of new emacs versions, but can only be used up through |
68 # for initial bringup of new emacs versions, but can only be used up through |
71 # the 'gmake build' stage. |
69 # the 'gmake build' stage. |
72 # |
70 # |
73 #CONFIGURE_PREFIX = $(PROTO_DIR)/usr |
71 #CONFIGURE_PREFIX = $(PROTO_DIR)/usr |
74 |
72 |
75 # configure env common to all variants of emacs that we want to build. |
|
76 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
77 |
|
78 # The configure script runs the pkg-config command. This allows it to |
73 # The configure script runs the pkg-config command. This allows it to |
79 # find the non-default GnuTLS v3 library. |
74 # find the non-default GnuTLS v3 library. |
80 CONFIGURE_ENV += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig/gnutls-3 |
75 CONFIGURE_ENV += PKG_CONFIG_PATH=$(PKG_CONFIG_PATH.64)/gnutls-3 |
81 |
76 |
82 # Never use xmkmf to find X11 libraries from autoconf. They are all available |
77 # Never use xmkmf to find X11 libraries from autoconf. They are all available |
83 # from standard system locations, and we don't want the ld -L option that |
78 # from standard system locations, and we don't want the ld -L option that |
84 # gets injected. |
79 # gets injected. |
85 CONFIGURE_ENV += XMKMF="false" |
80 CONFIGURE_ENV += XMKMF="false" |
213 COMPONENT_POST_INSTALL_ACTION += $(GUNZIP) \ |
208 COMPONENT_POST_INSTALL_ACTION += $(GUNZIP) \ |
214 $(PROTO_DIR)/usr/share/info/*.gz \ |
209 $(PROTO_DIR)/usr/share/info/*.gz \ |
215 $(PROTO_DIR)/usr/share/man/man1/*.gz ; |
210 $(PROTO_DIR)/usr/share/man/man1/*.gz ; |
216 |
211 |
217 # common targets |
212 # common targets |
218 configure: $(CONFIGURE_64) |
|
219 |
|
220 build: $(BUILD_64) |
|
221 |
|
222 install: $(BUILD_64) $(BUILD_DIR)/$(MACH64)-x/.installed |
213 install: $(BUILD_64) $(BUILD_DIR)/$(MACH64)-x/.installed |
223 |
|
224 # The upstream emacs distribution does not have tests to be run |
|
225 # from this target. |
|
226 test: $(NO_TESTS) |
|
227 |
|
228 system-test: $(NO_TESTS) |
|
229 |
214 |
230 # Desktop packages differ slightly between S11 & S12: list union to allow |
215 # Desktop packages differ slightly between S11 & S12: list union to allow |
231 # for BUILD_TYPE=evaluation and normal builds. |
216 # for BUILD_TYPE=evaluation and normal builds. |
232 REQUIRED_PACKAGES += editor/gnu-emacs |
217 REQUIRED_PACKAGES += editor/gnu-emacs |
233 REQUIRED_PACKAGES += file/gnu-findutils |
218 REQUIRED_PACKAGES += file/gnu-findutils |
249 REQUIRED_PACKAGES += library/ncurses |
234 REQUIRED_PACKAGES += library/ncurses |
250 REQUIRED_PACKAGES += library/zlib |
235 REQUIRED_PACKAGES += library/zlib |
251 REQUIRED_PACKAGES += runtime/perl-512 |
236 REQUIRED_PACKAGES += runtime/perl-512 |
252 REQUIRED_PACKAGES += runtime/perl-520 |
237 REQUIRED_PACKAGES += runtime/perl-520 |
253 REQUIRED_PACKAGES += shell/ksh93 |
238 REQUIRED_PACKAGES += shell/ksh93 |
254 REQUIRED_PACKAGES += system/library |
|
255 REQUIRED_PACKAGES += system/library/fontconfig |
239 REQUIRED_PACKAGES += system/library/fontconfig |
256 REQUIRED_PACKAGES += system/library/freetype-2 |
240 REQUIRED_PACKAGES += system/library/freetype-2 |
257 REQUIRED_PACKAGES += system/library/math |
241 REQUIRED_PACKAGES += system/library/math |
258 REQUIRED_PACKAGES += x11/library/libice |
242 REQUIRED_PACKAGES += x11/library/libice |
259 REQUIRED_PACKAGES += x11/library/libsm |
243 REQUIRED_PACKAGES += x11/library/libsm |