0
0
mirror of https://github.com/openwrt/packages.git synced 2025-08-29 13:53:06 +00:00
Files
packages/libs/libpbc/Makefile
Daniel Golle 95a5d32115 libpbc: update to 1.0.0
The author writes on https://crypto.stanford.edu/pbc/news.html

---
pbc-1.0.0 released

Thanks to many contributors for fixes, wrappers, and tests.

It’s been over a decade since the last release, and over two since
pbc-0.0.0. I had thought this project would have faded into obscurity by
now, but I still receive patches occasionally. I challenged myself to
build a new release. Miraculously, the old scripts still seem to work,
and the only non-trivial edit was renaming a few MinGW invocations in a
Makefile.

I bumped up the major version number. At the rate I’m going, this could
be the last release, and it’d be a shame if the project never reached
v1.0!

Tue Jun 10 09:15:34 PM PDT 2025
---

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-07-09 00:31:21 +08:00

53 lines
1.4 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=libpbc
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_SOURCE:=pbc-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://crypto.stanford.edu/pbc/files/
PKG_HASH:=18275a367283077bafe35f443200499e3b19c4a3754953da2a1b2f0d6b5922dc
PKG_BUILD_DIR:=$(BUILD_DIR)/pbc-$(PKG_VERSION)
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=LGPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/libpbc
SECTION:=libs
CATEGORY:=Libraries
TITLE:=The Pairing-Based Cryptography Library
URL:=https://crypto.stanford.edu/pbc/
DEPENDS:=+libgmp
endef
define Package/libpbc/description
Pairing-based cryptography is a relatively young area of cryptography
that revolves around a certain function with special properties.
The PBC (Pairing-Based Cryptography) library is a free C library
(released under the GNU Lesser General Public License) built on the GMP
library that performs the mathematical operations underlying
pairing-based cryptosystems.
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/pbc
$(CP) $(PKG_INSTALL_DIR)/usr/include/pbc/*.h $(1)/usr/include/pbc
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpbc* $(1)/usr/lib/
endef
define Package/libpbc/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpbc.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libpbc))