aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2008-08-05 09:33:07 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2008-08-05 09:33:07 +0000
commit4c06dc72b10a70d5c27d7044561ee817ec63bc1e (patch)
tree3ae851898944d519daa3fcc921302ce3402a00f5 /Mk
parente9c5dcbe0d8a339a22119c93ce8176ad26a6a259 (diff)
downloadports-4c06dc72b10a70d5c27d7044561ee817ec63bc1e.tar.gz
ports-4c06dc72b10a70d5c27d7044561ee817ec63bc1e.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.openssl.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/Mk/bsd.openssl.mk b/Mk/bsd.openssl.mk
index 2206cbf978d4..54f3f363bbf2 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.38 2008-03-30 11:38:02 dinoex Exp $
+# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.39 2008-08-05 09:33:07 dinoex Exp $
#
# Use of 'USE_OPENSSL=yes' includes this Makefile after bsd.ports.pre.mk
#
@@ -121,11 +121,14 @@ OPENSSL_SHLIBVER?= 3
exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so)
# find installed port and use it for dependency
PKG_DBDIR?= ${DESTDIR}/var/db/pkg
-OPENSSL_INSTALLED!= grep -l -r "^lib/libssl.so." "${PKG_DBDIR}" | \
+.if !defined(OPENSSL_INSTALLED)
+OPENSSL_INSTALLED!= find "${PKG_DBDIR}" -type f -name "+CONTENTS" -print0 | \
+ xargs -0 grep -l "^lib/libssl.so." | \
while read contents; do \
sslprefix=`grep "^@cwd " "$${contents}" | ${HEAD} -n 1`; \
if test "$${sslprefix}" = "@cwd ${LOCALBASE}" ; then \
echo "$${contents}"; break; fi; done
+.endif
OPENSSL_PORT!= grep "^@comment ORIGIN:" "${OPENSSL_INSTALLED}" | ${CUT} -d : -f 2
OPENSSL_SHLIBFILE!= grep "^lib/libssl.so." "${OPENSSL_INSTALLED}"
OPENSSL_SHLIBVER?= ${OPENSSL_SHLIBFILE:E}