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.

49 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2014, 2015 OpenWrt.org
  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:=yajl
  9. PKG_VERSION:=2.1.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/lloyd/yajl
  13. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  14. PKG_MIRROR_HASH:=0cd74320be0270a07931e42d2f14f87a8b3fb664ecb5db58b0e838886211ab1f
  15. PKG_MAINTAINER:=Charles Southerland <charlie@stuphlabs.com>
  16. PKG_LICENSE:=ISC
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_BUILD_PARALLEL:=1
  19. CMAKE_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/yajl
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Yet Another JSON Library
  26. URL:=https://lloyd.github.io/yajl
  27. endef
  28. define Package/yajl/description
  29. Yet Another JSON Library. YAJL is a small event-driven (SAX-style)
  30. JSON parser written in ANSI C, and a small validating JSON generator.
  31. YAJL is released under the ISC license.
  32. YAJL was created by Lloyd Hilaiel.
  33. endef
  34. define Package/yajl/install
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyajl.so* $(1)/usr/lib/
  37. endef
  38. $(eval $(call BuildPackage,yajl))