treewide: remove AUTORELEASE
[feed/packages.git] / libs / libfido2 / Makefile
1 #
2 # Copyright (C) 2020 Linos Giannopoulos
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libfido2
11 PKG_VERSION:=1.12.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/Yubico/libfido2/tar.gz/$(PKG_VERSION)?
16 PKG_HASH:=813d6d25116143d16d2e96791718a74825da16b774a8d093d96f06ae1730d9c5
17
18 PKG_MAINTAINER:=Linos Giannopoulos <linosgian00+openwrt@gmail.com>
19 PKG_LICENSE:=GPL-3.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_FORTIFY_SOURCE:=0
23 CMAKE_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/cmake.mk
27
28 define Package/libfido2
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=FIDO2 Library
32 URL:=https://github.com/Yubico/libfido2
33 ABI_VERSION:=1
34 DEPENDS += +libcbor +libopenssl +libudev +zlib
35 endef
36
37 define Package/libfido2/description
38 libfido2 provides library functionality and command-line tools to communicate with a FIDO device over USB, and to verify attestation and assertion signatures.
39
40 libfido2 supports the FIDO U2F (CTAP 1) and FIDO 2.0 (CTAP 2) protocols.
41 endef
42
43 CMAKE_OPTIONS += \
44 -DBUILD_EXAMPLES=OFF \
45 -DBUILD_MANPAGES=OFF \
46 -DBUILD_SHARED_LIBS=ON \
47 -DBUILD_STATIC_LIBS=OFF \
48 -DBUILD_TOOLS=OFF \
49 -DFUZZ=OFF \
50 -DLIBFUZZER=OFF \
51 -DUSE_HIDAPI=OFF
52
53 define Package/libfido2/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfido2.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libfido2))