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.

70 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.0
  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:=81e6140584f635e4e956a1b93a32239acf3811ff5b2d3a5c6094e94e99d2c685
  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. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
  44. $(INSTALL_DIR) $(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
  48. endef
  49. define Package/p11-kit/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
  52. $(INSTALL_DIR) $(1)/etc/pkcs11/modules/
  53. ifneq ($(CONFIG_PACKAGE_libopensc),)
  54. $(CP) ./files/opensc.module $(1)/etc/pkcs11/modules/
  55. endif
  56. endef
  57. $(eval $(call BuildPackage,p11-kit))