Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_RELEASE:=1
  10. PKG_MAINTAINER:= Steven Hessing <steven.hessing@gmail.com>
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/jbeder/yaml-cpp/
  13. PKG_SOURCE_DATA:=2017-11-01
  14. PKG_SOURCE_VERSION:=beb44b872c07c74556314e730c6f20a00b32e8e5
  15. PKG_MIRROR_HASH:=3ddb1f5a6c564f33fd164c0300df8048c689c319964a08386d869637a0f5c8e2
  16. PKG_SOURCE_SUBDIR:=yaml-cpp
  17. PKG_LICENSE:=MIT
  18. PKG_LICENSE_FILES:=LICENSE
  19. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
  20. PKG_BUILD_PARALLEL:=1
  21. CMAKE_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/cmake.mk
  24. CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=ON
  25. #CMAKE_OPTIONS += -DBUILD_SHARED_LIBS=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.0.5 $(1)/usr/lib/
  41. endef
  42. $(eval $(call BuildPackage,libyaml-cpp))