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.

55 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2019 Daniel Engberg <daniel.engberg.lists@pyret.net>
  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:=jsoncpp
  9. PKG_VERSION:=1.8.4
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/open-source-parsers/jsoncpp/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=c49deac9e0933bcb7044f08516861a2d560988540b23de2ac1ad443b219afdb6
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_BUILD_PARALLEL:=1
  18. CMAKE_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/jsoncpp
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=jsoncpp
  25. URL:=https://github.com/open-source-parsers/jsoncpp
  26. DEPENDS:=+libstdcpp
  27. endef
  28. define Package/jsoncpp/description
  29. JsonCpp is a C++ library that allows manipulating
  30. JSON values, including serialization and
  31. deserialization to and from strings. It can also
  32. preserve existing comment in
  33. unserialization/serialization steps, making it a
  34. convenient format to store user input files.
  35. endef
  36. CMAKE_OPTIONS += \
  37. -DBUILD_SHARED_LIBS:BOOL=ON \
  38. -DBUILD_STATIC_LIBS:BOOL=OFF \
  39. -DJSONCPP_WITH_TESTS:BOOL=OFF
  40. define Package/jsoncpp/install
  41. $(INSTALL_DIR) $(1)/usr/lib/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjsoncpp.so* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,jsoncpp))