avahi: backport CVE fixes from upstream
[feed/packages.git] / libs / libpbc / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libpbc
4 PKG_VERSION:=0.5.14
5 PKG_RELEASE:=2
6
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)
11
12 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
13 PKG_LICENSE:=LGPL-3.0-or-later
14 PKG_LICENSE_FILES:=COPYING
15
16 PKG_FIXUP:=autoreconf
17 PKG_INSTALL:=1
18 PKG_BUILD_PARALLEL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libpbc
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=The Pairing-Based Cryptography Library
26 URL:=https://crypto.stanford.edu/pbc/
27 DEPENDS:=+libgmp
28 endef
29
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.
33
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.
38 endef
39
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/
45 endef
46
47 define Package/libpbc/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpbc.so.* $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,libpbc))