eb5f81c36f
opensc upstream has removed the use of ltdl. Thus, it is not longer reasonable to expect it to be able to dlopen a .la file. So pass the .so, not the .la, to configure, when using the pcsc-lite (default) option. Resolves a failure of pkcs15-init to load modules.
28 lines
852 B
Makefile
28 lines
852 B
Makefile
# $NetBSD: options.mk,v 1.4 2014/03/17 18:21:42 gdt Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.opensc
|
|
|
|
# Arguably these should be selectable individually, but upstream requires
|
|
# that exactly one be chosen.
|
|
PKG_OPTIONS_REQUIRED_GROUPS= cardreader
|
|
PKG_OPTIONS_GROUP.cardreader= pcsc-lite openct
|
|
PKG_SUGGESTED_OPTIONS= pcsc-lite
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mpcsc-lite)
|
|
.include "../../security/pcsc-lite/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-pcsc
|
|
# While one might expect the libtool .la, ltdl support has been
|
|
# removed from opensc.
|
|
CONFIGURE_ARGS+= --with-pcsc-provider=${BUILDLINK_PREFIX.pcsc-lite}/lib/libpcsclite.so
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-pcsc
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mopenct)
|
|
.include "../../security/openct/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-openct
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-openct
|
|
.endif
|