1999-01-09 12:55:50 +00:00
|
|
|
# New ports collection makefile for: OpenSSL
|
1999-08-09 18:48:15 +00:00
|
|
|
# Version required: 0.9.4
|
1999-01-09 12:55:50 +00:00
|
|
|
# Date created: Sun Jan 3 19:36:27 CET 1999
|
1999-08-09 18:48:15 +00:00
|
|
|
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
|
1996-03-03 21:32:35 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1998-08-21 22:04:29 +00:00
|
|
|
#
|
1996-03-03 21:32:35 +00:00
|
|
|
|
1999-08-09 18:48:15 +00:00
|
|
|
DISTNAME= openssl-0.9.4
|
1999-06-06 09:56:03 +00:00
|
|
|
CATEGORIES= security devel
|
1999-03-26 08:42:49 +00: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 05:52:02 +00:00
|
|
|
|
1999-08-09 18:48:15 +00:00
|
|
|
MAINTAINER= dirk@FreeBSD.org
|
1999-03-06 11:36:23 +00:00
|
|
|
|
1999-03-26 08:42:49 +00:00
|
|
|
RESTRICTED= "Cryptography"
|
|
|
|
USE_PERL5= yes
|
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-08-18 00:02:55 +00:00
|
|
|
@${ECHO} "You must also have installed rsaref port if you are USA resident."
|
1999-01-09 12:55:50 +00:00
|
|
|
@${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
|
1999-06-02 07:30:52 +00:00
|
|
|
RSAREF= rsaref
|
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} \
|
1999-06-02 07:30:52 +00:00
|
|
|
&& ${SETENV} CC="${CC}" CFLAGS="${CFLAGS}" PERL="${PERL}" \
|
|
|
|
./config --prefix=${PREFIX} --openssldir=${PREFIX}/openssl \
|
|
|
|
${RSAREF} -L${PREFIX}/lib
|
1999-03-26 08:42:49 +00:00
|
|
|
|
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
|
1999-09-17 19:16:59 +00:00
|
|
|
@${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGDIR}/MESSAGE
|
1996-12-03 11:32:53 +00:00
|
|
|
|
1996-03-03 21:32:35 +00:00
|
|
|
.include <bsd.port.mk>
|