You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2011-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=p11-kit
  9. PKG_VERSION:=0.23.14
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=1cb9fa6d237539f25f62f4c3d4ec71a1c8e0772957ec45ec5af92134129e0d70
  14. PKG_SOURCE_URL:=https://github.com/p11-glue/$(PKG_NAME)/releases/download/$(PKG_VERSION)
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/p11-kit
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=A library that provides a way to load and enumerate PKCS11 modules.
  22. URL:=https://p11-glue.github.io/p11-glue/p11-kit.html
  23. DEPENDS:=+libtasn1 +libpthread
  24. endef
  25. define Package/p11-kit/description
  26. Provides a way to load and enumerate PKCS11 modules. Provides a
  27. standard configuration setup for installing PKCS11 modules in such a
  28. way that they are discoverable.
  29. endef
  30. CONFIGURE_ARGS+= \
  31. --without-libffi \
  32. --disable-trust-module
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so $(1)/usr/lib/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/
  39. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc
  41. endef
  42. define Package/p11-kit/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/etc/p11-kit/modules/
  46. ifneq ($(CONFIG_PACKAGE_libopensc),)
  47. $(CP) ./files/opensc.module $(1)/etc/p11-kit/modules/
  48. endif
  49. endef
  50. $(eval $(call BuildPackage,p11-kit))