1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=pbc-
$(PKG_VERSION
).
tar.gz
8 PKG_SOURCE_URL
:=https
://crypto.stanford.edu
/pbc
/files
/
9 PKG_HASH
:=772527404117587560080241cedaf441e5cac3269009cdde4c588a1dce4c23d2
10 PKG_BUILD_DIR
:=$(BUILD_DIR
)/pbc-
$(PKG_VERSION
)
12 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
13 PKG_LICENSE
:=LGPL-3.0
-or-later
14 PKG_LICENSE_FILES
:=COPYING
20 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=The Pairing-Based Cryptography Library
26 URL
:=https
://crypto.stanford.edu
/pbc
/
30 define Package
/libpbc
/description
31 Pairing-based cryptography is a relatively young area of cryptography
32 that revolves around a certain function with special properties.
34 The PBC
(Pairing-Based Cryptography
) library is a free C library
35 (released under the GNU Lesser General Public License
) built on the GMP
36 library that performs the mathematical operations underlying
37 pairing-based cryptosystems.
40 define Build
/InstallDev
41 $(INSTALL_DIR
) $(1)/usr
/include/pbc
42 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/pbc
/*.h
$(1)/usr
/include/pbc
43 $(INSTALL_DIR
) $(1)/usr
/lib
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpbc
* $(1)/usr
/lib
/
47 define Package
/libpbc
/install
48 $(INSTALL_DIR
) $(1)/usr
/lib
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpbc.so.
* $(1)/usr
/lib
/
52 $(eval
$(call BuildPackage
,libpbc
))