You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.5 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libfido2
  9. PKG_VERSION:=1.8.0
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/Yubico/libfido2/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=554291188f24ab595cb947f9d2b6ec40ce5afe39d9257c1e2cd0bdef8bf7fd1d
  14. PKG_MAINTAINER:=Linos Giannopoulos <linosgian00+openwrt@gmail.com>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FORTIFY_SOURCE:=0
  18. CMAKE_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/libfido2
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=FIDO2 Library
  25. URL:=https://github.com/Yubico/libfido2
  26. ABI_VERSION:=1
  27. DEPENDS += +libcbor +libopenssl +libudev +zlib
  28. endef
  29. define Package/libfido2/description
  30. libfido2 provides library functionality and command-line tools to communicate with a FIDO device over USB, and to verify attestation and assertion signatures.
  31. libfido2 supports the FIDO U2F (CTAP 1) and FIDO 2.0 (CTAP 2) protocols.
  32. endef
  33. CMAKE_OPTIONS += \
  34. -DBUILD_EXAMPLES=OFF \
  35. -DBUILD_MANPAGES=OFF \
  36. -DBUILD_SHARED_LIBS=ON \
  37. -DBUILD_STATIC_LIBS=OFF \
  38. -DBUILD_TOOLS=OFF \
  39. -DFUZZ=OFF \
  40. -DLIBFUZZER=OFF \
  41. -DUSE_HIDAPI=OFF
  42. define Package/libfido2/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfido2.so.* $(1)/usr/lib/
  45. endef
  46. $(eval $(call BuildPackage,libfido2))