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.

59 lines
1.7 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.20.2
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_MD5SUM:=757b97ee4ac0ce598661a90cd784c4f1
  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. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
  33. $(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so $(1)/usr/lib/
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/
  37. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc
  39. endef
  40. define Package/p11-kit/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
  43. $(INSTALL_DIR) $(1)/etc/p11-kit/modules/
  44. ifneq ($(CONFIG_PACKAGE_libopensc),)
  45. $(CP) ./files/opensc.module $(1)/etc/p11-kit/modules/
  46. endif
  47. endef
  48. $(eval $(call BuildPackage,p11-kit))