Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_MD5SUM:=96f073270c489c9a594e1c9413f42db8
  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))