components/mutt/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Fri, 02 Dec 2011 16:56:03 -0800
changeset 608 bef78732195b
parent 587 9cc973a7ad62
child 800 2ad056ed89ec
permissions -rw-r--r--
7076617 flea tries to run /ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
257
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     1
#
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     3
#
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     7
#
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    12
#
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    18
#
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    20
#
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    21
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    22
#
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    24
#
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    25
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    27
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		mutt
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	1.5.21
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	sha1:a8475f2618ce5d5d33bff85c0affdf21ab1d76b9
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL=	ftp://ftp.mutt.org/mutt/devel/$(COMPONENT_ARCHIVE)
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    34
COMPONENT_PROJECT_URL=	http://www.mutt.org/
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    35
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    36
include ../../make-rules/prep.mk
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    37
include ../../make-rules/configure.mk
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    38
include ../../make-rules/ips.mk
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    39
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    40
CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    41
CONFIGURE_OPTIONS  +=		--sysconfdir="$(ETCDIR)/$(COMPONENT_NAME)"
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    42
CONFIGURE_OPTIONS  +=		--enable-pop
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    43
CONFIGURE_OPTIONS  +=		--enable-imap
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    44
CONFIGURE_OPTIONS  +=		--enable-smtp
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS  +=		--enable-hcache
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS  +=		--with-gdbm
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    47
CONFIGURE_OPTIONS  +=		--with-regex
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    48
CONFIGURE_OPTIONS  +=		--with-slang
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    49
CONFIGURE_OPTIONS  +=		--with-ssl
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    50
CONFIGURE_OPTIONS  +=		--with-idn
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    51
CFLAGS +=			-I"$(USRINCDIR)/idn"
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    52
CONFIGURE_OPTIONS  +=		--with-wc-funcs
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    53
CONFIGURE_OPTIONS  +=		--with-sasl
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    54
608
bef78732195b 7076617 flea tries to run /ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc
Rich Burridge <rich.burridge@oracle.com>
parents: 587
diff changeset
    55
# Add in the C compiler information to the muttbug (a.k.a. flea) script.
bef78732195b 7076617 flea tries to run /ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc
Rich Burridge <rich.burridge@oracle.com>
parents: 587
diff changeset
    56
COMPONENT_POST_CONFIGURE_ACTION = \
bef78732195b 7076617 flea tries to run /ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc
Rich Burridge <rich.burridge@oracle.com>
parents: 587
diff changeset
    57
	$(GSED) -i 's%XXX-CUSAGE-XXX%$(shell $(CC) -V 2>&1 | head -1)%' \
bef78732195b 7076617 flea tries to run /ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc
Rich Burridge <rich.burridge@oracle.com>
parents: 587
diff changeset
    58
	$(BUILD_DIR_32)/muttbug.sh 
bef78732195b 7076617 flea tries to run /ws/onnv-tools/SUNWspro/sunstudio12.1/bin/cc
Rich Burridge <rich.burridge@oracle.com>
parents: 587
diff changeset
    59
257
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    60
# common targets
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    61
build:		$(BUILD_32)
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    62
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    63
install:	$(INSTALL_32)
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    64
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    65
test:		$(NO_TESTS)
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    66
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    67
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    68
31daaf0e6143 7037057 Move mutt to Userland
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    69
include ../../make-rules/depend.mk