components/emacs/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Fri, 04 Oct 2013 10:19:05 -0700
changeset 1496 f774cfa29f53
parent 1282 16201bef295c
child 1546 618d0a2031f6
permissions -rw-r--r--
17389915 default userland gcc should be gcc4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
686
b4fe91eb660b 7087610 emacs runpath points at wrong ELFCLASS as well as being redundant
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents: 609
diff changeset
    26
COMPONENT_VERSION=	23.4
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)
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
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=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 686
diff changeset
    31
    sha256:26576f9e664397c729f78f5ffcd092969251988461896fe8793062346ee988b9
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
# This code is built with gcc. The primary reason for this is that the
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    62
# configure script has problems using a non-GNU cpp. I am not aware of
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    63
# any reason Sun Studio could not be made to work, but simply made a
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    64
# cost/benefit decision not to pursue it at this time
1496
f774cfa29f53 17389915 default userland gcc should be gcc4
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1282
diff changeset
    65
COMPILER =	gcc3
176
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    66
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    67
# 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
    68
# 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
    69
#CONFIGURE_PREFIX =	$(PROTO_DIR)/usr
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    70
686
b4fe91eb660b 7087610 emacs runpath points at wrong ELFCLASS as well as being redundant
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents: 609
diff changeset
    71
# 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
    72
# 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
    73
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
    74
176
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    75
# 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
    76
CONFIGURE_OPTIONS +=	CC="$(CC) -m64"
176
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    77
CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    78
CONFIGURE_OPTIONS +=	--datarootdir=$(CONFIGURE_PREFIX)/share
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    79
CONFIGURE_OPTIONS +=	--libexecdir=$(CONFIGURE_PREFIX)/lib
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    80
CONFIGURE_OPTIONS +=	--with-gif=no
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    81
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
    82
1138
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1058
diff changeset
    83
# ASLR should remain disabled for emacs (the default); 
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1058
diff changeset
    84
# build consistently core dumps with ASLR
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
    85
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
    86
176
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    87
# variant specific configure options
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    88
$(BUILD_DIR)/%-nox/.configured: CONFIGURE_OPTIONS +=	--without-x
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    89
$(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
    90
$(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
    91
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    92
# 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
    93
# 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
    94
# 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
    95
# 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
    96
#
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    97
# 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
    98
# 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
    99
# 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
   100
# facilitates the use of 'gmake sample-manifest'.
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   101
PBIN=		$(PROTO_DIR)/usr/bin
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   102
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
   103
PGBIN=		$(PROTO_DIR)/usr/gnu/bin
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   104
PGSHAREMAN1=	$(PROTO_DIR)/usr/gnu/share/man/man1
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   105
PSHAREMAN1=	$(PROTO_DIR)/usr/share/man/man1
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   106
PVAR=		$(PROTO_DIR)/var
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
# Remove emacs existing emacs executables/script from usr/bin
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 += $(RM) $(PBIN)/emacs $(PBIN)/emacs-* ;
176
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   110
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   111
# 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
   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
	$(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
   114
		$(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
   115
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
   116
	$(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
   117
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   118
# 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
   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
	$(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
   121
		$(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
   122
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
   123
	$(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
   124
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   125
# 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
   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
	$(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
   128
		$(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
   129
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
   130
	$(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
   131
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   132
# 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
   133
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
   134
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
   135
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   136
# ctags and etags go in /usr/gnu/bin instead of /usr/bin
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
   137
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
   138
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
   139
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   140
# 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
   141
# 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
   142
# 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
   143
# 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
   144
COMPONENT_POST_INSTALL_ACTION += $(RM) -r $(PVAR) ;
176
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   145
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
   146
# 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
   147
# 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
   148
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
   149
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
   150
	$(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
   151
		$(PETC)/DOC-$(COMPONENT_VERSION).1 ;
176
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   152
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
   153
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
   154
	$(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
   155
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
   156
	$(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
   157
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
   158
	$(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
   159
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
   160
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
   161
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
   162
	$(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
   163
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
   164
	$(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
   165
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   166
# 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
   167
# 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
   168
# 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
   169
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
   170
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   171
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   172
# common targets
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   173
build:          $(BUILD_64)
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
install:	$(BUILD_64) $(BUILD_DIR)/$(MACH64)-x/.installed 
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   176
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   177
test:
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   178
	@echo "no tests available"
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
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   181
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   182
include ../../make-rules/depend.mk