openbsd-ports/mail/dovecot/Makefile

119 lines
3.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.188 2012/06/08 22:04:10 sthen Exp $
SHARED_ONLY= Yes
COMMENT-server= compact IMAP/POP3 server
COMMENT-ldap= LDAP authentication support for Dovecot
COMMENT-mysql= MySQL authentication / dictionary support for Dovecot
COMMENT-postgresql= PostgreSQL authentication / dictionary support for Dovecot
# Bump dovecot-pigeonhole every time you update to a new Dovecot version.
V_MAJOR= 2.1
V_DOVECOT= 2.1.7
DISTNAME= dovecot-${V_DOVECOT}
PKGNAME= dovecot-${V_DOVECOT}
PKGNAME-server= dovecot-${V_DOVECOT}
PKGNAME-ldap= dovecot-ldap-${V_DOVECOT}
PKGNAME-mysql= dovecot-mysql-${V_DOVECOT}
PKGNAME-postgresql= dovecot-postgresql-${V_DOVECOT}
CATEGORIES= mail
2007-09-08 04:44:39 -04:00
MASTER_SITES= ${HOMEPAGE}releases/${V_MAJOR}/
SHARED_LIBS= dovecot-lda 1.0 \
dovecot-login 1.0 \
dovecot-sql 1.0 \
dovecot-ssl 0.0 \
dovecot-storage 1.0 \
dovecot 1.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
2012-01-16 11:34:17 -05:00
WANTLIB-server= asn1 bz2 c crypto gssapi krb5 sqlite3 ssl z \
${MODLIBICONV_WANTLIB}
WANTLIB-ldap= asn1 com_err crypto gssapi krb5 lber ldap sasl2 ssl
2012-01-16 11:34:17 -05:00
WANTLIB-mysql= crypto m lib/mysql/mysqlclient>=10 ssl z
WANTLIB-postgresql= com_err crypto pq>=4 ssl
2004-08-10 05:14:47 -04:00
MODULES= converters/libiconv
2010-11-19 02:23:05 -05:00
LIB_DEPENDS+= archivers/bzip2
2012-01-16 11:34:17 -05:00
LIB_DEPENDS-ldap= databases/openldap
RUN_DEPENDS-ldap= ${BASE_PKGPATH}=${V_DOVECOT}
LIB_DEPENDS-mysql= databases/mysql
RUN_DEPENDS-mysql= ${BASE_PKGPATH}=${V_DOVECOT}
LIB_DEPENDS-postgresql= databases/postgresql
RUN_DEPENDS-postgresql= ${BASE_PKGPATH}=${V_DOVECOT}
USE_LIBTOOL= gnu
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-gssapi \
--with-rundir=/var/dovecot \
--with-sql=plugin \
--with-sqlite \
--with-statedir=/var/dovecot \
--without-pam \
--without-shadow \
--without-stemmer \
--without-vpopmail
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
PSEUDO_FLAVORS= no_db no_ldap no_mysql no_postgresql
2012-01-16 11:34:17 -05:00
FLAVOR?=
.if ${FLAVOR:Mno_db}
FLAVOR+= no_ldap no_mysql no_postgresql
2012-01-16 11:34:17 -05:00
.endif
MULTI_PACKAGES= -server
SUBPACKAGE?= -server
.if !${FLAVOR:L:Mno_ldap}
MULTI_PACKAGES+=-ldap
.endif
.if !${FLAVOR:L:Mno_mysql}
MULTI_PACKAGES+=-mysql
.endif
.if !${FLAVOR:L:Mno_postgresql}
MULTI_PACKAGES+=-postgresql
.endif
2011-11-18 08:20:08 -05:00
.include <bsd.port.arch.mk>
.if ${BUILD_PACKAGES:M-ldap}
CONFIGURE_ARGS+=--with-ldap=plugin
2005-10-06 13:03:21 -04:00
.endif
2011-11-18 08:20:08 -05:00
.if ${BUILD_PACKAGES:M-mysql}
CONFIGURE_ARGS+=--with-mysql
.endif
2011-11-18 08:20:08 -05:00
.if ${BUILD_PACKAGES:M-postgresql}
CONFIGURE_ARGS+=--with-pgsql
.endif
post-extract:
@${INSTALL} -m 555 ${FILESDIR}/krb5-config ${WRKDIR}/bin
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>