aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/jq/Makefile
blob: c34e55bbbeb66d0d684e9d6cd81ebdd2b3ad24cf (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
# Created by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
# $FreeBSD$

PORTNAME=   jq
PORTVERSION=    1.4
CATEGORIES= textproc
MASTER_SITES=   http://stedolan.github.io/jq/download/source/ \
        http://mirrors.rit.edu/zi/

MAINTAINER= jnlin@csie.nctu.edu.tw
COMMENT=    Lightweight and flexible command-line JSON processor

OPTIONS_DEFINE= DOCS

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-docs --docdir="${DOCSDIR}"
USE_CSTD=   gnu99
USE_LDCONFIG=   yes
USES=       libtool

PLIST_FILES=    bin/${PORTNAME} \
        include/jq.h include/jv.h \
        lib/libjq.a lib/libjq.so lib/libjq.so.1 lib/libjq.so.1.0.4 \
        man/man1/${PORTNAME}.1.gz
PORTDOCS=   *

.include <bsd.port.options.mk>

.if !${PORT_OPTIONS:MDOCS}
MAKE_ARGS=  docdir=
.endif

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libjq.so.1.0.4

.include <bsd.port.mk>