summaryrefslogtreecommitdiff
path: root/mail/courier-maildir/Makefile.common
blob: 2a17e3c98c503c298d2c8cedc42bf02dcc2dcd73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $NetBSD: Makefile.common,v 1.1 2005/02/18 22:12:50 jlam Exp $
#
# Package Makefiles should include this file after setting PKGBASE and
# PKG_SUPPORTED_OPTIONS.

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}
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}

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+=		PERL=${PERL5}
CONFIGURE_ENV+=		SYSCONFTOOL_PERL=${PERL5}

PKG_OPTIONS_VAR=	PKG_OPTIONS.${PKGBASE}
PKG_SUPPORTED_OPTIONS+=	fam
.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mfam)
.  include "../../sysutils/fam/buildlink3.mk"
.endif