pkgsrc/mail/dovecot2-mysql/Makefile
fhajny a9e55d98bd Split off dovecot2-{gssapi,ldap,mysql,pgsql,sqlite} as separate
packages, remove respective options.mk parts.
2016-07-18 15:03:05 +00:00

24 lines
717 B
Makefile

# $NetBSD: Makefile,v 1.1 2016/07/18 15:03:06 fhajny Exp $
#
.include "../../mail/dovecot2/Makefile.plugin"
PKGNAME= ${DISTNAME:S/dovecot/dovecot-mysql/}
COMMENT+= (mysql plugin)
CONFIGURE_ARGS+= --with-sql=plugin
CONFIGURE_ARGS+= --with-mysql
INSTALLATION_DIRS+= lib/dovecot/auth lib/dovecot/dict
do-install:
cd ${WRKSRC} && ${LIBTOOL} --mode=install ${INSTALL_LIB} \
src/lib-sql/libdriver_mysql.la \
${DESTDIR}${PREFIX}/lib/dovecot
${LN} -s ../libdriver_mysql.so \
${DESTDIR}${PREFIX}/lib/dovecot/auth/libdriver_mysql.so
${LN} -s ../libdriver_mysql.so \
${DESTDIR}${PREFIX}/lib/dovecot/dict/libdriver_mysql.so
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"