blob: 25eeade564d7b55260dfa2481669c11fcaa6ce16 (
plain)
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
|
# $NetBSD: Makefile,v 1.10 2014/07/17 09:18:27 obache Exp $
DISTNAME= json-c-0.12
PKGREVISION= 2
CATEGORIES= textproc
MASTER_SITES= https://s3.amazonaws.com/json-c_releases/releases/
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://github.com/json-c/json-c/wiki
COMMENT= JSON library in C
LICENSE= mit
MAKE_JOBS_SAFE= no
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= json-c.pc.in
CONFIGURE_ARGS+= --disable-oldname-compat
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CFLAGS+= -Wno-tautological-compare -Wno-unused-value
.endif
# gcc < 4.2 does not have -Wno-error= option.
.if !empty(CC_VERSION:Mgcc-3*) || !empty(CC_VERSION:Mgcc-4.[01]*)
BUILDLINK_TRANSFORM+= rm:-Werror rm:-Wno-error=deprecated-declarations
.endif
.include "../../mk/bsd.pkg.mk"
|