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.

61 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:=libp11
  9. PKG_VERSION:=0.4.7
  10. PKG_RELEASE:=1
  11. PKG_HASH:=32e486d4279e09174b63eb263bc840016ebfa80b0b154390c0539b211aec0452
  12. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  13. PKG_LICENSE:=LGPL-2.1+
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_SOURCE_URL:=https://github.com/OpenSC/libp11/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  17. PKG_FIXUP:=libtool
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libp11
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=PKCS#11 wrapper library
  24. URL:=https://www.opensc-project.org/opensc/wiki/libp11
  25. DEPENDS:=+libopenssl
  26. CONFLICTS:=engine_pkcs11
  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. CONFIGURE_ARGS += --with-enginesdir=/usr/lib/engines
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include/
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/libp11.h $(1)/usr/include/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.{a,so} $(1)/usr/lib/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.so* $(1)/usr/lib/
  39. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libp11.pc $(1)/usr/lib/pkgconfig/libp11.pc
  41. endef
  42. define Package/libp11/install
  43. $(INSTALL_DIR) $(1)/usr/lib/
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.so.* $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/usr/lib/engines
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/engines/*.so* $(1)/usr/lib/engines
  47. $(LN) pkcs11.so $(1)/usr/lib/engines/libpkcs11.so
  48. endef
  49. $(eval $(call BuildPackage,libp11))