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.12
  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:=58bae22f19db1de1a1103e7ca4149eed6e303e727878c2cd5ea9e6fe445fd403
  14. PKG_SOURCE_URL:=https://github.com/p11-glue/$(PKG_NAME)/releases/download/$(PKG_VERSION)
  15. PKG_FIXUP:=autoreconf
  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))