2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2013, Jon Tibble.
13 # Copyright 2020, Nona Hansel.
14 # Copyright 2021, Till Wegmueller.
18 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_VERSION
= 1.7.1
22 COMPONENT_SUMMARY
= jq
- lightweight and flexible command-line JSON processor
23 COMPONENT_PROJECT_URL
= https
://stedolan.github.io
/jq
/
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
26 COMPONENT_ARCHIVE_HASH
= sha256
:478c9ca129fd2e3443fe27314b455e211e0d8c60bc8ff7df703873deeee580c2
27 COMPONENT_ARCHIVE_URL
= https
://github.com
/stedolan
/jq
/releases
/download
/$(COMPONENT_SRC
)/$(COMPONENT_ARCHIVE
)
28 COMPONENT_FMRI
= text
/jq
29 COMPONENT_CLASSIFICATION
=Applications
/System Utilities
30 COMPONENT_LICENSE
= MIT
31 COMPONENT_LICENSE_FILE
= COPYING
33 include $(WS_MAKE_RULES
)/common.mk
35 ELFEDIT
= /usr
/bin
/elfedit
37 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && autoreconf
-fiv
)
39 # Tests are broken out of source
40 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
); cd
$(@D
))
42 # Remove the RUNPATH otherwise it will be set to somewhere inside PROTO_DIR
43 COMPONENT_POST_INSTALL_ACTION
+= $(ELFEDIT
) -e
"dyn:runpath ''" $(PROTOUSRBINDIR
)/jq
;
45 CONFIGURE_ENV
+= CFLAGS
="$(CFLAGS) $(XPG6MODE)"
46 COMPONENT_BUILD_ARGS
+= CFLAGS
="$(CFLAGS) $(XPG6MODE) -DNDEBUG=1"
48 CONFIGURE_OPTIONS
+= --disable-dependency-tracking
49 CONFIGURE_OPTIONS
+= --disable-static
50 CONFIGURE_OPTIONS
+= --disable-valgrind
51 CONFIGURE_OPTIONS
+= --with-oniguruma
=/usr
53 COMPONENT_TEST_CMD
= .
/tests
/jqtest
54 COMPONENT_TEST_TARGETS
=
56 COMPONENT_TEST_TRANSFORMS
+= \
59 # Auto-generated dependencies
60 REQUIRED_PACKAGES
+= system
/library
61 REQUIRED_PACKAGES
+= system
/library
/math
62 REQUIRED_PACKAGES
+= text
/oniguruma