aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/jq/Makefile
blob: 26659c0742896e7cfe3f445ae38a34d16db16636 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
# $FreeBSD$

PORTNAME=   jq
PORTVERSION=    1.5
DISTVERSIONPREFIX=  ${PORTNAME}-
CATEGORIES= textproc

MAINTAINER= yuri@rawbw.com
COMMENT=    Lightweight and flexible command-line JSON processor

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/COPYING

USE_GITHUB= yes
GH_ACCOUNT= stedolan

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --docdir="${DOCSDIR}" \
        --disable-maintainer-mode
USE_CSTD=   gnu99
USE_LDCONFIG=   yes
USES=       gmake libtool
INSTALL_TARGET= install-strip

PORTDOCS=   *

OPTIONS_DEFINE= DOCS ONIGURUMA
OPTIONS_DEFAULT=ONIGURUMA

DOCS_MAKE_ARGS_OFF= docdir=
DOCS_CONFIGURE_ENABLE=  docs

ONIGURUMA_DESC=     With oniguruma BSDL regular expression library
ONIGURUMA_LIB_DEPENDS=  libonig.so:devel/oniguruma5
#ONIGURUMA_CONFIGURE_WITH=oniguruma=${LOCALBASE} # pending resolution of https://github.com/stedolan/jq/issues/1021, next line is the workaround
ONIGURUMA_CONFIGURE_ON= --with-oniguruma=${LOCALBASE}

.include <bsd.port.mk>