1 # $NetBSD: Makefile,v 1.13 2010/01/17 12:02:40 wiz Exp $
3 PKGNAME= ${DISTNAME:S/cyrus-sasl/cy2-otp/}
5 COMMENT= Cyrus SASL OTP authentication plugin
8 PKG_DESTDIR_SUPPORT= user-destdir
10 CONFLICTS= cyrus-sasl<=2.1.19nb1
12 .include "../../security/cyrus-sasl/Makefile.common"
14 CONFIGURE_ARGS+= --enable-otp
15 CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
17 BUILD_DIRS= ${WRKSRC}/plugins
18 BUILD_TARGET= libotp.la
20 .include "../../security/openssl/buildlink3.mk"
23 ${INSTALL_DATA_DIR} ${DESTDIR}${PLUGINDIR}
24 cd ${WRKSRC}/plugins && ${SHLIBTOOL} --mode=install \
25 ${INSTALL_PROGRAM} libotp.la ${DESTDIR}${PLUGINDIR}
27 .include "../../mk/bsd.pkg.mk"