diff options
author | Alexander Dahl <ada@thorsis.com> | 2018-04-04 09:58:53 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-04-04 10:46:00 +0200 |
commit | 3e46da8b3e9d6d383fe1d82f53b261f5fb3f5890 (patch) | |
tree | 43bf3c32440e0d2b0301262e34398822736b4f9d /rules/jq.make | |
parent | 3fa25af03ca2b18325326e9fe6eda39a72815521 (diff) | |
download | ptxdist-3e46da8b3e9d6d383fe1d82f53b261f5fb3f5890.tar.gz ptxdist-3e46da8b3e9d6d383fe1d82f53b261f5fb3f5890.tar.xz |
jq: Add new package
Tested with OSELAS.Toolchain-2014.12.3/arm-v5te-linux-gnueabi and
ptxdist 2017.09.0.
Signed-off-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/jq.make')
-rw-r--r-- | rules/jq.make | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/rules/jq.make b/rules/jq.make new file mode 100644 index 000000000..9f0f87511 --- /dev/null +++ b/rules/jq.make @@ -0,0 +1,68 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Alexander Dahl <ada@thorsis.com> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_JQ) += jq + +# +# Paths and names +# +JQ_VERSION := 1.5 +JQ_MD5 := 0933532b086bd8b6a41c1b162b1731f9 +JQ := jq-$(JQ_VERSION) +JQ_SUFFIX := tar.gz +JQ_URL := https://github.com/stedolan/jq/releases/download/$(JQ)/$(JQ).$(JQ_SUFFIX) +JQ_SOURCE := $(SRCDIR)/$(JQ).$(JQ_SUFFIX) +JQ_DIR := $(BUILDDIR)/$(JQ) +JQ_LICENSE := MIT AND CC-BY-3.0 +JQ_LICENSE_FILES := file://COPYING;md5=29dd0c35d7e391bb8d515eacf7592e00 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +JQ_CONF_TOOL := autoconf +JQ_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-maintainer-mode \ + --disable-valgrind \ + --disable-gcov \ + --disable-docs \ + --disable-error-injection \ + --disable-all-static \ + --enable-pthread-tls \ + --without-oniguruma + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/jq.targetinstall: + @$(call targetinfo) + + @$(call install_init, jq) + @$(call install_fixup, jq,PRIORITY,optional) + @$(call install_fixup, jq,SECTION,base) + @$(call install_fixup, jq,AUTHOR,"Alexander Dahl <ada@thorsis.com>") + @$(call install_fixup, jq,DESCRIPTION,missing) + + @$(call install_lib, jq, 0, 0, 0644, libjq) + @$(call install_copy, jq, 0, 0, 0755, -, /usr/bin/jq) + + @$(call install_finish, jq) + + @$(call touch) + +# vim: ft=make noet ts=8 sw=8 |