aboutsummaryrefslogtreecommitdiffstats
path: root/devel/yajl/Makefile
blob: 231b1a7f9b10f5a0705eb04bc45e21fb594de560 (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
# $FreeBSD$

PORTNAME=   yajl
PORTVERSION=    2.1.0
CATEGORIES= devel

MAINTAINER= gregf@hugops.pw
COMMENT=    Portable JSON parsing and serialization library in ANSI C

LICENSE=    ISCL

USE_GITHUB= yes
GH_ACCOUNT= lloyd

CFLAGS+=    -g -O0

USE_LDCONFIG=   yes
USES=       cmake:outsource

PLIST_SUB=  VERSION=${PORTVERSION}

TEST_TARGET=    test test-api

post-patch:
    @${REINPLACE_CMD} -e "s,share/pkgconfig,libdata/pkgconfig,g" \
        ${WRKSRC}/src/CMakeLists.txt
    @${REINPLACE_CMD} -e 's|include/yajl|include|' \
        ${WRKSRC}/src/yajl.pc.cmake

.include <bsd.port.mk>