Files

40 lines
803 B
Makefile

COMMENT = lightweight and flexible command-line JSON processor
V = 1.8.1
DISTNAME = jq-$V
SHARED_LIBS += jq 2.2 # 1.4
CATEGORIES = textproc
HOMEPAGE = https://jqlang.org
# MIT (code), CC-BY-3.0 (docs)
PERMIT_PACKAGE = Yes
# uses pledge()
WANTLIB += c m onig pthread
LIB_DEPENDS = textproc/oniguruma
SITES = https://github.com/jqlang/jq/releases/download/jq-$V/
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-oniguruma=${LOCALBASE}
# no need for python to regenerate existing docs and manual
CONFIGURE_ARGS += --disable-docs
# makes all tests fail with SIGILL
CONFIGURE_ARGS += --disable-valgrind
BUILD_DEPENDS = textproc/gsed
TEST_DEPENDS = shells/bash
pre-configure:
ln -s ${LOCALBASE}/bin/gsed ${WRKDIR}/bin/sed
.include <bsd.port.mk>