author | Cyril Plisko <cyril.plisko@grigale.com> |
Tue, 06 Apr 2010 16:00:14 +0300 | |
changeset 11 | 87960ed158f9 |
parent 10 | 612517e396e0 |
child 52 | dba7d4610209 |
permissions | -rw-r--r-- |
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] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
||
22 |
# |
|
10 | 23 |
# Copyright 2010 Sun Microsystems, Inc. All rights reserved. |
0 | 24 |
# Use is subject to license terms. |
25 |
# |
|
11
87960ed158f9
Import sfw build 137
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
26 |
#pragma ident "@(#)Makefile.sfw 1.10 10/03/17 SMI" |
10 | 27 |
# |
0 | 28 |
|
29 |
include ../Makefile.cmd |
|
30 |
||
31 |
# |
|
32 |
# Macros |
|
33 |
# |
|
34 |
||
35 |
PROJECT = $(COMPONENT_NAME:sh) |
|
10 | 36 |
VER = $(PROJECT)-$(COMPONENT_VERSION:sh) |
11
87960ed158f9
Import sfw build 137
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
37 |
PKG = mail/mutt |
10 | 38 |
TARBALL = $(COMPONENT_ARCHIVE:sh) |
0 | 39 |
|
10 | 40 |
CFGETCMUTT = $(CFGETC)/$(PROJECT) |
41 |
DOCDIR = $(CFGDOC)/$(PROJECT) |
|
0 | 42 |
|
43 |
MANFILES_STUBBED = \ |
|
10 | 44 |
"$(ROOTMAN1)/pgpewrap.1" \ |
45 |
"$(ROOTMAN1)/pgpring.1" \ |
|
46 |
"$(ROOTMAN1)/smime_keys.1" |
|
0 | 47 |
|
48 |
# Command to create stubbed man pages |
|
49 |
STUB_MAN = \ |
|
50 |
for f in $(MANFILES_STUBBED); \ |
|
51 |
do \ |
|
52 |
command="`$(ECHO) "$$f" | $(SED) 's@.*/@@; s@\\..*@@'`"; \ |
|
53 |
section="`$(ECHO) "$$f" | $(SED) 's@.*\\.@@'`"; \ |
|
10 | 54 |
$(RM) "$$f"; \ |
0 | 55 |
$(SH) ./stubman.sh "$$command" "$$section" $(DOCDIR) > "$$f"; \ |
10 | 56 |
$(CHMOD) 0444 "$$f"; \ |
0 | 57 |
done; echo |
58 |
||
59 |
POST_PROCESS_MAN = $(SRC)/tools/sunman -n "$(PROJECT)" -p "$(PKG)" \ |
|
10 | 60 |
-s Uncommitted "$(ROOTMAN1)/flea.1" \ |
61 |
-s Uncommitted "$(ROOTMAN1)/mutt.1" \ |
|
62 |
-s Uncommitted "$(ROOTMAN1)/muttbug.1" \ |
|
63 |
-s Volatile "$(ROOTMAN1)/pgpewrap.1" \ |
|
64 |
-s Volatile "$(ROOTMAN1)/pgpring.1" \ |
|
65 |
-s Volatile "$(ROOTMAN1)/smime_keys.1" \ |
|
66 |
-s Committed "$(ROOTMAN5)/mbox.5" \ |
|
67 |
-s Committed "$(ROOTMAN5)/mmdf.5" \ |
|
68 |
-s Volatile "$(ROOTMAN5)/muttrc.5" |
|
69 |
||
70 |
PATCHES:sh = echo Patches/*.patch |
|
0 | 71 |
|
72 |
# Options for configure script |
|
10 | 73 |
CONFIGURE_OPTIONS += $(SFW_ENV) |
74 |
CONFIGURE_OPTIONS += CC="$(CC)" |
|
75 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
76 |
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
|
77 |
CONFIGURE_OPTIONS += INSTALL="$(INSTALL)" |
|
78 |
CONFIGURE_OPTIONS += INSTALL_DATA='$${INSTALL} -m 444' |
|
79 |
CONFIGURE_OPTIONS += --sysconfdir=$(CFGETCMUTT) |
|
0 | 80 |
CONFIGURE_OPTIONS += --enable-pop |
81 |
CONFIGURE_OPTIONS += --enable-imap |
|
82 |
CONFIGURE_OPTIONS += --enable-smtp |
|
10 | 83 |
CONFIGURE_OPTIONS += --enable-hcache |
84 |
CONFIGURE_OPTIONS += --with-gdbm="$(ROOT)$(CFGPREFIX)" |
|
0 | 85 |
CONFIGURE_OPTIONS += --with-regex |
10 | 86 |
CONFIGURE_OPTIONS += --with-slang="$(ROOT)$(CFGPREFIX)" |
87 |
CONFIGURE_OPTIONS += --with-ssl="$(ROOT)$(CFGPREFIX)" |
|
88 |
CONFIGURE_OPTIONS += --with-idn="$(ROOT)$(CFGPREFIX)" |
|
89 |
CFLAGS += -I"$(ROOTINCLUDE)/idn" |
|
1 | 90 |
CONFIGURE_OPTIONS += --with-wc-funcs |
10 | 91 |
CONFIGURE_OPTIONS += --with-sasl |
92 |
||
93 |
# Environment for target install (required by install-proto and friends) |
|
94 |
INSTALL_ENV = SRC="$(SRC)" |
|
95 |
INSTALL_ENV += ROOT="$(ROOT)" |
|
1 | 96 |
|
97 |
# Optimization level |
|
98 |
sparc_COPTFLAG = -xO4 |
|
0 | 99 |
|
100 |
# |
|
101 |
# Targets |
|
102 |
# |
|
103 |
||
10 | 104 |
all: $(VER)/config.status |
105 |
(cd $(VER); env - $(SFW_MAKE)) |
|
0 | 106 |
|
107 |
install: all stubman.sh |
|
10 | 108 |
(cd $(VER); env - $(INSTALL_ENV) $(SFW_MAKE) install \ |
0 | 109 |
DESTDIR="$(ROOT)") |
110 |
$(STUB_MAN) |
|
111 |
$(POST_PROCESS_MAN) |
|
112 |
||
10 | 113 |
$(VER)/config.status: $(VER)/configure |
114 |
(cd $(VER); env - \ |
|
115 |
CONFIG_SHELL=$(CONFIG_SHELL) \ |
|
116 |
$(CONFIG_SHELL) ./configure $(CONFIGURE_OPTIONS)) |
|
117 |
||
118 |
$(VER)/configure: $(VER)/$(SFW_STAMP_PATCHED) |
|
0 | 119 |
$(TOUCH) $@ |
120 |
||
121 |
clean: |
|
10 | 122 |
-$(RM) -r $(VER) |
0 | 123 |
|
124 |
install_h: |
|
125 |
||
126 |
include ../Makefile.targ |