author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Mon, 17 Feb 2014 23:01:48 -0800 | |
changeset 1718 | 5a3e08904211 |
parent 1546 | 618d0a2031f6 |
child 1948 | 2d1537e7942d |
permissions | -rw-r--r-- |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
1138
6e1f85fa0151
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
1058
diff
changeset
|
21 |
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
23 |
include ../../make-rules/shared-macros.mk |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
24 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
25 |
COMPONENT_NAME= emacs |
1546
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
26 |
COMPONENT_VERSION= 24.3 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
519
diff
changeset
|
27 |
COMPONENT_PROJECT_URL= http://www.gnu.org/software/emacs/ |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
28 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
1546
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
29 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
686
diff
changeset
|
30 |
COMPONENT_ARCHIVE_HASH= \ |
1546
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
31 |
sha256:0098ca3204813d69cd8412045ba33e8701fa2062f4bff56bedafc064979eef41 |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/emacs/$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
33 |
COMPONENT_BUGDB= utility/emacs |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
34 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
35 |
include ../../make-rules/prep.mk |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
36 |
include ../../make-rules/configure.mk |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
37 |
include ../../make-rules/ips.mk |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
38 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
39 |
# we build three different variants of emacs for our users. As Solaris |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
40 |
# always has a 64-bit kernel, and 64-bit emacs can handle larger files, |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
41 |
# we only build and deliver 64-bit binaries. |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
42 |
VARIANTS = nox x gtk |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
43 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
44 |
BUILD_64 = $(VARIANTS:%=$(BUILD_DIR)/$(MACH64)-%/.built) |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
45 |
INSTALL_64 = $(VARIANTS:%=$(BUILD_DIR)/$(MACH64)-%/.installed) |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
46 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
47 |
# emacs creates a directory in usr/lib/emacs/$(COMPONENT_VERSION) that |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
48 |
# contains the platform name. Although the name is platform dependent, |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
49 |
# the files inside it are the same on all platforms. By adding this |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
50 |
# to the pkgmogrify macros, we can write our manifests in a portable way. |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
51 |
EMACS_ULEV_PFX = $(MACH:sparc=sparc-sun) |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
52 |
EMACS_ULEVDIR = $(EMACS_ULEV_PFX:i386=x86_64-pc)-solaris$(SOLARIS_VERSION) |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
53 |
PKG_MACROS += EMACS_ULEVDIR=$(EMACS_ULEVDIR) |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
54 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
55 |
# LD_OPTIONS is defined to apply desirable link-editor options to Userland |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
56 |
# components. Non-executable stack and data break sparc emacs. |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
57 |
# |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
58 |
LD_MAP_NOEXSTK.sparc= |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
59 |
LD_MAP_NOEXDATA.sparc= |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
60 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
61 |
# Uncomment this for debugging only. It configures emacs to run from the |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
62 |
# local proto instead of from its final installed location. |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
63 |
#CONFIGURE_PREFIX = $(PROTO_DIR)/usr |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
64 |
|
686
b4fe91eb660b
7087610 emacs runpath points at wrong ELFCLASS as well as being redundant
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
609
diff
changeset
|
65 |
# The configure script runs the pkg-config command. Since we're building |
b4fe91eb660b
7087610 emacs runpath points at wrong ELFCLASS as well as being redundant
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
609
diff
changeset
|
66 |
# 64-bit executables, we need pkg-config to use the 64-bit metadata files |
b4fe91eb660b
7087610 emacs runpath points at wrong ELFCLASS as well as being redundant
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
609
diff
changeset
|
67 |
CONFIGURE_ENV += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig |
b4fe91eb660b
7087610 emacs runpath points at wrong ELFCLASS as well as being redundant
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
609
diff
changeset
|
68 |
|
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
69 |
# configure options common to all variants of emacs that we want to build. |
519
64d5e70ee0eb
7086596 userland problems on 173
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
414
diff
changeset
|
70 |
CONFIGURE_OPTIONS += CC="$(CC) -m64" |
1546
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
71 |
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) --with-compress-info=no |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
72 |
CONFIGURE_OPTIONS += --datarootdir=$(CONFIGURE_PREFIX)/share |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
73 |
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
74 |
CONFIGURE_OPTIONS += --with-gif=no |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
75 |
CONFIGURE_OPTIONS += ac_cv_sys_long_file_names=yes |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
76 |
|
1546
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
77 |
# ASLR should remain disabled for emacs (the default). ASLR undermines |
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
78 |
# emacs's dumping code, which requires every execution to have the same |
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
79 |
# mappings. Since emacs is not network facing, or run with elevated |
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
80 |
# privileges, this is not a security concern. |
1282
16201bef295c
16659836 enable ASLR for cmake, libmemcached, pconsole, pcre, php-5_2, php-5_3, ruby 1.8
April Chin <april.chin@oracle.com>
parents:
1138
diff
changeset
|
81 |
ASLR_MODE = $(ASLR_DISABLE) |
1138
6e1f85fa0151
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
1058
diff
changeset
|
82 |
|
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
83 |
# variant specific configure options |
1546
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
84 |
$(BUILD_DIR)/%-nox/.configured: CONFIGURE_OPTIONS += --without-all --without-x |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
85 |
$(BUILD_DIR)/%-x/.configured: CONFIGURE_OPTIONS += --with-x-toolkit=lucid |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
86 |
$(BUILD_DIR)/%-gtk/.configured: CONFIGURE_OPTIONS += --with-x-toolkit=gtk |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
87 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
88 |
# we need to build all variants, but only have to install one in order |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
89 |
# to get the common files shared by all. We use COMPONENT_POST_INSTALL_ACTION |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
90 |
# to remove unwanted files, copy the emacs binaries from the other tookit |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
91 |
# builds into place, and install the additional files we provide. |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
92 |
# |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
93 |
# Note that this tweaking is not required, as the proto need not match |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
94 |
# the packaging. However, doing it this way allows us to examine the proto |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
95 |
# as a finished and complete product, simplifies debugging emacs, and |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
96 |
# facilitates the use of 'gmake sample-manifest'. |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
97 |
PBIN= $(PROTO_DIR)/usr/bin |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
98 |
PETC= $(PROTO_DIR)/usr/share/emacs/$(COMPONENT_VERSION)/etc |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
99 |
PGBIN= $(PROTO_DIR)/usr/gnu/bin |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
100 |
PGSHAREMAN1= $(PROTO_DIR)/usr/gnu/share/man/man1 |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
101 |
PSHAREMAN1= $(PROTO_DIR)/usr/share/man/man1 |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
102 |
PVAR= $(PROTO_DIR)/var |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
103 |
|
1546
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
104 |
# Remove existing emacs executable from usr/bin, so that we can replace |
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
105 |
# it with our script. |
414
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
106 |
COMPONENT_POST_INSTALL_ACTION += $(RM) $(PBIN)/emacs $(PBIN)/emacs-* ; |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
107 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
108 |
# GTK binaries |
414
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
109 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
110 |
$(CP) $(BUILD_DIR)/$(MACH64)-gtk/src/emacs-$(COMPONENT_VERSION).1 \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
111 |
$(PBIN)/emacs-gtk ; |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
112 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
113 |
$(LN) $(PBIN)/emacs-gtk $(PBIN)/emacs-gtk-$(COMPONENT_VERSION) ; |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
114 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
115 |
# Non-X11 binaries |
414
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
116 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
117 |
$(CP) $(BUILD_DIR)/$(MACH64)-nox/src/emacs-$(COMPONENT_VERSION).1 \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
118 |
$(PBIN)/emacs-nox ; |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
119 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
120 |
$(LN) $(PBIN)/emacs-nox $(PBIN)/emacs-nox-$(COMPONENT_VERSION) ; |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
121 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
122 |
# X11 (Athena) binaries |
414
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
123 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
124 |
$(CP) $(BUILD_DIR)/$(MACH64)-x/src/emacs-$(COMPONENT_VERSION).1 \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
125 |
$(PBIN)/emacs-x ; |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
126 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
127 |
$(LN) $(PBIN)/emacs-x $(PBIN)/emacs-x-$(COMPONENT_VERSION) ; |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
128 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
129 |
# Emacs shell script that picks the right variant at runtime |
414
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
130 |
COMPONENT_POST_INSTALL_ACTION += $(CP) augment/emacs $(PBIN) ; |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
131 |
COMPONENT_POST_INSTALL_ACTION += $(CHMOD) +x $(PBIN)/emacs ; |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
132 |
|
1546
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
133 |
# ctags and etags go in /usr/gnu/bin instead of /usr/bin. At this time, |
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
134 |
# etags could arguably go into /usr/bin, but we'd like to preserve the |
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
135 |
# ability to replace the standard Solaris /usr/bin/ctags, along with |
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
136 |
# both of the ones we're delivering, with Exuberant Ctags. Putting both |
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
137 |
# emacs tags programs in /usr/gnu/bin helps that, and is a simpler story. |
414
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
138 |
COMPONENT_POST_INSTALL_ACTION += $(MKDIR) $(PGBIN) ; |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
139 |
COMPONENT_POST_INSTALL_ACTION += $(MV) $(PBIN)/ctags $(PBIN)/etags $(PGBIN) ; |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
140 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
141 |
# We do not install the files under /var/games/emacs. The reason for |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
142 |
# this is that we do not install update-game-score as setuid, and |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
143 |
# therefore the game files are not usable. This the same decision made |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
144 |
# by Debian, among others. |
414
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
145 |
COMPONENT_POST_INSTALL_ACTION += $(RM) -r $(PVAR) ; |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
146 |
|
414
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
147 |
# The file usr/share/emacs/23.1/etc/DOC-23.1.2 gets installed instead of |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
148 |
# DOC-23.1.1. Remove and replace. |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
149 |
COMPONENT_POST_INSTALL_ACTION += $(RM) $(PETC)/DOC-$(COMPONENT_VERSION).2 ; |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
150 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
151 |
$(CP) $(BUILD_DIR)/$(MACH64)-x/etc/DOC-$(COMPONENT_VERSION).1 \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
152 |
$(PETC)/DOC-$(COMPONENT_VERSION).1 ; |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
153 |
|
1546
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
154 |
# Provide manpages for the emacs variants, which are our creation, refering |
618d0a2031f6
17423911 Emacs occasionally crashes when closing a frame
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
1496
diff
changeset
|
155 |
# the reader to the main emacs(1) manpage. |
414
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
156 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
157 |
$(CP) augment/man/man1/emacs-gtk.1 $(PSHAREMAN1)/emacs-gtk.1 ; |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
158 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
159 |
$(CP) augment/man/man1/emacs-nox.1 $(PSHAREMAN1)/emacs-nox.1 ; |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
160 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
161 |
$(CP) augment/man/man1/emacs-x.1 $(PSHAREMAN1)/emacs-x.1 ; |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
162 |
|
414
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
163 |
COMPONENT_POST_INSTALL_ACTION += $(MKDIR) $(PGSHAREMAN1) ; |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
164 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
165 |
$(CP) $(COMPONENT_SRC)/doc/man/ctags.1 $(PGSHAREMAN1)/ctags.1 ; |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
166 |
COMPONENT_POST_INSTALL_ACTION += \ |
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
167 |
$(CP) $(COMPONENT_SRC)/doc/man/etags.1 $(PGSHAREMAN1)/etags.1 ; |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
168 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
169 |
# Throw away usr/share/info/dir. This file is the topmost node of the Info |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
170 |
# hierarchy. Emacs builds it, as presumably do all GNU packages, but on |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
171 |
# Solaris, it is delivered by system/prerequisite/gnu. |
414
a6a8ec39f4c1
7065951 emacs-x expects DOC-21.1.2, but only DOC-21.1.1 is present
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
181
diff
changeset
|
172 |
COMPONENT_POST_INSTALL_ACTION += $(RM) $(PROTO_DIR)/usr/share/info/dir ; |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
173 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
174 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
175 |
# common targets |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
176 |
build: $(BUILD_64) |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
177 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
178 |
install: $(BUILD_64) $(BUILD_DIR)/$(MACH64)-x/.installed |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
179 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
180 |
test: |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
181 |
@echo "no tests available" |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
182 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
183 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
184 |
|
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff
changeset
|
185 |
include ../../make-rules/depend.mk |