components/emacs/Makefile
author Ron Jordan <ron.jordan@oracle.com>
Mon, 20 Feb 2012 15:10:50 -0800
branchs11-sru
changeset 2245 33f69d07ad8a
parent 519 64d5e70ee0eb
child 609 775168282b2f
permissions -rw-r--r--
7131685 Need to upgrade openssl to 1.0.0g for CVE-2012-0050 7146824 S11 SRU openssl-1.0.0 Makefile variables unnecessarily differ from S11 Update
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
#
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    21
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
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
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    26
COMPONENT_VERSION=	23.1
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_ARCHIVE_HASH=	sha1:5f2d5dfcc17e7627ea752f675c605fe37c9c145c
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/emacs/$(COMPONENT_ARCHIVE)
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    31
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    32
include ../../make-rules/prep.mk
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    33
include ../../make-rules/configure.mk
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    34
include ../../make-rules/ips.mk
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    35
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    36
# 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
    37
# 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
    38
# we only build and deliver 64-bit binaries.
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    39
VARIANTS =	nox x gtk
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    40
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    41
BUILD_64 = $(VARIANTS:%=$(BUILD_DIR)/$(MACH64)-%/.built)
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    42
INSTALL_64 = $(VARIANTS:%=$(BUILD_DIR)/$(MACH64)-%/.installed)
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
# 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
    45
# 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
    46
# 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
    47
# 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
    48
EMACS_ULEV_PFX = $(MACH:sparc=sparc-sun)
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    49
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
    50
PKG_MACROS +=	EMACS_ULEVDIR=$(EMACS_ULEVDIR)
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    51
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    52
# 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
    53
# 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
    54
#
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    55
LD_MAP_NOEXSTK.sparc=
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    56
LD_MAP_NOEXDATA.sparc=
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
# 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
    59
# 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
    60
# 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
    61
# cost/benefit decision not to pursue it at this time
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    62
COMPILER =	gcc
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    63
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    64
# 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
    65
# 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
    66
#CONFIGURE_PREFIX =	$(PROTO_DIR)/usr
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    67
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    68
# 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
    69
CONFIGURE_OPTIONS +=	CC="$(CC) -m64"
176
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    70
CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    71
CONFIGURE_OPTIONS +=	--datarootdir=$(CONFIGURE_PREFIX)/share
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    72
CONFIGURE_OPTIONS +=	--libexecdir=$(CONFIGURE_PREFIX)/lib
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    73
CONFIGURE_OPTIONS +=	--with-gif=no
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    74
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
    75
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    76
# variant specific configure options
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    77
$(BUILD_DIR)/%-nox/.configured: CONFIGURE_OPTIONS +=	--without-x
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    78
$(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
    79
$(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
    80
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    81
# 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
    82
# 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
    83
# 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
    84
# 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
    85
#
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    86
# 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
    87
# 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
    88
# 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
    89
# facilitates the use of 'gmake sample-manifest'.
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    90
PBIN=		$(PROTO_DIR)/usr/bin
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    91
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
    92
PGBIN=		$(PROTO_DIR)/usr/gnu/bin
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    93
PGSHAREMAN1=	$(PROTO_DIR)/usr/gnu/share/man/man1
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    94
PSHAREMAN1=	$(PROTO_DIR)/usr/share/man/man1
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
    95
PVAR=		$(PROTO_DIR)/var
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
# 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
    98
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
    99
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   100
# 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
   101
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
   102
	$(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
   103
		$(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
   104
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
   105
	$(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
   106
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   107
# 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
   108
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
   109
	$(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
   110
		$(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
   111
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
   112
	$(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
   113
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   114
# 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
   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
	$(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
   117
		$(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
   118
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
   119
	$(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
   120
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   121
# 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
   122
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
   123
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
   124
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   125
# 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
   126
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
   127
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
   128
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   129
# 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
   130
# 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
   131
# 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
   132
# 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
   133
COMPONENT_POST_INSTALL_ACTION += $(RM) -r $(PVAR) ;
176
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   134
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
   135
# 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
   136
# 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
   137
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
   138
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
   139
	$(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
   140
		$(PETC)/DOC-$(COMPONENT_VERSION).1 ;
176
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   141
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
   142
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
   143
	$(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
   144
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
   145
	$(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
   146
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
   147
	$(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
   148
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
   149
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
   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) $(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
   152
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
   153
	$(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
   154
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   155
# 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
   156
# 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
   157
# 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
   158
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
   159
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   160
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   161
# common targets
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   162
build:          $(BUILD_64)
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   163
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   164
install:	$(BUILD_64) $(BUILD_DIR)/$(MACH64)-x/.installed 
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
test:
11a04b640bf2 7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
diff changeset
   167
	@echo "no tests available"
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
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
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
include ../../make-rules/depend.mk