Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=$(PKG_REV)
  18. PKG_SOURCE_URL:=https://github.com/lloyd/yajl.git
  19. PKG_SOURCE_PROTO:=git
  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:=http://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. PKG_INSTALL:=1
  35. CMAKE_OPTIONS += \
  36. -DCMAKE_BUILD_TYPE:String="Release"
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/yajl $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyajl.so* $(1)/usr/lib/
  42. endef
  43. define Package/yajl/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyajl.so* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,yajl))