libupnp: update to 1.14.18
[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.14.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:=3601792e320032d428002c4cce8499a4c7b803319051a25a0c9f1f138ffee45a
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_STATIC_LIBS=OFF \
47 -DBUILD_TOOLS=OFF
48
49 define Package/libfido2/install
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfido2.so.* $(1)/usr/lib/
52 endef
53
54 $(eval $(call BuildPackage,libfido2))