#
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
#ident "@(#)Makefile.sfw 1.4 10/04/22 SMI"
# Change this ip updating the package version.
PKGNAME=stunnel
VER=4.25
PROG=$(PKGNAME)-$(VER)
CLOBBERFILES=stunnel.pod test_stun stunnel.man
PREFIX=${ROOT}/usr
XMLDIR=${ROOT}/lib/svc/manifest/network/ssl
LIBDIR=${ROOT}/usr/lib
XMLFILE=stunnel.xml
BINDIR=${PREFIX}/bin
SHAREDIR=${PREFIX}/share
MANDIR=${SHAREDIR}/man/man${MANSECTION}
DATE=`date '+%e %b %Y'`
POD2MAN=/usr/perl5/5.10.0/bin/pod2man
include ../Makefile.cmd
CONFIGURE_OPTIONS += --with-ssl=/usr
CONFIGURE_OPTIONS += --sysconfdir=/etc
SFW_PATH="$(SPRO_VROOT)/bin:/usr/perl5/bin:/usr/sfw/bin:$(PATH)"
CPPFLAGS="-I/usr/sfw/include"
LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib"
all: $(PROG)/config.status
(cd $(PROG); env - \
CC=$(CC) \
CPPFLAGS=$(CPPFLAGS) \
LDFLAGS=$(LDFLAGS) \
PATH=$(SFW_PATH) \
MAKE=$(CCSMAKE) $(CCSMAKE))
$(PROG)/configure: $(PROG).tar.gz
/usr/bin/gunzip -dc $(PROG).tar.gz | \
$(GTAR) xpf - --no-same-owner
touch $(PROG)/configure
find $(PROG) -type d -exec /usr/bin/chmod 755 "{}" \;
find $(PROG) -type f -exec /usr/bin/chmod ugo+r "{}" \;
$(PROG)/config.status: $(PROG)/configure
(cd $(PROG); env - \
CC=$(CC) \
CPPFLAGS=$(CPPFLAGS) \
LDFLAGS=$(LDFLAGS) \
PATH=$(SFW_PATH) \
MAKE=$(CCSMAKE) \
./configure $(CONFIGURE_OPTIONS))
install: all
$(SHELL) ./install-sfw ${PKGNAME} $(VER)
clean:
rm -rf $(PROG)
include ../Makefile.targ