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
13 PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=96f073270c489c9a594e1c9413f42db8
17 PKG_SOURCE_URL:=http://p11-glue.freedesktop.org/releases/
21 include $(INCLUDE_DIR)/package.mk
23 define Package/p11-kit
26 TITLE:=A library that provides a way to load and enumerate PKCS11 modules.
27 URL:=http://p11-glue.freedesktop.org/p11-kit.html
28 DEPENDS:=+libtasn1 +libpthread
31 define Package/p11-kit/description
32 Provides a way to load and enumerate PKCS11 modules. Provides a
33 standard configuration setup for installing PKCS11 modules in such a
34 way that they are discoverable.
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
42 $(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so $(1)/usr/lib/
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/
46 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc
50 define Package/p11-kit/install
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
53 $(INSTALL_DIR) $(1)/etc/p11-kit/modules/
54 ifneq ($(CONFIG_PACKAGE_libopensc),)
55 $(CP) ./files/opensc.module $(1)/etc/p11-kit/modules/
59 $(eval $(call BuildPackage,p11-kit))