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.

52 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2017 Steven Hessing
  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:=libyaml-cpp
  9. PKG_VERSION:=0.7.0
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=yaml-cpp-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/jbeder/yaml-cpp/tar.gz/yaml-cpp-$(PKG_VERSION)?
  13. PKG_HASH:=43e6a9fcb146ad871515f0d0873947e5d497a1c9c60c58cb102a97b47208b7c3
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/yaml-cpp-yaml-cpp-$(PKG_VERSION)
  15. PKG_MAINTAINER:= Steven Hessing <steven.hessing@gmail.com>
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_CPE_ID:=cpe:/a:yaml-cpp_project:yaml-cpp
  19. CMAKE_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/libyaml-cpp
  23. SECTION:=development
  24. CATEGORY:=Libraries
  25. TITLE:=libyaml-cpp
  26. URL:=https://github.com/jbeder/yaml-cpp
  27. DEPENDS:=+libstdcpp
  28. ABI_VERSION:=0.7
  29. endef
  30. define Package/libyaml-cpp/description
  31. yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec.
  32. endef
  33. CMAKE_OPTIONS += \
  34. -DYAML_BUILD_SHARED_LIBS=ON \
  35. -DYAML_CPP_BUILD_TESTS=OFF \
  36. -DYAML_CPP_BUILD_TOOLS=OFF
  37. define Package/libyaml-cpp/install
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml-cpp.so.$(ABI_VERSION) $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,libyaml-cpp))