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.

53 lines
1.2 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=spdlog
  7. PKG_VERSION:=1.8.3
  8. PKG_RELEASE:=$(AUTORELEASE)
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://codeload.github.com/gabime/spdlog/tar.gz/v$(PKG_VERSION)?
  11. PKG_HASH:=6f5b88ca4c9b96264e6c961716fec6f1a7b94c80a5edce667c3e42507caa8a82
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=LICENSE
  15. CMAKE_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../devel/ninja/ninja-cmake.mk
  18. define Package/spdlog
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=spdlog
  22. URL:=https://github.com/gabime/spdlog
  23. DEPENDS:=+libfmt
  24. BUILDONLY:=1
  25. endef
  26. define Package/spdlog/description
  27. Very fast, header-only/compiled, C++ logging library.
  28. endef
  29. CMAKE_OPTIONS += \
  30. -DSPDLOG_BUILD_SHARED=OFF \
  31. -DSPDLOG_BUILD_EXAMPLE=OFF \
  32. -DSPDLOG_BUILD_EXAMPLE_HO=OFF \
  33. -DSPDLOG_BUILD_TESTS=OFF \
  34. -DSPDLOG_BUILD_TESTS_HO=OFF \
  35. -DSPDLOG_BUILD_BENCH=OFF \
  36. -DSPDLOG_SANITIZE_ADDRESS=OFF \
  37. -DSPDLOG_INSTALL=ON \
  38. -DSPDLOG_FMT_EXTERNAL=ON \
  39. -DSPDLOG_FMT_EXTERNAL_HO=OFF \
  40. -DSPDLOG_NO_EXCEPTIONS=OFF
  41. TARGET_CXXFLAGS += -flto
  42. $(eval $(call BuildPackage,spdlog))