aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/jshon/Makefile
blob: e9ac840a6012705836deb36d04d7a9d3b7fdddf3 (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
# $FreeBSD$

PORTNAME=   jshon
PORTVERSION=    20121210
CATEGORIES= textproc

MAINTAINER= bapt@FreeBSD.org
COMMENT=    json parser for the shell.

LICENSE=    MIT

LIB_DEPENDS=    jansson:${PORTSDIR}/devel/jansson

USES=       gmake
USE_GITHUB= yes
GH_ACCOUNT= keenerd
GH_COMMIT=  b21bc98
GH_TAGNAME= ${GH_COMMIT}

CFLAGS+=    -I${LOCALBASE}/include

PLIST_FILES=    bin/${PORTNAME}
MAN1=   ${PORTNAME}.1

NO_STAGE=   yes
post-patch:
    @${REINPLACE_CMD} -e 's,-ljansson,-L${LOCALBASE}/lib -ljansson,g' ${WRKSRC}/Makefile

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1

.include <bsd.port.mk>