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.

52 lines
1.4 KiB

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