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.

71 lines
2.0 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.24.1
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/p11-glue/p11-kit/releases/download/$(PKG_VERSION)
  13. PKG_HASH:=d8be783efd5cd4ae534cee4132338e3f40f182c3205d23b200094ec85faaaef8
  14. PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/meson.mk
  20. define Package/p11-kit
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=A library that provides a way to load and enumerate PKCS11 modules.
  24. URL:=https://p11-glue.github.io/p11-glue/p11-kit.html
  25. DEPENDS:=+libtasn1 +libpthread
  26. endef
  27. define Package/p11-kit/description
  28. Provides a way to load and enumerate PKCS11 modules. Provides a
  29. standard configuration setup for installing PKCS11 modules in such a
  30. way that they are discoverable.
  31. endef
  32. TARGET_LDFLAGS += -Wl,--gc-sections
  33. MESON_ARGS += \
  34. -Dhash_impl=internal \
  35. -Dlibffi=disabled \
  36. -Dtrust_module=disabled \
  37. -Dstrict=false \
  38. -Dsystemd=disabled \
  39. -Dgtk_doc=false \
  40. -Dman=false \
  41. -Dnls=false
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
  44. $(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc
  49. endef
  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/pkcs11/modules/
  54. ifneq ($(CONFIG_PACKAGE_libopensc),)
  55. $(CP) ./files/opensc.module $(1)/etc/pkcs11/modules/
  56. endif
  57. endef
  58. $(eval $(call BuildPackage,p11-kit))