openbsd-ports/mail/dovecot/Makefile

102 lines
2.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.164 2011/05/23 22:54:38 sthen Exp $
2006-12-02 05:34:30 -05:00
#
# Dont forget to bump the Sieve package when you
# update Dovecot !!
# When the Dovecot V_MAJOR will change, dont forget
# to report it in mail/dovecot-pigeonhole
#
SHARED_ONLY= Yes
COMMENT= compact IMAP/POP3 server
V_MAJOR= 2.0
V_DOVECOT= 2.0.13
DISTNAME= dovecot-${V_DOVECOT}
CATEGORIES= mail
2007-09-08 04:44:39 -04:00
MASTER_SITES= ${HOMEPAGE}releases/${V_MAJOR}/
SHARED_LIBS= dovecot-lda 0.0 \
dovecot-login 0.0 \
dovecot-sql 0.0 \
dovecot-storage 0.0 \
dovecot 0.0
HOMEPAGE= http://www.dovecot.org/
MAINTAINER= Brad Smith <brad@comstyle.com>
# LGPLv2.1 and MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ${MODLIBICONV_WANTLIB} bz2 c crypto gssapi krb5 ssl z
2004-08-10 05:14:47 -04:00
MODULES= converters/libiconv
2010-11-19 02:23:05 -05:00
LIB_DEPENDS+= archivers/bzip2
CPPFLAGS= -I/usr/include/kerberosV -I${LOCALBASE}/include
USE_LIBTOOL= Yes
AUTOCONF_VERSION= 2.67
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= --localstatedir=/var \
--with-gssapi \
--with-pam=no \
--with-shadow=no \
--with-vpopmail=no \
--with-rundir=/var/dovecot \
--with-statedir=/var/dovecot
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib"
FLAVORS= bdb ldap mysql postgresql sqlite
FLAVOR?=
.if ${FLAVOR:L:Mbdb}
CONFIGURE_ARGS+=--with-db
LIB_DEPENDS+= databases/db/v4
WANTLIB+= db>=5
CPPFLAGS+= -I${LOCALBASE}/include/db4
.endif
2005-10-06 13:03:21 -04:00
.if ${FLAVOR:L:Mldap}
CONFIGURE_ARGS+=--with-ldap
LIB_DEPENDS+= databases/openldap
WANTLIB+= lber ldap sasl2 asn1 com_err
2005-10-06 13:03:21 -04:00
.endif
.if ${FLAVOR:L:Mmysql}
CONFIGURE_ARGS+=--with-mysql
LIB_DEPENDS+= databases/mysql
WANTLIB+= m lib/mysql/mysqlclient>=10
.endif
.if ${FLAVOR:L:Mpostgresql}
CONFIGURE_ARGS+=--with-pgsql
LIB_DEPENDS+= databases/postgresql
WANTLIB+= pq>=4
.endif
2007-03-22 02:59:13 -04:00
.if ${FLAVOR:L:Msqlite}
CONFIGURE_ARGS+=--with-sqlite
LIB_DEPENDS+= databases/sqlite3
WANTLIB+= sqlite3
.endif
2005-09-04 14:22:30 -04:00
pre-build:
@${SUBST_CMD} ${WRKSRC}/doc/example-config/conf.d/10-mail.conf
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf \
2005-07-23 16:38:17 -04:00
${PREFIX}/share/examples/dovecot
${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh \
${PREFIX}/sbin/dovecot-mkcert.sh
@find ${PREFIX}/lib/dovecot -name '*.a' -print | xargs rm
@find ${PREFIX}/lib/dovecot -name '*.la' -print | xargs rm
.include <bsd.port.mk>