usr/src/cmd/mutt/Makefile.sfw
author Cyril Plisko <cyril.plisko@grigale.com>
Thu, 18 Mar 2010 16:36:00 +0200
changeset 10 612517e396e0
parent 2 8f1801a322e9
child 11 87960ed158f9
permissions -rw-r--r--
Import sfw build 136 Bugs Fixed ---------- 6514945 webmin still refers to xmemfs usr/sfw/lib/webmin/mount/solaris-lib.pl 6633684 [nvb78] Webmin is not integrated with apache2.2 6641988 [nvb79] Webmin interface for mysql badly configured 6780832 Add SASL support to mutt 6796795 copy text from mutt in gnome-terminal to other application is adding spaces 6799158 Update SER to link the MySQL 5.1 instead of the MySQL 4.0 6804425 Mutt doesn't have header cache support 6809910 Webmin 1.170 (Solaris 10): newaliases is not called when clicking Delete on sendmail/edit_alias.cgi 6828622 libnet Makefile invokes gcc directly, it should use $(CC) instead. 6903750 mutt fails to read MH-style mail dirs 6909860 /usr/man/man4/ipmiconsole.conf.4 refer to nonexistent man/man5 man pages in osol_129 and osol_132 6914573 webmin bundled with Solaris vulnerable to three separate XSS vulnerab ilities 6920693 trousers should use newer software 6922082 CVE-2010-0393 - CUPS lppasswd utility vulnerability 6924985 CVE-2010-0302: incomplete fix for CUPS CR#6900557(CVE-2009-3553) 6927042 memleaks in libtspi 6930830 upgrade OpenSSL to 0.9.8m (and fix CVE-2009-3555) 6932600 completion failure with zfs destroy, some problems with _dladm 6933290 After pkg image-update and reboot, tomcat service falls into maintenance 6933533 PSARC/2009/232 implementation breaks nmap 6933649 webmin contains Sun's branding, which should be removed 6934512 Envelope is not redrawn in compose mode after return from the message edit

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#pragma ident	"@(#)Makefile.sfw	1.9	10/03/13 SMI"
#

include ../Makefile.cmd

#
# Macros
#

PROJECT = $(COMPONENT_NAME:sh)
VER = $(PROJECT)-$(COMPONENT_VERSION:sh)
PKG = SUNW$(PROJECT)
TARBALL = $(COMPONENT_ARCHIVE:sh)

CFGETCMUTT = $(CFGETC)/$(PROJECT)
DOCDIR = $(CFGDOC)/$(PROJECT)

MANFILES_STUBBED = \
	"$(ROOTMAN1)/pgpewrap.1" \
	"$(ROOTMAN1)/pgpring.1" \
	"$(ROOTMAN1)/smime_keys.1"

# Command to create stubbed man pages
STUB_MAN = \
	for f in $(MANFILES_STUBBED); \
	do \
	    command="`$(ECHO) "$$f" | $(SED) 's@.*/@@; s@\\..*@@'`"; \
	    section="`$(ECHO) "$$f" | $(SED) 's@.*\\.@@'`"; \
	    $(RM) "$$f"; \
	    $(SH) ./stubman.sh "$$command" "$$section" $(DOCDIR) > "$$f"; \
	    $(CHMOD) 0444 "$$f"; \
	done; echo

POST_PROCESS_MAN = $(SRC)/tools/sunman -n "$(PROJECT)" -p "$(PKG)" \
	-s Uncommitted	"$(ROOTMAN1)/flea.1" \
	-s Uncommitted	"$(ROOTMAN1)/mutt.1" \
	-s Uncommitted	"$(ROOTMAN1)/muttbug.1" \
	-s Volatile	"$(ROOTMAN1)/pgpewrap.1" \
	-s Volatile	"$(ROOTMAN1)/pgpring.1" \
	-s Volatile	"$(ROOTMAN1)/smime_keys.1" \
	-s Committed	"$(ROOTMAN5)/mbox.5" \
	-s Committed	"$(ROOTMAN5)/mmdf.5" \
	-s Volatile	"$(ROOTMAN5)/muttrc.5"

PATCHES:sh = echo Patches/*.patch

# Options for configure script
CONFIGURE_OPTIONS += $(SFW_ENV)
CONFIGURE_OPTIONS += CC="$(CC)"
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
CONFIGURE_OPTIONS += INSTALL="$(INSTALL)"
CONFIGURE_OPTIONS += INSTALL_DATA='$${INSTALL} -m 444'
CONFIGURE_OPTIONS += --sysconfdir=$(CFGETCMUTT)
CONFIGURE_OPTIONS += --enable-pop
CONFIGURE_OPTIONS += --enable-imap
CONFIGURE_OPTIONS += --enable-smtp
CONFIGURE_OPTIONS += --enable-hcache
CONFIGURE_OPTIONS += --with-gdbm="$(ROOT)$(CFGPREFIX)"
CONFIGURE_OPTIONS += --with-regex
CONFIGURE_OPTIONS += --with-slang="$(ROOT)$(CFGPREFIX)"
CONFIGURE_OPTIONS += --with-ssl="$(ROOT)$(CFGPREFIX)"
CONFIGURE_OPTIONS += --with-idn="$(ROOT)$(CFGPREFIX)"
CFLAGS += -I"$(ROOTINCLUDE)/idn"
CONFIGURE_OPTIONS += --with-wc-funcs
CONFIGURE_OPTIONS += --with-sasl

# Environment for target install (required by install-proto and friends)
INSTALL_ENV = SRC="$(SRC)"
INSTALL_ENV += ROOT="$(ROOT)"

# Optimization level
sparc_COPTFLAG = -xO4

#
# Targets
#

all: $(VER)/config.status
	(cd $(VER); env - $(SFW_MAKE))

install: all stubman.sh
	(cd $(VER); env - $(INSTALL_ENV) $(SFW_MAKE) install \
	    DESTDIR="$(ROOT)")
	$(STUB_MAN)
	$(POST_PROCESS_MAN)

$(VER)/config.status: $(VER)/configure
	(cd $(VER); env - \
	    CONFIG_SHELL=$(CONFIG_SHELL) \
	    $(CONFIG_SHELL) ./configure $(CONFIGURE_OPTIONS))

$(VER)/configure: $(VER)/$(SFW_STAMP_PATCHED)
	$(TOUCH) $@

clean:
	-$(RM) -r $(VER)

install_h:

include ../Makefile.targ