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