2013-07-11 21:02:23 +00:00
|
|
|
COMMENT = lightweight and flexible command-line JSON processor
|
|
|
|
|
|
2025-07-02 12:39:30 +00:00
|
|
|
V = 1.8.1
|
2015-10-24 10:25:39 +00:00
|
|
|
DISTNAME = jq-$V
|
2019-10-04 12:45:12 +00:00
|
|
|
|
2025-06-02 10:31:57 +00:00
|
|
|
SHARED_LIBS += jq 2.2 # 1.4
|
2015-07-28 15:33:05 +00:00
|
|
|
|
|
|
|
|
CATEGORIES = textproc
|
|
|
|
|
|
2025-06-02 10:31:57 +00:00
|
|
|
HOMEPAGE = https://jqlang.org
|
2015-07-28 15:33:05 +00:00
|
|
|
|
2014-11-02 12:37:44 +00:00
|
|
|
# MIT (code), CC-BY-3.0 (docs)
|
2019-07-12 20:49:33 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2013-07-11 21:02:23 +00:00
|
|
|
|
2016-08-16 06:48:19 +00:00
|
|
|
# uses pledge()
|
2023-09-07 10:43:39 +00:00
|
|
|
WANTLIB += c m onig pthread
|
2018-11-02 16:41:29 +00:00
|
|
|
|
|
|
|
|
LIB_DEPENDS = textproc/oniguruma
|
2013-07-11 21:02:23 +00:00
|
|
|
|
2023-09-07 10:43:39 +00:00
|
|
|
SITES = https://github.com/jqlang/jq/releases/download/jq-$V/
|
2013-07-11 21:02:23 +00:00
|
|
|
|
2018-11-02 16:41:29 +00:00
|
|
|
USE_GMAKE = Yes
|
|
|
|
|
|
2015-07-28 15:33:05 +00:00
|
|
|
CONFIGURE_STYLE = gnu
|
2018-11-02 16:41:29 +00:00
|
|
|
CONFIGURE_ARGS = --with-oniguruma=${LOCALBASE}
|
2013-07-11 21:02:23 +00:00
|
|
|
|
2023-09-07 10:43:39 +00:00
|
|
|
# no need for python to regenerate existing docs and manual
|
|
|
|
|
CONFIGURE_ARGS += --disable-docs
|
|
|
|
|
|
|
|
|
|
# makes all tests fail with SIGILL
|
|
|
|
|
CONFIGURE_ARGS += --disable-valgrind
|
|
|
|
|
|
2025-06-02 10:31:57 +00:00
|
|
|
BUILD_DEPENDS = textproc/gsed
|
2023-10-22 16:36:30 +00:00
|
|
|
TEST_DEPENDS = shells/bash
|
|
|
|
|
|
2025-06-02 10:31:57 +00:00
|
|
|
pre-configure:
|
|
|
|
|
ln -s ${LOCALBASE}/bin/gsed ${WRKDIR}/bin/sed
|
|
|
|
|
|
2013-07-11 21:02:23 +00:00
|
|
|
.include <bsd.port.mk>
|