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.

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