aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-04-18 19:12:11 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-04-18 19:12:11 +0000
commit7f0dc150174788fe19034d2b9abc6356044b8ee9 (patch)
tree74eabd4131ce51423e2be183a1c1d26c50a4d040
parent79ed67cbd384a017f84709f0f13e29ff2a05675c (diff)
downloadports-7f0dc150174788fe19034d2b9abc6356044b8ee9.tar.gz
ports-7f0dc150174788fe19034d2b9abc6356044b8ee9.zip
Check that librsaref actually exists before trying to link it in.
PR: 26679 Submitted by: Yoshisato YANAGISAWA <osho@pcc-software.org>
Notes
Notes: svn path=/head/; revision=41653
-rw-r--r--mail/qpopper/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/qpopper/Makefile b/mail/qpopper/Makefile
index bb100370047f..966b6ee58e01 100644
--- a/mail/qpopper/Makefile
+++ b/mail/qpopper/Makefile
@@ -50,7 +50,11 @@ CONFIGURE_ARGS+= --with-openssl=/usr
.elif exists(${LOCALBASE}/lib/libssl.a) && exists(${LOCALBASE}/lib/libcrypto.a)
LIB_DEPENDS+= ssl.1:${PORTSDIR}/security/openssl
CONFIGURE_ARGS+= -with-includes=${LOCALBASE}/include/openssl --with-openssl=${LOCALBASE}
-CONFIGURE_ENV+= RSAGLUE="-lrsaref -lRSAglue"
+CONFIGURE_ENV+= RSAGLUE="${RSAGLUE}"
+.if exists(${LOCALBASE}/lib/librsaref.a)
+RSAGLUE= -lrsaref
+.endif
+RSAGLUE+= -lRSAglue
.endif
post-patch: