aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2009-05-07 08:19:02 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2009-05-07 08:19:02 +0000
commitae6b3b9b60c6f06b9beae51a631bd2c6ba3f582c (patch)
tree8cc05a13f91cbf76bebc4dcab19786b5dda28869
parent664cbfb2ca9450bf518898d4597f9df2435c706a (diff)
downloadports-ae6b3b9b60c6f06b9beae51a631bd2c6ba3f582c.tar.gz
ports-ae6b3b9b60c6f06b9beae51a631bd2c6ba3f582c.zip
Notes
-rw-r--r--Mk/bsd.openssl.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/Mk/bsd.openssl.mk b/Mk/bsd.openssl.mk
index af10d9732e06..ee13eeaac664 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.42 2009-01-09 17:04:48 dinoex Exp $
+# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.43 2009-05-07 08:19:02 dinoex Exp $
#
# Use of 'USE_OPENSSL=yes' includes this Makefile after bsd.ports.pre.mk
#
@@ -107,9 +107,15 @@ OPENSSL_INSTALLED!= find "${PKG_DBDIR}/" -type f -name "+CONTENTS" -print0 | \
if test "$${sslprefix}" = "@cwd ${LOCALBASE}" ; then \
echo "$${contents}"; break; fi; done
.endif
+.if defined(OPENSSL_INSTALLED) && ${OPENSSL_INSTALLED} != ""
OPENSSL_PORT!= grep "^@comment ORIGIN:" "${OPENSSL_INSTALLED}" | ${CUT} -d : -f 2
OPENSSL_SHLIBFILE!= grep "^lib/libssl.so." "${OPENSSL_INSTALLED}"
OPENSSL_SHLIBVER?= ${OPENSSL_SHLIBFILE:E}
+.else
+# PKG_DBDIR was not found, default
+OPENSSL_PORT?= security/openssl
+OPENSSL_SHLIBVER?= 5
+.endif
.endif
OPENSSL_PORT?= security/openssl
OPENSSL_SHLIBVER?= 5