commit | author | age
|
cf7abc
|
1 |
# |
AL |
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. |
|
5 |
# |
|
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. |
|
9 |
# |
|
10 |
|
|
11 |
# |
|
12 |
# Copyright 2013, Jon Tibble. |
7c2587
|
13 |
# Copyright 2020, Nona Hansel. |
92b700
|
14 |
# Copyright 2021, Till Wegmueller. |
cf7abc
|
15 |
# |
AL |
16 |
|
95a171
|
17 |
BUILD_BITS= 64 |
cf7abc
|
18 |
include ../../../make-rules/shared-macros.mk |
AL |
19 |
|
|
20 |
COMPONENT_NAME= jq |
95a171
|
21 |
COMPONENT_VERSION= 1.7 |
cf7abc
|
22 |
COMPONENT_SUMMARY= jq - lightweight and flexible command-line JSON processor |
AL |
23 |
COMPONENT_PROJECT_URL= https://stedolan.github.io/jq/ |
|
24 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
25 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
95a171
|
26 |
COMPONENT_ARCHIVE_HASH= sha256:402a0d6975d946e6f4e484d1a84320414a0ff8eb6cf49d2c11d144d4d344db62 |
AW |
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 |
cf7abc
|
30 |
COMPONENT_LICENSE= MIT |
95a171
|
31 |
COMPONENT_LICENSE_FILE= COPYING |
cf7abc
|
32 |
|
7c2587
|
33 |
include $(WS_MAKE_RULES)/common.mk |
cf7abc
|
34 |
|
95a171
|
35 |
ELFEDIT = /usr/bin/elfedit |
AW |
36 |
|
|
37 |
COMPONENT_PREP_ACTION = ( cd $(@D) && autoreconf -fiv ) |
|
38 |
|
cf7abc
|
39 |
# Tests are broken out of source |
92b700
|
40 |
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D); cd $(@D)) |
cf7abc
|
41 |
|
95a171
|
42 |
# Remove the RUNPATH otherwise it will be set to somewhere inside PROTO_DIR |
AW |
43 |
COMPONENT_POST_INSTALL_ACTION += $(ELFEDIT) -e "dyn:runpath ''" $(PROTOUSRBINDIR)/jq ; |
cf7abc
|
44 |
|
95a171
|
45 |
CONFIGURE_ENV += CFLAGS="$(CFLAGS) $(XPG6MODE)" |
AW |
46 |
COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS) $(XPG6MODE) -DNDEBUG=1" |
|
47 |
|
|
48 |
CONFIGURE_OPTIONS += --disable-dependency-tracking |
|
49 |
CONFIGURE_OPTIONS += --disable-static |
cf7abc
|
50 |
CONFIGURE_OPTIONS += --disable-valgrind |
92b700
|
51 |
CONFIGURE_OPTIONS += --with-oniguruma=/usr |
cf7abc
|
52 |
|
AL |
53 |
COMPONENT_TEST_CMD = ./tests/jqtest |
|
54 |
COMPONENT_TEST_TARGETS = |
|
55 |
|
|
56 |
COMPONENT_TEST_TRANSFORMS += \ |
|
57 |
'-e "/^==/d" ' |
|
58 |
|
|
59 |
# Auto-generated dependencies |
|
60 |
REQUIRED_PACKAGES += system/library |
|
61 |
REQUIRED_PACKAGES += system/library/math |
92b700
|
62 |
REQUIRED_PACKAGES += text/oniguruma |