author | Jon Tibble <meths@btinternet.com> |
Fri, 10 Feb 2012 16:19:42 +0000 | |
branch | oi_151a |
changeset 114 | b6d40d0a7b17 |
parent 46 | 9c200dad5ecc |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# |
|
3 |
# CDDL HEADER START |
|
4 |
# |
|
5 |
# The contents of this file are subject to the terms of the |
|
6 |
# Common Development and Distribution License (the "License"). |
|
7 |
# You may not use this file except in compliance with the License. |
|
8 |
# |
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
10 |
# or http://www.opensolaris.org/os/licensing. |
|
11 |
# See the License for the specific language governing permissions |
|
12 |
# and limitations under the License. |
|
13 |
# |
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
16 |
# If applicable, add the following below this CDDL HEADER, with the |
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
19 |
||
20 |
# CDDL HEADER END |
|
21 |
# |
|
46
9c200dad5ecc
Import sfw nuild 149
Cyril Plisko <cyril.plisko@grigale.com>
parents:
11
diff
changeset
|
22 |
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 23 |
# |
46
9c200dad5ecc
Import sfw nuild 149
Cyril Plisko <cyril.plisko@grigale.com>
parents:
11
diff
changeset
|
24 |
#ident "@(#)Makefile.sfw 1.4 10/09/03 SMI" |
0 | 25 |
|
26 |
include ../Makefile.cmd |
|
27 |
||
28 |
# |
|
29 |
# Macros |
|
30 |
# |
|
31 |
||
32 |
VER = 3.22 |
|
33 |
PROJECT = procmail |
|
34 |
PROD = $(PROJECT)-$(VER) |
|
11 | 35 |
PKG = mail/procmail |
0 | 36 |
GZFILE = $(PROD).tar.gz |
37 |
||
38 |
LDFLAGS += \ |
|
39 |
-L$(ROOT)/usr/lib \ |
|
40 |
-M $(SRC)/cmd/mapfile_noexstk \ |
|
41 |
-z ignore |
|
42 |
||
43 |
POST_PROCESS_BIN = $(SRC)/tools/post_process \ |
|
44 |
$(ROOT)/usr/bin/formail \ |
|
45 |
$(ROOT)/usr/bin/lockfile \ |
|
46 |
$(ROOT)/usr/bin/procmail |
|
47 |
||
48 |
POST_PROCESS_MAN = $(SRC)/tools/sunman \ |
|
49 |
-n "$(PROJECT)" -p "$(PKG)" -s Committed \ |
|
50 |
$(ROOT)/usr/share/man/man1/procmail.1 \ |
|
51 |
$(ROOT)/usr/share/man/man1/formail.1 \ |
|
52 |
$(ROOT)/usr/share/man/man1/lockfile.1 \ |
|
53 |
$(ROOT)/usr/share/man/man5/procmailrc.5 \ |
|
54 |
$(ROOT)/usr/share/man/man5/procmailsc.5 \ |
|
55 |
$(ROOT)/usr/share/man/man5/procmailex.5 |
|
56 |
||
57 |
# |
|
58 |
# Targets |
|
59 |
# |
|
60 |
||
61 |
all: $(PROD)/Makefile |
|
62 |
(cd $(PROD); $(CCSMAKE) \ |
|
63 |
MANDIR=/usr/share/man \ |
|
64 |
LOCKINGTEST="/tmp /var/tmp ." \ |
|
65 |
CC="$(CC)" \ |
|
66 |
CFLAGS="$(CFLAGS)" \ |
|
67 |
LDFLAGS="$(LDFLAGS)" \ |
|
4 | 68 |
BSHELL=$(BASH) \ |
0 | 69 |
MAKE=$(CCSMAKE) \ |
70 |
all) |
|
71 |
||
72 |
install: all |
|
73 |
(cd $(PROD); $(CCSMAKE) install \ |
|
74 |
MAKE=$(CCSMAKE) \ |
|
75 |
BASENAME="$(ROOT)/usr" \ |
|
4 | 76 |
BSHELL=$(BASH) \ |
0 | 77 |
MANDIR="$(ROOT)/usr/share/man") |
78 |
$(POST_PROCESS_BIN) |
|
79 |
$(POST_PROCESS_MAN) |
|
80 |
||
81 |
$(PROD)/Makefile: $(GZFILE) |
|
82 |
gzcat $^ | $(TAR) xopf - |
|
4 | 83 |
mv $(PROD)/src/Makefile.0 $(PROD)/src/Makefile.0.orig |
84 |
echo "SHELL=$(BASH)" > $(PROD)/src/Makefile.0 |
|
85 |
cat $(PROD)/src/Makefile.0.orig >> $(PROD)/src/Makefile.0 |
|
46
9c200dad5ecc
Import sfw nuild 149
Cyril Plisko <cyril.plisko@grigale.com>
parents:
11
diff
changeset
|
86 |
gpatch -p0 < getline.patches |
0 | 87 |
$(TOUCH) $@ |
88 |
||
89 |
clean: |
|
90 |
-rm -rf $(PROD) |
|
91 |
||
92 |
install_h: |
|
93 |
||
94 |
include ../Makefile.targ |