summaryrefslogtreecommitdiff
path: root/devel/jq
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2018-01-22 13:27:41 +0000
committerfhajny <fhajny@pkgsrc.org>2018-01-22 13:27:41 +0000
commitfcedf25b313603b5198b03f33df9f480e95acee1 (patch)
treeadd86708bd131f0efa2c9f6e94bdfa671c5ba6f8 /devel/jq
parent7d8f8b2dd6e564ce60f254529d276301d5f62976 (diff)
downloadpkgsrc-fcedf25b313603b5198b03f33df9f480e95acee1.tar.gz
Turn oniguruma support into a (default) option.
Diffstat (limited to 'devel/jq')
-rw-r--r--devel/jq/Makefile8
-rw-r--r--devel/jq/options.mk13
2 files changed, 17 insertions, 4 deletions
diff --git a/devel/jq/Makefile b/devel/jq/Makefile
index 15fa26cef44..ace9e25b632 100644
--- a/devel/jq/Makefile
+++ b/devel/jq/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2018/01/15 08:51:55 adam Exp $
+# $NetBSD: Makefile,v 1.13 2018/01/22 13:27:41 fhajny Exp $
DISTNAME= jq-1.5
PKGREVISION= 2
@@ -10,17 +10,17 @@ HOMEPAGE= https://github.com/stedolan/jq/
COMMENT= Command-line JSON processor
LICENSE= mit
-GITHUB_PROJECT= jq
-GITHUB_TAG= jq-${PKGVERSION_NOREV}
+GITHUB_TAG= ${DISTNAME}
USE_LANGUAGES= c99
USE_LIBTOOL= yes
USE_TOOLS+= bison flex gmake
GNU_CONFIGURE= yes
+.include "options.mk"
+
CFLAGS.SunOS+= -D_XPG6 -D__EXTENSIONS__
TEST_TARGET= check
-.include "../../textproc/oniguruma/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/jq/options.mk b/devel/jq/options.mk
new file mode 100644
index 00000000000..11b2be40923
--- /dev/null
+++ b/devel/jq/options.mk
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2018/01/22 13:27:41 fhajny Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.jq
+PKG_SUPPORTED_OPTIONS= oniguruma
+PKG_SUGGESTED_OPTIONS= oniguruma
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Moniguruma)
+.include "../../textproc/oniguruma/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= ac_cv_lib_onig_onig_version=no
+.endif