openbsd-ports/mail/dovecot/Makefile

69 lines
1.6 KiB
Makefile
Raw Normal View History

2006-11-18 19:40:23 -05:00
# $OpenBSD: Makefile,v 1.64 2006/11/19 00:40:23 brad Exp $
COMMENT= "compact IMAP/POP3 server"
2006-11-18 19:40:23 -05:00
DISTNAME= dovecot-1.0.rc15
CATEGORIES= mail
2004-07-21 10:19:19 -04:00
MASTER_SITES= ${HOMEPAGE}releases/
HOMEPAGE= http://dovecot.org/
MAINTAINER= Brad Smith <brad@openbsd.org>
# MIT/LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2006-02-09 00:17:14 -05:00
WANTLIB= c crypto ssl z
2004-08-10 05:14:47 -04:00
MODULES= converters/libiconv
2005-10-06 13:03:21 -04:00
FLAVORS+= ldap mysql postgresql
FLAVOR?=
2005-10-06 13:03:21 -04:00
.if ${FLAVOR:L:Mldap}
CONFIGURE_ARGS+= --with-ldap
LIB_DEPENDS+= lber,ldap::databases/openldap
2006-11-11 08:31:07 -05:00
WANTLIB+= sasl2 asn1 com_err gssapi krb5
2005-10-06 13:03:21 -04:00
.endif
.if ${FLAVOR:L:Mmysql}
CONFIGURE_ARGS+= --with-mysql
2006-08-03 09:09:09 -04:00
LIB_DEPENDS+= lib/mysql/mysqlclient.>=10::databases/mysql
2006-02-09 00:17:14 -05:00
WANTLIB+= m
.endif
.if ${FLAVOR:L:Mpostgresql}
CONFIGURE_ARGS+= --with-pgsql
2006-08-03 09:09:09 -04:00
LIB_DEPENDS+= pq.>=4::databases/postgresql
.endif
2006-01-16 16:32:59 -05:00
USE_LIBTOOL= Yes
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.59
2005-09-04 14:22:30 -04:00
CONFIGURE_ARGS+=--localstatedir=/var \
2006-09-18 01:04:28 -04:00
--with-ioloop=kqueue \
2005-09-04 14:22:30 -04:00
--with-ssl=openssl \
--with-ssldir=/etc/ssl \
--without-pam \
--without-shadow \
--without-vpopmail
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
pre-build:
@perl -pi -e s#_PREFIX_#\${PREFIX}#g ${WRKSRC}/dovecot-example.conf
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dovecot
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf \
2005-09-04 14:22:30 -04:00
${WRKSRC}/doc/dovecot-sql.conf \
2005-10-06 13:03:21 -04:00
${WRKSRC}/doc/dovecot-ldap.conf \
2005-09-04 14:22:30 -04:00
${WRKSRC}/dovecot-example.conf \
2005-07-23 16:38:17 -04:00
${PREFIX}/share/examples/dovecot
${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh \
${PREFIX}/sbin/dovecot-mkcert.sh
.include <bsd.port.mk>