From f8a16b14f23f08cebdf8a8d7d8b920075a8fe283 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 20 Jun 2014 17:46:29 +0200 Subject: [PATCH] Added p11-kit Signed-off-by: Nikos Mavrogiannopoulos --- libs/p11-kit/Makefile | 55 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 libs/p11-kit/Makefile diff --git a/libs/p11-kit/Makefile b/libs/p11-kit/Makefile new file mode 100644 index 000000000..de9ef6c0b --- /dev/null +++ b/libs/p11-kit/Makefile @@ -0,0 +1,55 @@ +# +# Copyright (C) 2011-2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=p11-kit +PKG_VERSION:=0.20.2 +PKG_RELEASE:=1 +PKG_MAINTAINER:=Nikos Mavrogiannopoulos + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_MD5SUM:=757b97ee4ac0ce598661a90cd784c4f1 +PKG_SOURCE_URL:=http://p11-glue.freedesktop.org/releases/ + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/p11-kit + SECTION:=libs + CATEGORY:=Libraries + TITLE:=A library that provides a way to load and enumerate PKCS11 modules. + URL:=http://p11-glue.freedesktop.org/p11-kit.html + DEPENDS:=+libtasn1 +libpthread +endef + +define Package/p11-kit/description + Provides a way to load and enumerate PKCS11 modules. Provides a + standard configuration setup for installing PKCS11 modules in such a + way that they are discoverable. +endef + +CONFIGURE_ARGS+= \ + --without-libffi + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc +endef + +define Package/p11-kit/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,p11-kit))