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 |
#
|
|
22 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
23 |
# Use is subject to license terms.
|
|
24 |
#
|
|
25 |
#ident "@(#)Makefile.sfw 1.3 09/05/07 SMI"
|
|
26 |
#
|
|
27 |
|
|
28 |
# Change this ip updating the package version.
|
|
29 |
PKGNAME=stunnel
|
|
30 |
VER=4.25
|
|
31 |
PROG=$(PKGNAME)-$(VER)
|
|
32 |
CLOBBERFILES=stunnel.pod test_stun stunnel.man
|
|
33 |
PREFIX=${ROOT}/usr
|
|
34 |
XMLDIR=${ROOT}/var/svc/manifest/network/ssl
|
|
35 |
LIBDIR=${ROOT}/usr/lib
|
|
36 |
XMLFILE=stunnel.xml
|
|
37 |
BINDIR=${PREFIX}/bin
|
|
38 |
SHAREDIR=${PREFIX}/share
|
|
39 |
MANDIR=${SHAREDIR}/man/man${MANSECTION}
|
|
40 |
DATE=`date '+%e %b %Y'`
|
|
41 |
POD2MAN=/usr/perl5/5.8.4/bin/pod2man
|
|
42 |
|
|
43 |
include ../Makefile.cmd
|
|
44 |
|
|
45 |
CONFIGURE_OPTIONS += --with-ssl=/usr
|
|
46 |
CONFIGURE_OPTIONS += --sysconfdir=/etc
|
|
47 |
|
|
48 |
SFW_PATH="$(SPRO_VROOT)/bin:/usr/perl5/bin:/usr/sfw/bin:$(PATH)"
|
|
49 |
CPPFLAGS="-I/usr/sfw/include"
|
|
50 |
LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib"
|
|
51 |
|
|
52 |
all: $(PROG)/config.status
|
|
53 |
(cd $(PROG); env - \
|
|
54 |
CC=$(CC) \
|
|
55 |
CPPFLAGS=$(CPPFLAGS) \
|
|
56 |
LDFLAGS=$(LDFLAGS) \
|
|
57 |
PATH=$(SFW_PATH) \
|
|
58 |
MAKE=$(CCSMAKE) $(CCSMAKE))
|
|
59 |
|
|
60 |
$(PROG)/configure: $(PROG).tar.gz
|
|
61 |
/usr/bin/gunzip -dc $(PROG).tar.gz | \
|
|
62 |
$(GTAR) xpf - --no-same-owner
|
|
63 |
touch $(PROG)/configure
|
|
64 |
find $(PROG) -type d -exec /usr/bin/chmod 755 "{}" \;
|
|
65 |
find $(PROG) -type f -exec /usr/bin/chmod ugo+r "{}" \;
|
|
66 |
|
|
67 |
$(PROG)/config.status: $(PROG)/configure
|
|
68 |
(cd $(PROG); env - \
|
|
69 |
CC=$(CC) \
|
|
70 |
CPPFLAGS=$(CPPFLAGS) \
|
|
71 |
LDFLAGS=$(LDFLAGS) \
|
|
72 |
PATH=$(SFW_PATH) \
|
|
73 |
MAKE=$(CCSMAKE) \
|
|
74 |
./configure $(CONFIGURE_OPTIONS))
|
|
75 |
|
|
76 |
install: all
|
|
77 |
$(SHELL) ./install-sfw ${PKGNAME} $(VER)
|
|
78 |
|
|
79 |
clean:
|
|
80 |
rm -rf $(PROG)
|
|
81 |
|
|
82 |
include ../Makefile.targ
|