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.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.6.3
  10. PKG_RELEASE:=1
  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:=77ea1b90b3718aa0c324207cb29418f5bced2354c2e483a9523d98c3460af1ed
  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. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/cmake.mk
  23. define Package/libyaml-cpp
  24. SECTION:=development
  25. CATEGORY:=Libraries
  26. TITLE:=libyaml-cpp
  27. URL:=https://github.com/jbeder/yaml-cpp
  28. DEPENDS:=+libstdcpp
  29. ABI_VERSION:=0.6
  30. endef
  31. define Package/libyaml-cpp/description
  32. yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec.
  33. endef
  34. CMAKE_OPTIONS += \
  35. -DYAML_BUILD_SHARED_LIBS=ON \
  36. -DYAML_CPP_BUILD_TESTS=OFF \
  37. -DYAML_CPP_BUILD_TOOLS=OFF
  38. define Package/libyaml-cpp/install
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml-cpp.so.$(ABI_VERSION) $(1)/usr/lib/
  41. endef
  42. $(eval $(call BuildPackage,libyaml-cpp))