pkgsrc-wip/pam-pkcs11/options.mk

25 lines
640 B
Makefile

# $NetBSD: options.mk,v 1.5 2012/11/26 00:49:51 lexort Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.pam-pkcs11
PKG_SUPPORTED_OPTIONS= pcsc-lite ldap
# In 0.6.8, pcsc-lite is apparently required.
PKG_SUGGESTED_OPTIONS= pcsc-lite
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mpcsc-lite)
.include "../../security/pcsc-lite/buildlink3.mk"
CONFIGURE_ARGS+= --with-pcsclite
PLIST_SRC+= PLIST.pcsc-lite
.else
CONFIGURE_ARGS+= --without-pcscs-lite
.endif
.if !empty(PKG_OPTIONS:Mldap)
.include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-ldap
PLIST_SRC+= PLIST.ldap
.else
CONFIGURE_ARGS+= --without-ldap
.endif