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.

49 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libpbc
  3. PKG_VERSION:=0.5.14
  4. PKG_RELEASE:=1
  5. PKG_HASH:=772527404117587560080241cedaf441e5cac3269009cdde4c588a1dce4c23d2
  6. PKG_SOURCE:=pbc-$(PKG_VERSION).tar.gz
  7. PKG_SOURCE_URL:=https://crypto.stanford.edu/pbc/files/
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/pbc-$(PKG_VERSION)
  9. PKG_INSTALL:=1
  10. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  11. PKG_LICENSE:=LGPL-3.0+
  12. PKG_LICENSE_FILES:=COPYING
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/libpbc
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. TITLE:=The Pairing-Based Cryptography Library
  18. URL:=https://crypto.stanford.edu/pbc/
  19. DEPENDS:=+libgmp
  20. endef
  21. define Package/libpbc/description
  22. Pairing-based cryptography is a relatively young area of cryptography
  23. that revolves around a certain function with special properties.
  24. The PBC (Pairing-Based Cryptography) library is a free C library
  25. (released under the GNU Lesser General Public License) built on the GMP
  26. library that performs the mathematical operations underlying
  27. pairing-based cryptosystems.
  28. endef
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/include/pbc
  31. $(CP) $(PKG_INSTALL_DIR)/usr/include/pbc/*.h $(1)/usr/include/pbc
  32. $(INSTALL_DIR) $(1)/usr/lib
  33. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpbc* $(1)/usr/lib/
  34. endef
  35. define Package/libpbc/install
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpbc.so.* $(1)/usr/lib/
  38. endef
  39. $(eval $(call BuildPackage,libpbc))