diff options
Diffstat (limited to 'mail/batv-milter/Makefile')
-rw-r--r-- | mail/batv-milter/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mail/batv-milter/Makefile b/mail/batv-milter/Makefile index 3a539eafb319..e62c4ba5686e 100644 --- a/mail/batv-milter/Makefile +++ b/mail/batv-milter/Makefile @@ -9,6 +9,10 @@ MASTER_SITES= SF MAINTAINER= umq@ueo.co.jp COMMENT= Milter for BATV (Bounce Address Tag Validation) +.if !exists( /usr/include/libmilter/mfapi.h ) +BUILD_DEPENDS+= ${LOCALBASE}/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail +.endif + USE_RC_SUBR= milter-batv USE_OPENSSL= TRUE @@ -33,6 +37,11 @@ SITE_SUB+= -e '\|confOPTIMIZE.*-g|s/^dnl //g' .endif pre-configure: +.if !exists( /usr/include/libmilter/mfapi.h ) + ${REINPLACE_CMD} -e '/sendmail/ s|dnl ||; \ + s|/usr/local/sendmail|${LOCALBASE}|' \ + ${WRKSRC}/batv-filter/Makefile.m4 +.endif ${SED} ${SITE_SUB} -e '\|^dnl |d' -e '/^dnl$$/d' \ ${SITE} > ${WCONF}/site.config.m4 |