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.

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