Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.12.0
  10. PKG_RELEASE:=1
  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:=813d6d25116143d16d2e96791718a74825da16b774a8d093d96f06ae1730d9c5
  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))