usr/src/cmd/fetchmail/Makefile.sfw
author Cyril Plisko <cyril.plisko@grigale.com>
Tue, 06 Apr 2010 16:00:14 +0300
changeset 11 87960ed158f9
parent 6 1fb1123973f8
child 12 12fc69ddc5a5
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)

#
# 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.6	10/03/16 SMI"
#

include ../Makefile.cmd

#
# Macros
#

PROJECT = $(COMPONENT_NAME:sh)
VER = $(PROJECT)-$(COMPONENT_VERSION:sh)
PKG = mail/fetchmail
TARBALL = $(COMPONENT_ARCHIVE:sh)

PYTHONBIN=$(PYTHON26)
PYTHONDIR=$(CFGLIB)/python2.6/vendor-packages

POST_PROCESS_MAN = $(SRC)/tools/sunman \
	-n "$(PROJECT)" -p "$(PKG)" -s Committed \
	$(ROOTMAN1)/fetchmail.1

# Options for configure script
CONFIGURE_OPTIONS += $(SFW_ENV)
CONFIGURE_OPTIONS += CC="$(CC)"
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
CONFIGURE_OPTIONS += INSTALL="$(INSTALL)"
CONFIGURE_OPTIONS += INSTALL_DATA='$${INSTALL} -m 444'
CONFIGURE_OPTIONS += PYTHON="$(PYTHONBIN)"
CONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHONDIR)"
CONFIGURE_OPTIONS += --with-kerberos5
CONFIGURE_OPTIONS += --with-ssl="$(ROOT)$(CFGPREFIX)"
CONFIGURE_OPTIONS += --enable-NTLM

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

#
# Targets
#

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

install: all
	(cd $(VER); env - $(INSTALL_ENV) $(SFW_MAKE) install \
	    DESTDIR="$(ROOT)")
	$(RM) $(ROOT)$(PYTHONDIR)/fetchmailconf.py[co]
	$(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_UNPACKED)
	$(TOUCH) $@

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

install_h:

include ../Makefile.targ