# New ports collection makefile for:	pine4-ssl
# Version required:     1.3
# Date created:		29 Jul 1999
# Whom:			Nick Sayer <nsayer@freebsd.org>
#
# $FreeBSD$
#
# I spent a <strong>very frustrating</strong> half hour with portlint
# on this one and could never get it to fewer than 8 frigging warnings.
# Good luck to you. :-P

PKGNAME=        pine4-ssl-4.10.1.3

DISTNAME=	pine4+ssl-1.3

DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		pine4.10${EXTRACT_SUFX}

CATEGORIES=	mail news

MAINTAINER=	nsayer@freebsd.org

BUILD_DEPENDS=	${PREFIX}/lib/librsaref.a:${PORTSDIR}/security/rsaref
LIB_DEPENDS=	crypto.1:${PORTSDIR}/security/openssl \
		ssl.1:${PORTSDIR}/security/openssl

EXTRACT_ONLY=	pine4.10${EXTRACT_SUFX}

RESTRICTED=	"Contains cryptography - no export from US"

WRKSRC=		${WRKDIR}/pine4.10

MASTERDIR=	${.CURDIR}/../pine4

FILESDIR=	${.CURDIR}/files

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE='Please fill out the form at http://www.kfu.com/~nsayer/encryption/pine.html and place the sources at ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} then run make again'
.endif

post-extract:
	( cd ${WRKSRC} ; tar xfz ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} )

do-build:
	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ./build bsf EXTRAAUTHENTICATORS=ssl)

.include "${MASTERDIR}/Makefile"