aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_install/Makefile.inc')
-rw-r--r--usr.sbin/pkg_install/Makefile.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/Makefile.inc b/usr.sbin/pkg_install/Makefile.inc
index 6dc305d25a57..e6715ce30f38 100644
--- a/usr.sbin/pkg_install/Makefile.inc
+++ b/usr.sbin/pkg_install/Makefile.inc
@@ -6,6 +6,13 @@ LIBINSTALL= ${.OBJDIR}/../lib/libinstall.a
LIBINSTALL= ${.CURDIR}/../lib/libinstall.a
.endif
+.if !defined(NOCRYPT) && !defined(NO_OPENSSL) && \
+ defined(LDADD) && ${LDADD:M-lfetch} != ""
+DISTRIBUTION= crypto
+DPADD+= ${LIBSSL} ${LIBCRYPTO}
+LDADD+= -lssl -lcrypto
+.endif
+
# Inherit BINDIR from one level up.
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"