openbsd-ports/mail/dovecot/Makefile

68 lines
1.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.26 2005/11/11 14:53:27 bernd Exp $
COMMENT= "compact IMAP/POP3 server"
2005-10-20 14:28:48 -04:00
DISTNAME= dovecot-1.0.alpha4
PKGNAME= ${DISTNAME}p1
CATEGORIES= mail
2004-07-21 10:19:19 -04:00
MASTER_SITES= ${HOMEPAGE}releases/
HOMEPAGE= http://dovecot.org/
MAINTAINER= Brad Smith <brad@openbsd.org>
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2005-01-02 07:56:04 -05:00
WANTLIB= c crypto ssl
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
WANTLIB+= sasl2
2005-10-06 13:03:21 -04:00
.endif
.if ${FLAVOR:L:Mmysql}
CONFIGURE_ARGS+= --with-mysql
LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql
WANTLIB+= m z
.endif
.if ${FLAVOR:L:Mpostgresql}
CONFIGURE_ARGS+= --with-pgsql
LIB_DEPENDS+= pq.4::databases/postgresql
.endif
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.59
2005-09-04 14:22:30 -04:00
CONFIGURE_ARGS+=--localstatedir=/var \
--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>