From 2f6221c0ef62d9d2849ccfbf295ba37a33bbbe69 Mon Sep 17 00:00:00 2001 From: dinoex Date: Thu, 8 Apr 2004 05:17:37 +0000 Subject: - Fix dependecy problem It could happen that bsd.port.mk think that the correct lib is installed, by picking up a shared lib in the wrong directory. Reported by: oliver --- Mk/bsd.openssl.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Mk/bsd.openssl.mk') diff --git a/Mk/bsd.openssl.mk b/Mk/bsd.openssl.mk index f93a58dec61b..673b55b12881 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.13 2004-03-18 13:30:47 dinoex Exp $ +# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.14 2004-04-08 05:17:37 dinoex Exp $ # # Use of 'USE_OPENSSL=yes' includes this Makefile after bsd.ports.pre.mk # @@ -111,7 +111,12 @@ OPENSSL_SHLIBVER?= 3 OPENSSL_PORT?= security/openssl .endif OPENSSLDIR= ${OPENSSLBASE}/openssl +.if exists(/usr/lib/libcrypto.so.${OPENSSL_SHLIBVER}) +BUILD_DEPENDS+= ${LOCALBASE}/lib/libcrypto.so.${OPENSSL_SHLIBVER}:${PORTSDIR}/${OPENSSL_PORT} +RUN_DEPENDS+= ${LOCALBASE}/lib/libcrypto.so.${OPENSSL_SHLIBVER}:${PORTSDIR}/${OPENSSL_PORT} +.else LIB_DEPENDS+= crypto.${OPENSSL_SHLIBVER}:${PORTSDIR}/${OPENSSL_PORT} +.endif OPENSSLRPATH= ${LOCALBASE}/lib .endif -- cgit