2016-06-12 16:37:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2016/06/12 14:37:37 wiz Exp $
|
2012-10-11 17:40:40 +02:00
|
|
|
|
2016-06-12 16:37:37 +02:00
|
|
|
DISTNAME= json-c-0.12.1
|
2012-10-11 17:40:40 +02:00
|
|
|
CATEGORIES= textproc
|
2013-11-25 12:59:08 +01:00
|
|
|
MASTER_SITES= https://s3.amazonaws.com/json-c_releases/releases/
|
2012-10-11 17:40:40 +02:00
|
|
|
|
|
|
|
MAINTAINER= ryoon@NetBSD.org
|
|
|
|
HOMEPAGE= https://github.com/json-c/json-c/wiki
|
|
|
|
COMMENT= JSON library in C
|
|
|
|
LICENSE= mit
|
|
|
|
|
2013-11-27 12:29:33 +01:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2012-10-11 17:40:40 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
|
2013-11-25 12:59:08 +01:00
|
|
|
PKGCONFIG_OVERRIDE+= json-c.pc.in
|
2012-10-11 17:40:40 +02:00
|
|
|
|
2013-11-29 18:45:18 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-oldname-compat
|
|
|
|
|
2012-10-26 22:16:44 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
|
|
CFLAGS+= -Wno-tautological-compare -Wno-unused-value
|
|
|
|
.endif
|
|
|
|
|
2014-05-10 06:09:41 +02:00
|
|
|
# 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
|
|
|
|
|
2012-10-11 17:40:40 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|