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.5
  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:=944d0bd7c763ac721398dca2bb0f3b5ed16f67cef36810ede5061f35a543b4b8
  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))