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.

60 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.1
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=e57371669f3b157141b86c429bd9c29741994b2f5ff115fcb8a03e751b0f6ac4
  14. PKG_SOURCE_URL:=http://p11-glue.freedesktop.org/releases/
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/p11-kit
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=A library that provides a way to load and enumerate PKCS11 modules.
  21. URL:=http://p11-glue.freedesktop.org/p11-kit.html
  22. DEPENDS:=+libtasn1 +libpthread
  23. endef
  24. define Package/p11-kit/description
  25. Provides a way to load and enumerate PKCS11 modules. Provides a
  26. standard configuration setup for installing PKCS11 modules in such a
  27. way that they are discoverable.
  28. endef
  29. CONFIGURE_ARGS+= \
  30. --without-libffi \
  31. --disable-trust-module
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
  34. $(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so $(1)/usr/lib/
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/
  38. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc
  40. endef
  41. define Package/p11-kit/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/etc/p11-kit/modules/
  45. ifneq ($(CONFIG_PACKAGE_libopensc),)
  46. $(CP) ./files/opensc.module $(1)/etc/p11-kit/modules/
  47. endif
  48. endef
  49. $(eval $(call BuildPackage,p11-kit))