pkgsrc/mail/courier-maildir/Makefile.common
jlam 8b64ff72da Update mail/courier-maildir to 0.52.2. This update uses the maildir
code from courier-0.52.2 which has no changes from the code in 0.52.1.
The only change is that "fam" is no longer a package option (or a
dependency) for courier-maildir.
2006-01-03 05:33:09 +00:00

44 lines
1.3 KiB
Makefile

# $NetBSD: Makefile.common,v 1.9 2006/01/03 05:33:11 jlam Exp $
#
# Package Makefiles should include this file after setting PKGNAME and
# PKG_SUPPORTED_OPTIONS.
.if !defined(PKGNAME)
PKG_FAIL_REASON+= "[courier-mail/Makefile.common] PKGNAME must be set."
.endif
PKG_SYSCONFSUBDIR?= courier
DOCDIR= ${PREFIX}/share/doc/courier
EGDIR= ${PREFIX}/share/examples/courier
.include "../../mk/bsd.prefs.mk"
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --disable-root-check
CONFIGURE_ARGS+= --enable-unicode
CONFIGURE_ARGS+= --with-trashquota
USE_DB185= yes
CONFIGURE_ARGS+= --with-db=db
.include "../../mk/bdb.buildlink3.mk"
CONFIGURE_ENV+= SYSCONFTOOL_PERL=${PERL5:Q}
# Note: This expression is the same as ${PKGBASE}, but the latter is
# not defined yet, so we cannot use it here.
PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//}
.include "../../mk/bsd.options.mk"
# The maildir subdirectory can be built with a "fam" option, but it's only
# useful for the imap server and the webmail client. Handle the option
# here, but the corresponding package Makefiles should note that "fam" is
# a supported option on their own.
#
.if !empty(PKG_OPTIONS:Mfam)
. include "../../mk/fam.buildlink3.mk"
.endif
.include "../../devel/pcre/buildlink3.mk"