2 # Copyright (C) 2011-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=0.23.18.1
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://github.com
/p11-glue
/p11-kit
/releases
/download
/$(PKG_VERSION
)
16 PKG_HASH
:=34c3bd8c0050dd7c4e6228aecf0f168de0a1b34562ddbf74a1c70904c2523c6f
18 PKG_MAINTAINER
:=Nikos Mavrogiannopoulos
<n.mavrogiannopoulos@gmail.com
>
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/p11-kit
30 TITLE
:=A library that provides a way to load and enumerate PKCS11 modules.
31 URL
:=https
://p11-glue.github.io
/p11-glue
/p11-kit.html
32 DEPENDS
:=+libtasn1
+libpthread
35 define Package
/p11-kit
/description
36 Provides a way to load and enumerate PKCS11 modules. Provides a
37 standard configuration setup for installing PKCS11 modules in such a
38 way that they are discoverable.
41 TARGET_LDFLAGS
+= -Wl
,--gc-sections
,--as-needed
46 --disable-trust-module \
50 define Build
/InstallDev
51 $(INSTALL_DIR
) $(1)/usr
/include/p11-kit-1
/p11-kit
/
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/p11-kit-1
/p11-kit
/* $(1)/usr
/include/p11-kit-1
/p11-kit
/
53 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libp11-kit.so
$(1)/usr
/lib
/
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libp11-kit.so
* $(1)/usr
/lib
/
56 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/p11-kit-1.
pc $(1)/usr
/lib
/pkgconfig
/p11-kit-1.
pc
60 define Package
/p11-kit
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libp11-kit.so.
* $(1)/usr
/lib
/
63 $(INSTALL_DIR
) $(1)/etc
/p11-kit
/modules
/
64 ifneq ($(CONFIG_PACKAGE_libopensc
),)
65 $(CP
) .
/files
/opensc.module
$(1)/etc
/p11-kit
/modules
/
69 $(eval
$(call BuildPackage
,p11-kit
))