1999-01-09 12:55:50 +00:00
|
|
|
# New ports collection makefile for: OpenSSL
|
1999-03-26 08:42:49 +00:00
|
|
|
# Version required: 0.9.2b
|
1999-01-09 12:55:50 +00:00
|
|
|
# Date created: Sun Jan 3 19:36:27 CET 1999
|
|
|
|
# Whom: Dirk Froemberg <dirk@FreeBSD.ORG>
|
1996-03-03 21:32:35 +00:00
|
|
|
#
|
1999-03-26 08:42:49 +00:00
|
|
|
# $Id: Makefile,v 1.27 1999/03/06 11:36:22 dirk Exp $
|
1998-08-21 22:04:29 +00:00
|
|
|
#
|
1996-03-03 21:32:35 +00:00
|
|
|
|
1999-03-26 08:42:49 +00:00
|
|
|
DISTNAME= openssl-0.9.2b
|
|
|
|
CATEGORIES= devel security
|
|
|
|
MASTER_SITES= http://www.openssl.org/source/ \
|
|
|
|
ftp://ftp.openssl.org/source/ \
|
|
|
|
ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/ \
|
|
|
|
ftp://ftp.cert.dfn.de/pub/tools/net/openssl/source/
|
1998-10-26 05:52:02 +00:00
|
|
|
|
1999-03-26 08:42:49 +00:00
|
|
|
MAINTAINER= dirk@FreeBSD.ORG
|
1999-03-06 11:36:23 +00:00
|
|
|
|
1999-03-26 08:42:49 +00:00
|
|
|
WWW_SITE= http://www.openssl.org/
|
1999-01-09 10:36:18 +00:00
|
|
|
|
1999-03-26 08:42:49 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
RESTRICTED= "Cryptography"
|
|
|
|
USE_PERL5= yes
|
|
|
|
MAKE_ENV= PERL="${PERL}"
|
1996-07-29 19:57:58 +00:00
|
|
|
|
1997-08-15 15:32:11 +00:00
|
|
|
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
|
|
|
|
pre-fetch:
|
1999-01-09 12:55:50 +00:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You must set variable USA_RESIDENT to YES, if you are USA resident"
|
1999-03-06 11:36:23 +00:00
|
|
|
@${ECHO} "or to NO, if you aren't USA resident to build this package."
|
1999-01-09 12:55:50 +00:00
|
|
|
@${ECHO} "You must also have installed RSAREF if you are USA resident."
|
|
|
|
@${FALSE}
|
1997-08-15 15:32:11 +00:00
|
|
|
.elif defined(USA_RESIDENT)
|
1999-01-12 23:18:59 +00:00
|
|
|
.if ${USA_RESIDENT} == YES && !defined(I_HAVE_AN_RSA_LICENSE)
|
1999-03-26 08:42:49 +00:00
|
|
|
LIB_DEPENDS= rsaref.2:${PORTSDIR}/security/rsaref
|
1997-08-15 15:32:11 +00:00
|
|
|
|
|
|
|
post-configure:
|
1999-01-09 12:55:50 +00:00
|
|
|
${PATCH} ${PATCH_ARGS} < ${FILESDIR}/Makefile.patch
|
1997-08-15 15:32:11 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
1996-12-03 11:32:53 +00:00
|
|
|
|
1999-03-26 08:42:49 +00:00
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} \
|
|
|
|
&& ${SETENV} CC="${CC}" CFLAGS="${CFLAGS}" PERL="${PERL}" ./config \
|
|
|
|
&& ${PERL} util/ssldir.pl ${PREFIX}
|
|
|
|
|
1996-12-03 11:32:53 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
1999-01-09 12:55:50 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/openssl
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/openssl
|
1996-12-03 11:32:53 +00:00
|
|
|
.endif
|
|
|
|
|
1996-03-03 21:32:35 +00:00
|
|
|
.include <bsd.port.mk>
|