aboutsummaryrefslogtreecommitdiffstats
path: root/mail/batv-milter
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-03-20 06:32:13 +0800
committermarino <marino@FreeBSD.org>2015-03-20 06:32:13 +0800
commit57680d3f6f3022e077adb193753e731086b5b3e8 (patch)
treea03dfc6607d55f7d389703e243ed36588b8e565d /mail/batv-milter
parentee86351178ab7ca6de6378a918d6606aeec55e0c (diff)
downloadfreebsd-ports-gnome-57680d3f6f3022e077adb193753e731086b5b3e8.tar.gz
freebsd-ports-gnome-57680d3f6f3022e077adb193753e731086b5b3e8.tar.zst
freebsd-ports-gnome-57680d3f6f3022e077adb193753e731086b5b3e8.zip
mail/batv-milter: Support systems without sendmail installed
If a sendmail header is not present, pull in mail/sendmail and edit the Makefile.m4 to send CFLAGS and LDFLAGS appropriately. This Allows batv-milter to build on systems without Sendmail in base. Approved by: just fix it
Diffstat (limited to 'mail/batv-milter')
-rw-r--r--mail/batv-milter/Makefile9
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