Fix MKCRYPTO=no

This commit is contained in:
christos 2016-06-29 20:07:52 +00:00
parent 4855893e61
commit f547cc543b
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2013/09/25 19:25:08 tron Exp $
# $NetBSD: Makefile,v 1.4 2016/06/29 20:07:52 christos Exp $
NOMAN= # defined
@ -6,8 +6,8 @@ NOMAN= # defined
PROG= smtpd
DIST= ${NETBSDSRCDIR}/external/ibm-public/postfix/dist/src/${PROG}
.PATH: ${DIST}
DIST= ${NETBSDSRCDIR}/external/ibm-public/postfix/dist
.PATH: ${DIST}/src/${PROG}
SRCS= smtpd.c smtpd_token.c smtpd_check.c smtpd_chat.c smtpd_state.c \
smtpd_peer.c smtpd_sasl_proto.c smtpd_sasl_glue.c smtpd_proxy.c \
@ -20,6 +20,9 @@ LDADD+= ${LIBPMASTER} ${LIBPMILTER} ${LIBPGLOBAL} ${LIBPDNS} ${LIBPXSASL}
.if ${MKCRYPTO} != "no"
DPADD+= ${LIBPTLS} ${LIBSSL} ${LIBCRYPTO}
LDADD+= ${LIBPTLS} -lssl -lcrypto
.else
.PATH: ${DIST}/src/tls
SRCS+= tls_level.c
.endif
DPADD+= ${LIBPUTIL}