1999-01-09 07:55:50 -05:00
|
|
|
# New ports collection makefile for: OpenSSL
|
1999-06-06 05:56:03 -04:00
|
|
|
# Version required: 0.9.3a
|
1999-01-09 07:55:50 -05:00
|
|
|
# Date created: Sun Jan 3 19:36:27 CET 1999
|
|
|
|
# Whom: Dirk Froemberg <dirk@FreeBSD.ORG>
|
1996-03-03 16:32:35 -05:00
|
|
|
#
|
1999-06-06 05:56:03 -04:00
|
|
|
# $Id: Makefile,v 1.31 1999/06/02 07:30:30 dirk Exp $
|
1998-08-21 18:04:29 -04:00
|
|
|
#
|
1996-03-03 16:32:35 -05:00
|
|
|
|
1999-06-06 05:56:03 -04:00
|
|
|
DISTNAME= openssl-0.9.3a
|
|
|
|
CATEGORIES= security devel
|
1999-03-26 03:42:49 -05:00
|
|
|
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 00:52:02 -05:00
|
|
|
|
1999-03-26 03:42:49 -05:00
|
|
|
MAINTAINER= dirk@FreeBSD.ORG
|
1999-03-06 06:36:23 -05:00
|
|
|
|
1999-03-26 03:42:49 -05:00
|
|
|
RESTRICTED= "Cryptography"
|
|
|
|
USE_PERL5= yes
|
1996-07-29 15:57:58 -04:00
|
|
|
|
1997-08-15 11:32:11 -04:00
|
|
|
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
|
|
|
|
pre-fetch:
|
1999-01-09 07:55:50 -05:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You must set variable USA_RESIDENT to YES, if you are USA resident"
|
1999-03-06 06:36:23 -05:00
|
|
|
@${ECHO} "or to NO, if you aren't USA resident to build this package."
|
1999-01-09 07:55:50 -05:00
|
|
|
@${ECHO} "You must also have installed RSAREF if you are USA resident."
|
|
|
|
@${FALSE}
|
1997-08-15 11:32:11 -04:00
|
|
|
.elif defined(USA_RESIDENT)
|
1999-01-12 18:18:59 -05:00
|
|
|
.if ${USA_RESIDENT} == YES && !defined(I_HAVE_AN_RSA_LICENSE)
|
1999-03-26 03:42:49 -05:00
|
|
|
LIB_DEPENDS= rsaref.2:${PORTSDIR}/security/rsaref
|
1999-06-02 03:30:52 -04:00
|
|
|
RSAREF= rsaref
|
1997-08-15 11:32:11 -04:00
|
|
|
.endif
|
|
|
|
.endif
|
1996-12-03 06:32:53 -05:00
|
|
|
|
1999-03-26 03:42:49 -05:00
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} \
|
1999-06-02 03:30:52 -04:00
|
|
|
&& ${SETENV} CC="${CC}" CFLAGS="${CFLAGS}" PERL="${PERL}" \
|
|
|
|
./config --prefix=${PREFIX} --openssldir=${PREFIX}/openssl \
|
|
|
|
${RSAREF} -L${PREFIX}/lib
|
1999-03-26 03:42:49 -05:00
|
|
|
|
1996-12-03 06:32:53 -05:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
1999-01-09 07:55:50 -05:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/openssl
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/openssl
|
1996-12-03 06:32:53 -05:00
|
|
|
.endif
|
1999-06-02 03:30:52 -04:00
|
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
1996-12-03 06:32:53 -05:00
|
|
|
|
1996-03-03 16:32:35 -05:00
|
|
|
.include <bsd.port.mk>
|