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.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. PKG_BUILD_DEPENDS:=meson/host
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../../devel/meson/meson.mk
  21. define Package/p11-kit
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=A library that provides a way to load and enumerate PKCS11 modules.
  25. URL:=https://p11-glue.github.io/p11-glue/p11-kit.html
  26. DEPENDS:=+libtasn1 +libpthread
  27. endef
  28. define Package/p11-kit/description
  29. Provides a way to load and enumerate PKCS11 modules. Provides a
  30. standard configuration setup for installing PKCS11 modules in such a
  31. way that they are discoverable.
  32. endef
  33. TARGET_LDFLAGS += -Wl,--gc-sections
  34. MESON_ARGS += \
  35. -Dhash_impl=internal \
  36. -Dlibffi=disabled \
  37. -Dtrust_module=disabled \
  38. -Dstrict=false \
  39. -Dsystemd=disabled \
  40. -Dgtk_doc=false \
  41. -Dman=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))