summaryrefslogtreecommitdiff
path: root/mail/dovecot2-mysql/Makefile
blob: be0ce9214b41f954818809b7291c0ce6839a4e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# $NetBSD: Makefile,v 1.3 2018/11/30 18:43:09 adam Exp $

.include "../../mail/dovecot2/Makefile.common"

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"