0
|
1 |
#
|
|
2 |
# CDDL HEADER START
|
|
3 |
#
|
|
4 |
# The contents of this file are subject to the terms of the
|
|
5 |
# Common Development and Distribution License (the "License").
|
|
6 |
# You may not use this file except in compliance with the License.
|
|
7 |
#
|
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
9 |
# or http://www.opensolaris.org/os/licensing.
|
|
10 |
# See the License for the specific language governing permissions
|
|
11 |
# and limitations under the License.
|
|
12 |
#
|
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
15 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
6
|
18 |
#
|
0
|
19 |
# CDDL HEADER END
|
|
20 |
#
|
6
|
21 |
|
|
22 |
#
|
|
23 |
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
|
0
|
24 |
# Use is subject to license terms.
|
|
25 |
#
|
11
|
26 |
#pragma ident "@(#)Makefile.sfw 1.6 10/03/16 SMI"
|
6
|
27 |
#
|
0
|
28 |
|
|
29 |
include ../Makefile.cmd
|
|
30 |
|
|
31 |
#
|
|
32 |
# Macros
|
|
33 |
#
|
|
34 |
|
6
|
35 |
PROJECT = $(COMPONENT_NAME:sh)
|
|
36 |
VER = $(PROJECT)-$(COMPONENT_VERSION:sh)
|
11
|
37 |
PKG = mail/fetchmail
|
6
|
38 |
TARBALL = $(COMPONENT_ARCHIVE:sh)
|
0
|
39 |
|
6
|
40 |
PYTHONBIN=$(PYTHON26)
|
|
41 |
PYTHONDIR=$(CFGLIB)/python2.6/vendor-packages
|
0
|
42 |
|
|
43 |
POST_PROCESS_MAN = $(SRC)/tools/sunman \
|
|
44 |
-n "$(PROJECT)" -p "$(PKG)" -s Committed \
|
6
|
45 |
$(ROOTMAN1)/fetchmail.1
|
|
46 |
|
|
47 |
# Options for configure script
|
|
48 |
CONFIGURE_OPTIONS += $(SFW_ENV)
|
|
49 |
CONFIGURE_OPTIONS += CC="$(CC)"
|
|
50 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
|
|
51 |
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
|
|
52 |
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
|
|
53 |
CONFIGURE_OPTIONS += INSTALL="$(INSTALL)"
|
|
54 |
CONFIGURE_OPTIONS += INSTALL_DATA='$${INSTALL} -m 444'
|
|
55 |
CONFIGURE_OPTIONS += PYTHON="$(PYTHONBIN)"
|
|
56 |
CONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHONDIR)"
|
|
57 |
CONFIGURE_OPTIONS += --with-kerberos5
|
|
58 |
CONFIGURE_OPTIONS += --with-ssl="$(ROOT)$(CFGPREFIX)"
|
|
59 |
CONFIGURE_OPTIONS += --enable-NTLM
|
|
60 |
|
|
61 |
# Environment for target install (required by install-proto and friends)
|
|
62 |
INSTALL_ENV = SRC="$(SRC)"
|
|
63 |
INSTALL_ENV += ROOT="$(ROOT)"
|
|
64 |
INSTALL_ENV += PYTHON="$(PYTHONBIN)"
|
0
|
65 |
|
|
66 |
#
|
|
67 |
# Targets
|
|
68 |
#
|
|
69 |
|
6
|
70 |
all: $(VER)/config.status
|
|
71 |
(cd $(VER); env - $(SFW_MAKE))
|
0
|
72 |
|
|
73 |
install: all
|
6
|
74 |
(cd $(VER); env - $(INSTALL_ENV) $(SFW_MAKE) install \
|
|
75 |
DESTDIR="$(ROOT)")
|
0
|
76 |
$(RM) $(ROOT)$(PYTHONDIR)/fetchmailconf.py[co]
|
|
77 |
$(POST_PROCESS_MAN)
|
|
78 |
|
6
|
79 |
$(VER)/config.status: $(VER)/configure
|
|
80 |
(cd $(VER); env - \
|
|
81 |
CONFIG_SHELL=$(CONFIG_SHELL) \
|
|
82 |
$(CONFIG_SHELL) ./configure $(CONFIGURE_OPTIONS))
|
0
|
83 |
|
6
|
84 |
$(VER)/configure: $(VER)/$(SFW_STAMP_UNPACKED)
|
0
|
85 |
$(TOUCH) $@
|
|
86 |
|
|
87 |
clean:
|
6
|
88 |
-$(RM) -r $(VER)
|
0
|
89 |
|
|
90 |
install_h:
|
|
91 |
|
|
92 |
include ../Makefile.targ
|