diff options
author | dinoex <dinoex@FreeBSD.org> | 2003-04-11 18:39:18 +0000 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2003-04-11 18:39:18 +0000 |
commit | ce046c6116b07c50c23b06cc9c19baa1231f01a4 (patch) | |
tree | 4365d4b7f1b6bfe3bda348e392ffec8ffe80c24a | |
parent | aaa5f7cdafb4e8942cdb0583d984a2999b92dbbb (diff) | |
download | FreeBSD-ports-ce046c6116b07c50c23b06cc9c19baa1231f01a4.zip FreeBSD-ports-ce046c6116b07c50c23b06cc9c19baa1231f01a4.tar.gz |
- use bsd.openssl.mk
-rw-r--r-- | security/openssl/Makefile.ssl | 105 |
1 files changed, 1 insertions, 104 deletions
diff --git a/security/openssl/Makefile.ssl b/security/openssl/Makefile.ssl index 320a472..89475a4 100644 --- a/security/openssl/Makefile.ssl +++ b/security/openssl/Makefile.ssl @@ -2,107 +2,4 @@ # Date created: 31 May 2002 # Whom: dinoex # -# $FreeBSD$ -# -# this substitutes USE_OPENSSL=yes -# just include this makefile after bsd.ports.pre.mk -# -# the user/port can now set this options in the makefiles. -# -# USE_OPENSSL_BASE=yes - Use the version in the base system. -# USE_OPENSSL_PORT=yes - Use the port, even if base if up to date -# USE_OPENSSL_BETA=yes - Use a snapshot of recent openssl -# -# The makefile sets this variables: -# OPENSSLBASE - "/usr" or ${LOCALBASE} -# OPENSSLDIR - path to openssl -# OPENSSLLIB - path to the libs -# OPENSSLINC - path to the matching includes -# -# MAKE_ENV - extended with the variables above -# LIB_DEPENDS - are added if needed - -# if no preference was set, check for an up to date base version -# but give an installed port preference over it. -.if !defined(USE_OPENSSL_BASE) && \ - !defined(USE_OPENSSL_BETA) && \ - !defined(USE_OPENSSL_PORT) && \ - !exists(${LOCALBASE}/lib/libcrypto.so) -# Security: version in base must be 0.9.7a -.if exists(/usr/lib/libcrypto.so.3) -OPENSSLVER!= ${AWK} '/OPENSSL_VERSION_NUMBER/ { print $$3 }' \ - /usr/include/openssl/opensslv.h -.if ${OPENSSLVER} == 0x0090701fL -USE_OPENSSL_BASE=yes -.endif -.endif -.endif - -.if defined(USE_OPENSSL_BASE) -OPENSSLBASE= /usr -OPENSSLDIR= /etc/ssl - -.if !exists(/usr/lib/libcrypto.so) -.BEGIN: - @${ECHO_CMD} "This port requires the OpenSSL library, which is part of" - @${ECHO_CMD} "the FreeBSD crypto distribution but not installed on your" - @${ECHO_CMD} "machine. Please see the \"OpenSSL\" section in the handbook" - @${ECHO_CMD} "(at \"http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/openssl.html\", for instance)" - @${ECHO_CMD} "for instructions on how to obtain and install the FreeBSD" - @${ECHO_CMD} "OpenSSL distribution." - @${FALSE} -.endif -.if exists(${LOCALBASE}/lib/libcrypto.so) -.BEGIN: - @${ECHO_CMD} "This port wants the OpenSSL library from the FreeBSD" - @${ECHO_CMD} "base system. You can't build against it, while a newer" - @${ECHO_CMD} "Version is installed by a port." - @${ECHO_CMD} "Please deinstall the port or undefine USE_OPENSSL_BASE." - @${FALSE} -.endif - -# OpenSSL in the base system may not include IDEA for patent licensing reasons. -.if defined(MAKE_IDEA) && !defined(OPENSSL_IDEA) -OPENSSL_IDEA= ${MAKE_IDEA} -.else -OPENSSL_IDEA?= NO -.endif - -.if ${OPENSSL_IDEA} == "NO" -# XXX This is a hack to work around the fact that /etc/make.conf clobbers -# our CFLAGS. It might not be enough for all future ports. -.if defined(HAS_CONFIGURE) -CFLAGS+= -DNO_IDEA -.else -OPENSSL_CFLAGS+= -DNO_IDEA -.endif -MAKE_ARGS+= OPENSSL_CFLAGS="${OPENSSL_CFLAGS}" -.endif - -.else - -.if exists(/usr/lib/libcrypto.so.3) -SHLIBVER= 4 -.else -SHLIBVER= 3 -.endif - -OPENSSLBASE= ${LOCALBASE} -.if defined(USE_OPENSSL_BETA) -OPENSSLDIR= ${OPENSSLBASE}/openssl -LIB_DEPENDS+= crypto.${SHLIBVER}:${PORTSDIR}/security/openssl-beta -.else -OPENSSLDIR= ${OPENSSLBASE}/openssl -LIB_DEPENDS+= crypto.${SHLIBVER}:${PORTSDIR}/security/openssl -.endif - -.endif - -OPENSSLLIB= ${OPENSSLBASE}/lib -OPENSSLINC= ${OPENSSLBASE}/include -MAKE_ENV+= OPENSSLLIB=${OPENSSLLIB} OPENSSLINC=${OPENSSLINC} \ - OPENSSLBASE=${OPENSSLBASE} OPENSSLDIR=${OPENSSLDIR} - -### crypto -#RESTRICTED= "Contains cryptography." - +.include "${PORTSDIR}/security/openssl/bsd.openssl.mk" |