aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2007-08-06 18:39:24 +0800
committerdinoex <dinoex@FreeBSD.org>2007-08-06 18:39:24 +0800
commit5396a5a8874b13b240e54f68bbec8cfe0c42543c (patch)
treeb903aae542a1171bf95f2a57815f3538d37c1234 /Mk
parent9aebc68c02956efa0482465641312b57e1fdd0fd (diff)
downloadfreebsd-ports-gnome-5396a5a8874b13b240e54f68bbec8cfe0c42543c.tar.gz
freebsd-ports-gnome-5396a5a8874b13b240e54f68bbec8cfe0c42543c.tar.zst
freebsd-ports-gnome-5396a5a8874b13b240e54f68bbec8cfe0c42543c.zip
- fix DESTDIR for config stage
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.openssl.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mk/bsd.openssl.mk b/Mk/bsd.openssl.mk
index 6640e4df0fbe..e0fa3f6bb7b7 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.35 2007-08-04 11:37:23 gabor Exp $
+# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.36 2007-08-06 10:39:24 dinoex Exp $
#
# Use of 'USE_OPENSSL=yes' includes this Makefile after bsd.ports.pre.mk
#
@@ -62,7 +62,7 @@ WITH_OPENSSL_BASE=yes
OPENSSLBASE= /usr
OPENSSLDIR= /etc/ssl
-.if !exists(/usr/lib/libcrypto.so)
+.if !exists(${DESTDIR}/usr/lib/libcrypto.so)
check-depends::
@${ECHO_CMD} "Dependency error: this port requires the OpenSSL library, which is part of"
@${ECHO_CMD} "the FreeBSD crypto distribution but not installed on your"
@@ -121,7 +121,7 @@ OPENSSL_SHLIBVER?= 3
.if !defined(OPENSSL_PORT) && \
exists(${LOCALBASE}/lib/libcrypto.so)
# find installed port and use it for dependency
-PKG_DBDIR?= /var/db/pkg
+PKG_DBDIR?= ${DESTDIR}/var/db/pkg
OPENSSL_INSTALLED!= grep -l -r "^lib/libssl.so." "${PKG_DBDIR}" | \
while read contents; do \
sslprefix=`grep "^@cwd " "$${contents}" | ${HEAD} -n 1`; \