usr/src/cmd/mutt/Makefile.sfw
author Cyril Plisko <cyril.plisko@grigale.com>
Tue, 06 Apr 2010 16:00:14 +0300
changeset 11 87960ed158f9
parent 10 612517e396e0
child 52 dba7d4610209
permissions -rw-r--r--
Import sfw build 137 Bugs Fixed ---------- 6926835 Wireshark cannot open files typed into the location bar 6930214 CVE-2010-0624: Heap-based buffer overflow in GNU Tar 6933424 Various sfw manual pages need to be adjusted to use the new OpenSolaris package names. 6937764 upgrade OpenSSL to 0.9.8n (and fix CVE-2010-0740)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     1
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     2
# CDDL HEADER START
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     3
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     7
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    11
# and limitations under the License.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    12
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    18
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    19
# CDDL HEADER END
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    20
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    21
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    22
#
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    23
# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    24
# Use is subject to license terms.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    25
#
11
87960ed158f9 Import sfw build 137
Cyril Plisko <cyril.plisko@grigale.com>
parents: 10
diff changeset
    26
#pragma ident	"@(#)Makefile.sfw	1.10	10/03/17 SMI"
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    27
#
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    28
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    29
include ../Makefile.cmd
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    30
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    31
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    32
# Macros
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    33
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    34
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    35
PROJECT = $(COMPONENT_NAME:sh)
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    36
VER = $(PROJECT)-$(COMPONENT_VERSION:sh)
11
87960ed158f9 Import sfw build 137
Cyril Plisko <cyril.plisko@grigale.com>
parents: 10
diff changeset
    37
PKG = mail/mutt
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    38
TARBALL = $(COMPONENT_ARCHIVE:sh)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    39
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    40
CFGETCMUTT = $(CFGETC)/$(PROJECT)
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    41
DOCDIR = $(CFGDOC)/$(PROJECT)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    42
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    43
MANFILES_STUBBED = \
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    44
	"$(ROOTMAN1)/pgpewrap.1" \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    45
	"$(ROOTMAN1)/pgpring.1" \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    46
	"$(ROOTMAN1)/smime_keys.1"
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    47
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    48
# Command to create stubbed man pages
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    49
STUB_MAN = \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    50
	for f in $(MANFILES_STUBBED); \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    51
	do \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    52
	    command="`$(ECHO) "$$f" | $(SED) 's@.*/@@; s@\\..*@@'`"; \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    53
	    section="`$(ECHO) "$$f" | $(SED) 's@.*\\.@@'`"; \
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    54
	    $(RM) "$$f"; \
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    55
	    $(SH) ./stubman.sh "$$command" "$$section" $(DOCDIR) > "$$f"; \
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    56
	    $(CHMOD) 0444 "$$f"; \
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    57
	done; echo
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    58
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    59
POST_PROCESS_MAN = $(SRC)/tools/sunman -n "$(PROJECT)" -p "$(PKG)" \
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    60
	-s Uncommitted	"$(ROOTMAN1)/flea.1" \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    61
	-s Uncommitted	"$(ROOTMAN1)/mutt.1" \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    62
	-s Uncommitted	"$(ROOTMAN1)/muttbug.1" \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    63
	-s Volatile	"$(ROOTMAN1)/pgpewrap.1" \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    64
	-s Volatile	"$(ROOTMAN1)/pgpring.1" \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    65
	-s Volatile	"$(ROOTMAN1)/smime_keys.1" \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    66
	-s Committed	"$(ROOTMAN5)/mbox.5" \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    67
	-s Committed	"$(ROOTMAN5)/mmdf.5" \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    68
	-s Volatile	"$(ROOTMAN5)/muttrc.5"
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    69
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    70
PATCHES:sh = echo Patches/*.patch
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    71
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    72
# Options for configure script
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    73
CONFIGURE_OPTIONS += $(SFW_ENV)
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    74
CONFIGURE_OPTIONS += CC="$(CC)"
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    75
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    76
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    77
CONFIGURE_OPTIONS += INSTALL="$(INSTALL)"
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    78
CONFIGURE_OPTIONS += INSTALL_DATA='$${INSTALL} -m 444'
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    79
CONFIGURE_OPTIONS += --sysconfdir=$(CFGETCMUTT)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    80
CONFIGURE_OPTIONS += --enable-pop
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    81
CONFIGURE_OPTIONS += --enable-imap
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    82
CONFIGURE_OPTIONS += --enable-smtp
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    83
CONFIGURE_OPTIONS += --enable-hcache
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    84
CONFIGURE_OPTIONS += --with-gdbm="$(ROOT)$(CFGPREFIX)"
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    85
CONFIGURE_OPTIONS += --with-regex
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    86
CONFIGURE_OPTIONS += --with-slang="$(ROOT)$(CFGPREFIX)"
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    87
CONFIGURE_OPTIONS += --with-ssl="$(ROOT)$(CFGPREFIX)"
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    88
CONFIGURE_OPTIONS += --with-idn="$(ROOT)$(CFGPREFIX)"
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    89
CFLAGS += -I"$(ROOTINCLUDE)/idn"
1
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    90
CONFIGURE_OPTIONS += --with-wc-funcs
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    91
CONFIGURE_OPTIONS += --with-sasl
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    92
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    93
# Environment for target install (required by install-proto and friends)
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    94
INSTALL_ENV = SRC="$(SRC)"
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
    95
INSTALL_ENV += ROOT="$(ROOT)"
1
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    96
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    97
# Optimization level
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    98
sparc_COPTFLAG = -xO4
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    99
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   100
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   101
# Targets
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   102
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   103
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
   104
all: $(VER)/config.status
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
   105
	(cd $(VER); env - $(SFW_MAKE))
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   106
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   107
install: all stubman.sh
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
   108
	(cd $(VER); env - $(INSTALL_ENV) $(SFW_MAKE) install \
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   109
	    DESTDIR="$(ROOT)")
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   110
	$(STUB_MAN)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   111
	$(POST_PROCESS_MAN)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   112
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
   113
$(VER)/config.status: $(VER)/configure
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
   114
	(cd $(VER); env - \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
   115
	    CONFIG_SHELL=$(CONFIG_SHELL) \
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
   116
	    $(CONFIG_SHELL) ./configure $(CONFIGURE_OPTIONS))
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
   117
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
   118
$(VER)/configure: $(VER)/$(SFW_STAMP_PATCHED)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   119
	$(TOUCH) $@
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   120
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   121
clean:
10
612517e396e0 Import sfw build 136
Cyril Plisko <cyril.plisko@grigale.com>
parents: 2
diff changeset
   122
	-$(RM) -r $(VER)
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   123
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   124
install_h:
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   125
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
   126
include ../Makefile.targ