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.

60 lines
1.5 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:=1
  11. PKG_MAINTAINER:=Charles Southerland <charlie@stuphlabs.com>
  12. PKG_LICENSE:=ISC
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_REV:=66cb08ca2ad8581080b626a75dfca266a890afb2
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. PKG_MIRROR_HASH:=95bfdb37f864318fc3c2ee736a747d4902d279a88f361770c89e60ff5e1d6f63
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_SOURCE_VERSION:=$(PKG_REV)
  19. PKG_SOURCE_URL:=git://github.com/lloyd/yajl.git
  20. PKG_SOURCE_PROTO:=git
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/cmake.mk
  23. define Package/yajl
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=Yet Another JSON Library
  27. URL:=http://lloyd.github.io/yajl
  28. endef
  29. define Package/yajl/description
  30. Yet Another JSON Library. YAJL is a small event-driven (SAX-style)
  31. JSON parser written in ANSI C, and a small validating JSON generator.
  32. YAJL is released under the ISC license.
  33. YAJL was created by Lloyd Hilaiel.
  34. endef
  35. PKG_INSTALL:=1
  36. CMAKE_OPTIONS += \
  37. -DCMAKE_BUILD_TYPE:String="Release"
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/yajl $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyajl.so* $(1)/usr/lib/
  43. endef
  44. define Package/yajl/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyajl.so* $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,yajl))