summaryrefslogtreecommitdiff
path: root/mail/postfix/Makefile
diff options
context:
space:
mode:
authorhiramatsu <hiramatsu@pkgsrc.org>2015-04-17 02:22:52 +0000
committerhiramatsu <hiramatsu@pkgsrc.org>2015-04-17 02:22:52 +0000
commitb8438f947a0bd2973c808557776d32e96829446b (patch)
tree4c23070289f05ef6a0686df7f70331ccea8ecdef /mail/postfix/Makefile
parentf3961e2a59faa7309c17189706c15808ee2c3502 (diff)
downloadpkgsrc-b8438f947a0bd2973c808557776d32e96829446b.tar.gz
Move Berkeley DB compilation definition from options.mk to Makefile
and remove "bdb" option. Because Berkeley DB is always mandatory, it does not make sense to force users to enable "bdb" option to use Berkeley DB.
Diffstat (limited to 'mail/postfix/Makefile')
-rw-r--r--mail/postfix/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index 658efe8a0ea..95bfb83fb84 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.280 2015/04/06 08:17:31 adam Exp $
+# $NetBSD: Makefile,v 1.281 2015/04/17 02:22:52 hiramatsu Exp $
DISTNAME= postfix-2.11.4
PKGREVISION= 1
@@ -36,10 +36,15 @@ BUILD_DEFS+= VARBASE POSTFIX_DATA_DIR POSTFIX_QUEUE_DIR
# CCARGS is a list of options to pass to the preprocessor/compiler.
# AUXLIBS is a list of options to pass to the linker.
-#
-CCARGS= -DUSE_SASL_AUTH
+CCARGS= #defined
AUXLIBS= ${LDFLAGS}
+# Enable Dovecot SASL
+CCARGS+= -DUSE_SASL_AUTH
+# Enable Berkeley DB map type. BDB_LIBS is defined in mk/bdb.buildlink3.mk.
+CCARGS+= -DHAS_DB
+AUXLIBS+= ${BDB_LIBS}
+
# Set some default paths to override ${WRKSRC}/src/global/mail_params.h.
CCARGS+= -DDEF_DATA_DIR=\"${POSTFIX_DATA_DIR}\"
CCARGS+= -DDEF_QUEUE_DIR=\"${POSTFIX_QUEUE_DIR}\"
@@ -175,4 +180,5 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"