mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
jq: add host build
* luci-app-advanced-reboot requires jq on host, this adds host build of jq * remove maintainer Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
committed by
George Sapkin
parent
444b62cbcc
commit
ee3114a766
@@ -1,7 +1,8 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2017 OpenWrt.org
|
# Copyright (C) 2017 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the
|
||||||
|
# GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
|
|
||||||
@@ -15,7 +16,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|||||||
PKG_SOURCE_URL:=https://github.com/jqlang/jq/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
|
PKG_SOURCE_URL:=https://github.com/jqlang/jq/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
|
||||||
PKG_HASH:=2be64e7129cecb11d5906290eba10af694fb9e3e7f9fc208a311dc33ca837eb0
|
PKG_HASH:=2be64e7129cecb11d5906290eba10af694fb9e3e7f9fc208a311dc33ca837eb0
|
||||||
|
|
||||||
PKG_MAINTAINER:=Marko Ratkaj <markoratkaj@gmail.com>
|
PKG_MAINTAINER:=
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
PKG_CPE_ID:=cpe:/a:jqlang:jq
|
PKG_CPE_ID:=cpe:/a:jqlang:jq
|
||||||
@@ -23,6 +24,7 @@ PKG_CPE_ID:=cpe:/a:jqlang:jq
|
|||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
|
||||||
define Package/jq/Default
|
define Package/jq/Default
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
@@ -40,7 +42,8 @@ endef
|
|||||||
|
|
||||||
define Package/jq/description
|
define Package/jq/description
|
||||||
Lightweight and flexible command-line JSON processor.
|
Lightweight and flexible command-line JSON processor.
|
||||||
This package was compiled without ONIGURUMA regex library. match/test/sub and related functions are not available.
|
This package was compiled without ONIGURUMA regex library.
|
||||||
|
match/test/sub and related functions are not available.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/jq-full
|
define Package/jq-full
|
||||||
@@ -57,8 +60,13 @@ define Package/jq-full/description
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS+= \
|
CONFIGURE_ARGS+= \
|
||||||
|
--disable-docs \
|
||||||
|
--disable-valgrind
|
||||||
|
|
||||||
|
HOST_CONFIGURE_ARGS+= \
|
||||||
--disable-docs \
|
--disable-docs \
|
||||||
--disable-valgrind \
|
--disable-valgrind \
|
||||||
|
--without-oniguruma
|
||||||
|
|
||||||
ifeq ($(BUILD_VARIANT),full)
|
ifeq ($(BUILD_VARIANT),full)
|
||||||
CONFIGURE_ARGS += --with-oniguruma
|
CONFIGURE_ARGS += --with-oniguruma
|
||||||
@@ -66,6 +74,12 @@ else
|
|||||||
CONFIGURE_ARGS += --without-oniguruma
|
CONFIGURE_ARGS += --without-oniguruma
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
define Host/Configure
|
||||||
|
cd $(HOST_BUILD_DIR) && \
|
||||||
|
autoreconf -fiv && \
|
||||||
|
$(call Host/Configure/Default)
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/jq/install
|
define Package/jq/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
@@ -75,5 +89,6 @@ endef
|
|||||||
|
|
||||||
Package/jq-full/install = $(Package/jq/install)
|
Package/jq-full/install = $(Package/jq/install)
|
||||||
|
|
||||||
|
$(eval $(call HostBuild))
|
||||||
$(eval $(call BuildPackage,jq))
|
$(eval $(call BuildPackage,jq))
|
||||||
$(eval $(call BuildPackage,jq-full))
|
$(eval $(call BuildPackage,jq-full))
|
||||||
|
|||||||
Reference in New Issue
Block a user