Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / utils / jq / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=jq
11 PKG_VERSION:=1.5
12 PKG_RELEASE:=2
13 PKG_LICENSE:=BSD
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://github.com/stedolan/jq/releases/download/jq-$(PKG_VERSION)/
17 PKG_HASH:=c4d2bfec6436341113419debf479d833692cc5cdab7eb0326b5a4d4fbe9f493c
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 ifdef CONFIG_USE_MIPS16
24 TARGET_CFLAGS += -fno-ipa-sra
25 endif
26
27 TARGET_CFLAGS += -std=c99
28
29 define Package/jq
30 SECTION:=utils
31 CATEGORY:=Utilities
32 TITLE:=Lightweight and flexible command-line JSON processor.
33 URL:=https://stedolan.github.io/jq/
34 MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
35 endef
36
37 define Package/jq/description
38 Lightweight and flexible command-line JSON processor.
39 endef
40
41 define Package/jq/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
44 endef
45
46 $(eval $(call BuildPackage,jq))