Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (C) 2011-2017 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:=jansson
  9. PKG_VERSION:=2.14
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/akheron/$(PKG_NAME)/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=c739578bf6b764aa0752db9a2fdadcfe921c78f1228c7ec0bb47fa804c55d17b
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_CPE_ID:=cpe:/a:jansson_project:jansson
  17. PKG_BUILD_FLAGS:=lto
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. CMAKE_INSTALL:=1
  21. CMAKE_OPTIONS += \
  22. -DJANSSON_BUILD_DOCS:BOOL=OFF \
  23. -DJANSSON_BUILD_SHARED_LIBS:BOOL=ON \
  24. -DJANSSON_EXAMPLES:BOOL=OFF \
  25. -DJANSSON_WITHOUT_TESTS:BOOL=ON
  26. define Package/jansson
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. TITLE:=Jansson library
  30. URL:=http://www.digip.org/jansson/
  31. ABI_VERSION:=4
  32. endef
  33. define Package/jansson/description
  34. Jansson is a C library for encoding, decoding and manipulating JSON data
  35. endef
  36. define Package/jansson/install
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson*so.* $(1)/usr/lib/
  39. endef
  40. $(eval $(call BuildPackage,jansson))