# $OpenBSD: Makefile,v 1.22 2005/09/23 14:44:05 brad Exp $ COMMENT= "compact IMAP/POP3 server" DISTNAME= dovecot-1.0.alpha3 CATEGORIES= mail MASTER_SITES= ${HOMEPAGE}releases/ HOMEPAGE= http://dovecot.org/ MAINTAINER= Brad Smith # LGPL PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes WANTLIB= c crypto ssl MODULES= converters/libiconv FLAVORS+= mysql postgresql FLAVOR?= .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 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 \ ${WRKSRC}/doc/dovecot-sql.conf \ ${WRKSRC}/dovecot-example.conf \ ${PREFIX}/share/examples/dovecot ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh \ ${PREFIX}/sbin/dovecot-mkcert.sh .include