aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2010-07-08 15:37:31 +0800
committerehaupt <ehaupt@FreeBSD.org>2010-07-08 15:37:31 +0800
commit7d4a4098c2e39e7af7718128018063c9e09c2f28 (patch)
treeeee78ad3fddc361ae3356c16ef62d8b31a587d41 /mail
parentbe6c090bac5f8224cbdc9d146b83289c9a701fdd (diff)
downloadfreebsd-ports-gnome-7d4a4098c2e39e7af7718128018063c9e09c2f28.tar.gz
freebsd-ports-gnome-7d4a4098c2e39e7af7718128018063c9e09c2f28.tar.zst
freebsd-ports-gnome-7d4a4098c2e39e7af7718128018063c9e09c2f28.zip
Add an option to build the milter with SPF support.
Wished by: author Feature safe: yes
Diffstat (limited to 'mail')
-rw-r--r--mail/milter-callback/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/milter-callback/Makefile b/mail/milter-callback/Makefile
index 892067426363..0df7fafcc473 100644
--- a/mail/milter-callback/Makefile
+++ b/mail/milter-callback/Makefile
@@ -24,6 +24,15 @@ MAN8= milter-callback.8
EXTRACT_AFTER_ARGS= | (${MKDIR} ${WRKSRC}; ${TAR} -xf - --no-same-owner \
--no-same-permissions -C ${WRKSRC})
+OPTIONS= SPF "build with SPF support" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SPF)
+MAKE_ENV+= WITH_SPF=yes
+LIB_DEPENDS+= spf2.3:${PORTSDIR}/mail/libspf2
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" \
${WRKSRC}/${PORTNAME}.c
@@ -43,4 +52,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>