From 16075466c1aae518d40d73c71c84a5d85b67b877 Mon Sep 17 00:00:00 2001 From: dinoex Date: Fri, 11 Nov 2005 21:58:51 +0000 Subject: - reorder osversion check PR: 88825 --- Mk/bsd.openssl.mk | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'Mk/bsd.openssl.mk') diff --git a/Mk/bsd.openssl.mk b/Mk/bsd.openssl.mk index bb0d1cbe09bc..2f767ad0e4d6 100644 --- a/Mk/bsd.openssl.mk +++ b/Mk/bsd.openssl.mk @@ -2,7 +2,7 @@ # Date created: 31 May 2002 # Whom: dinoex # -# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.27 2005-11-08 08:44:33 dinoex Exp $ +# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.28 2005-11-11 21:58:51 dinoex Exp $ # # Use of 'USE_OPENSSL=yes' includes this Makefile after bsd.ports.pre.mk # @@ -46,15 +46,6 @@ WITH_OPENSSL_PORT=yes WITH_OPENSSL_STABLE=yes .endif -.if defined(WITH_OPENSSL_PORT) -.if !defined(WITHOUT_OPENSSL_097) && !defined(WITH_OPENSSL_BETA) -.if ( ${OSVERSION} >= 600000 ) && ( ${OSVERSION} < 600100 ) -WITH_OPENSSL_STABLE=yes -OPENSSL_PORT?= security/openssl -.endif -.endif -.endif - # if no preference was set, check for an installed base version # but give an installed port preference over it. .if !defined(WITH_OPENSSL_BASE) && \ @@ -114,15 +105,21 @@ OPENSSLBASE= ${LOCALBASE} .if defined(WITH_OPENSSL_BETA) OPENSSL_PORT?= security/openssl-beta OPENSSL_SHLIBVER?= 4 -.else -.if defined(WITH_OPENSSL_STABLE) +.elif defined(WITH_OPENSSL_STABLE) OPENSSL_PORT?= security/openssl-stable OPENSSL_SHLIBVER?= 3 .else +.if !defined(WITHOUT_OPENSSL_097) +.if ( ${OSVERSION} >= 600000 ) && ( ${OSVERSION} < 600100 ) OPENSSL_PORT?= security/openssl -OPENSSL_SHLIBVER?= 4 +OPENSSL_SHLIBVER?= 3 +.endif .endif +OPENSSL_PORT?= security/openssl +OPENSSL_SHLIBVER?= 4 .endif + + OPENSSLDIR= ${OPENSSLBASE}/openssl BUILD_DEPENDS+= ${LOCALBASE}/lib/libcrypto.so.${OPENSSL_SHLIBVER}:${PORTSDIR}/${OPENSSL_PORT} RUN_DEPENDS+= ${LOCALBASE}/lib/libcrypto.so.${OPENSSL_SHLIBVER}:${PORTSDIR}/${OPENSSL_PORT} -- cgit