# Created by: Geoffroy Desvernay <dgeo@ec-marseille.fr>
# $FreeBSD: tags/RELEASE_11_1_0/mail/dovecot-managesieve/Makefile 440287 2017-05-06 20:12:26Z adamw $

PORTNAME=	dovecot-managesieve
PORTVERSION=	0.11.13
PORTREVISION=	2
CATEGORIES=	mail
MASTER_SITES=	http://www.rename-it.nl/dovecot/${DOVECOTVERSION}/
DISTNAME=	${PORTNAME:C/-/-${DOVECOTVERSION}-/}-${DISTVERSIONPREFIX}${DISTVERSION:C/:(.)/\1/g}${DISTVERSIONSUFFIX}

MAINTAINER=	dgeo@centrale-marseille.fr
COMMENT=	Dovecot ManageSieve Server daemon

BUILD_DEPENDS=	${NONEXISTENT}:mail/dovecot:build \
		${NONEXISTENT}:mail/dovecot-sieve:build
RUN_DEPENDS=	dovecot>=${DOVECOTVERSION}.*:mail/dovecot \
		dovecot-sieve>=${DOVECOTVERSION}:mail/dovecot-sieve

DEPRECATED=	Dovecot-1.x is deprecated. Use dovecot2 and dovecot-pigeonhole instead
EXPIRATION_DATE=2017-07-31

DOVECOTVERSION=	1.2

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX} \
		--with-dovecot=`${MAKE} -C ${PORTSDIR}/mail/dovecot -V WRKSRC` \
		--with-dovecot-sieve=`${MAKE} -C ${PORTSDIR}/mail/dovecot-sieve -V WRKSRC`

.include <bsd.port.mk>
