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.

51 lines
1.1 KiB

  1. #
  2. # Copyright (C) 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:=jq
  9. PKG_VERSION:=1.6
  10. PKG_RELEASE:=2
  11. PKG_LICENSE:=BSD
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://github.com/stedolan/jq/releases/download/jq-$(PKG_VERSION)/
  14. PKG_HASH:=9625784cf2e4fd9842f1d407681ce4878b5b0dcddbcd31c6135114a30c71e6a8
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. ifdef CONFIG_USE_MIPS16
  18. TARGET_CFLAGS += -fno-ipa-sra
  19. endif
  20. TARGET_CFLAGS += -std=c99 -D_GNU_SOURCE
  21. CONFIGURE_ARGS+= \
  22. --disable-docs \
  23. --disable-valgrind \
  24. --without-oniguruma
  25. define Package/jq
  26. SECTION:=utils
  27. CATEGORY:=Utilities
  28. TITLE:=Lightweight and flexible command-line JSON processor.
  29. URL:=https://stedolan.github.io/jq/
  30. MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
  31. endef
  32. define Package/jq/description
  33. Lightweight and flexible command-line JSON processor.
  34. endef
  35. define Package/jq/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  38. endef
  39. $(eval $(call BuildPackage,jq))