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.

56 lines
1.5 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:=libp11
  9. PKG_VERSION:=20131021
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  12. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://github.com/OpenSC/libp11.git
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_VERSION:=ab6306ee7ede9b2fb9c1fa2c3694c6e7ff044a9e
  17. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  18. PKG_FIXUP:=libtool
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libp11
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=PKCS#11 wrapper library
  25. URL:=https://www.opensc-project.org/opensc/wiki/libp11
  26. DEPENDS:=+libopenssl
  27. endef
  28. define Package/libp11/description
  29. Libp11 is a library implementing a small layer on top of PKCS#11 API
  30. to make using PKCS#11 implementations easier.
  31. endef
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)/usr/include/
  34. $(CP) $(PKG_INSTALL_DIR)/usr/include/libp11.h $(1)/usr/include/
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.{a,so} $(1)/usr/lib/
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.so* $(1)/usr/lib/
  38. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libp11.pc $(1)/usr/lib/pkgconfig/libp11.pc
  40. endef
  41. define Package/libp11/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.so.* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libp11))