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.

69 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.23.17
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/p11-glue/p11-kit/releases/download/$(PKG_VERSION)
  13. PKG_HASH:=5447b25d66c05f86cce5bc8856f7a074be84c186730e32c74069ca03386d7c1e
  14. PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.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,--as-needed
  33. CONFIGURE_ARGS+= \
  34. --disable-debug \
  35. --disable-rpath \
  36. --disable-trust-module \
  37. --without-libffi \
  38. --without-systemd
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
  41. $(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so $(1)/usr/lib/
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc
  47. endef
  48. define Package/p11-kit/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
  51. $(INSTALL_DIR) $(1)/etc/p11-kit/modules/
  52. ifneq ($(CONFIG_PACKAGE_libopensc),)
  53. $(CP) ./files/opensc.module $(1)/etc/p11-kit/modules/
  54. endif
  55. endef
  56. $(eval $(call BuildPackage,p11-kit))