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.

48 lines
1.1 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. CMAKE_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/yajl
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Yet Another JSON Library
  25. URL:=https://lloyd.github.io/yajl
  26. endef
  27. define Package/yajl/description
  28. Yet Another JSON Library. YAJL is a small event-driven (SAX-style)
  29. JSON parser written in ANSI C, and a small validating JSON generator.
  30. YAJL is released under the ISC license.
  31. YAJL was created by Lloyd Hilaiel.
  32. endef
  33. define Package/yajl/install
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyajl.so* $(1)/usr/lib/
  36. endef
  37. $(eval $(call BuildPackage,yajl))