diff options
Diffstat (limited to 'textproc/json-c/Makefile')
-rw-r--r-- | textproc/json-c/Makefile | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/textproc/json-c/Makefile b/textproc/json-c/Makefile index d3140a0ed04..70e60406d1c 100644 --- a/textproc/json-c/Makefile +++ b/textproc/json-c/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.14 2019/09/24 16:08:29 kamil Exp $ +# $NetBSD: Makefile,v 1.15 2020/05/19 12:08:31 nia Exp $ -DISTNAME= json-c-0.13.1 +DISTNAME= json-c-0.14 CATEGORIES= textproc MASTER_SITES= https://s3.amazonaws.com/json-c_releases/releases/ @@ -9,23 +9,10 @@ HOMEPAGE= https://github.com/json-c/json-c/wiki COMMENT= JSON library in C LICENSE= mit -USE_LIBTOOL= yes -USE_TOOLS+= pkg-config -GNU_CONFIGURE= yes -PKGCONFIG_OVERRIDE+= json-c.pc.in -TEST_TARGET= check - -.include "../../mk/compiler.mk" +USE_CMAKE= yes -BUILDLINK_TRANSFORM+= rm:-Werror # -Werror,-Wimplicit-int-float-conversion fixed in https://github.com/json-c/json-c/commit/d0b87ee87b282e9b91a1af924050e217b0b2ae8b.patch +CMAKE_ARGS+= -DCMAKE_BUILD_TYPE="Release" -# 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 - -.if !empty(CC_VERSION:Mgcc-[789].*) -CFLAGS+= -Wimplicit-fallthrough=0 -.endif +PKGCONFIG_OVERRIDE+= json-c.pc.in .include "../../mk/bsd.pkg.mk" |