# $NetBSD: buildlink3.mk,v 1.7 2014/02/12 23:18:07 tron Exp $

BUILDLINK_TREE+=	dovecot

.if !defined(DOVECOT_BUILDLINK3_MK)
DOVECOT_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.dovecot+=		dovecot>=2.2.0
BUILDLINK_ABI_DEPENDS.dovecot+=		dovecot>=2.2.10nb1
BUILDLINK_PKGSRCDIR.dovecot?=		../../mail/dovecot2

pkgbase:=	dovecot
.include "../../mk/pkg-build-options.mk"
.if !empty(PKG_BUILD_OPTIONS.dovecot:Mssl)
.  include "../../security/openssl/buildlink3.mk"
.elif !empty(PKG_BUILD_OPTIONS.dovecot:Mgnutls)
.  include "../../security/gnutls/buildlink3.mk"
.endif
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.endif # DOVECOT_BUILDLINK3_MK

BUILDLINK_TREE+=	-dovecot