Makefile revision 1273
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# CDDL HEADER START
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# The contents of this file are subject to the terms of the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Common Development and Distribution License (the "License").
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You may not use this file except in compliance with the License.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# See the License for the specific language governing permissions
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# and limitations under the License.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# CDDL HEADER END
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssoninclude ../../make-rules/shared-macros.mk
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCOMPONENT_NAME= mutt
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCOMPONENT_VERSION= 1.5.21
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCOMPONENT_ARCHIVE_HASH= \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson sha256:2141f36e8d0f4f71c9ca6780001e7cc679fe313e643953fc07f001223e67c4a0
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCOMPONENT_ARCHIVE_URL= ftp://ftp.mutt.org/mutt/devel/$(COMPONENT_ARCHIVE)
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCOMPONENT_PROJECT_URL= http://www.mutt.org/
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCOMPONENT_BUGDB= utility/mutt
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssoninclude ../../make-rules/prep.mk
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssoninclude ../../make-rules/configure.mk
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssoninclude ../../make-rules/ips.mk
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR)/$(COMPONENT_NAME)"
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --enable-pop
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --enable-imap
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --enable-smtp
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --enable-hcache
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --with-gdbm
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --with-regex
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --with-slang
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --with-ssl
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --with-idn
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCFLAGS += -I"$(USRINCDIR)/idn"
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --with-wc-funcs
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += --with-sasl
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Add in the C compiler information to the muttbug (a.k.a. flea) script.
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCOMPONENT_POST_CONFIGURE_ACTION = \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson $(GSED) -i 's%XXX-CUSAGE-XXX%$(shell $(CC) -V 2>&1 | head -1)%' \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson $(BUILD_DIR_32)/muttbug.sh
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# common targets
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssonbuild: $(BUILD_32)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssoninstall: $(INSTALL_32)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssontest: $(NO_TESTS)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssoninclude ../../make-rules/depend.mk
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson