summaryrefslogtreecommitdiff
path: root/www/nghttp2/Makefile
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2019-01-14 17:22:18 +0000
committergdt <gdt@pkgsrc.org>2019-01-14 17:22:18 +0000
commit6418d3f7171756bdcf7da47d98c5a5174a2340b5 (patch)
treeeda85b41bb716f085d8eb1f7e0393bf9fe6f8dee /www/nghttp2/Makefile
parent820b8f64af051fa27eba4d96af3f82d914cc0470 (diff)
downloadpkgsrc-6418d3f7171756bdcf7da47d98c5a5174a2340b5.tar.gz
nghttp2: Rototill USE_LANGUAGES and make granular per option
Back out the previous build fix. The base package does not even need C++, so drop from USE_LANGUAGES, and remove GCC_REQD. Builds on netbsd-7/amd64 with gcc 4.8. Both options build C++ code. Add c++14 to USE_LANGUAGES and 6 to GCC_REQD, following upstream documentation.
Diffstat (limited to 'www/nghttp2/Makefile')
-rw-r--r--www/nghttp2/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/www/nghttp2/Makefile b/www/nghttp2/Makefile
index 4c8c7c96310..78833a7fb9a 100644
--- a/www/nghttp2/Makefile
+++ b/www/nghttp2/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.47 2019/01/04 14:52:43 gdt Exp $
+# $NetBSD: Makefile,v 1.48 2019/01/14 17:22:18 gdt Exp $
DISTNAME= nghttp2-1.35.1
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=tatsuhiro-t/}
EXTRACT_SUFX= .tar.xz
@@ -12,8 +12,12 @@ HOMEPAGE= https://nghttp2.org/
COMMENT= Implementation of HTTP/2 in C
LICENSE= mit
-USE_LANGUAGES= c c++14
-GCC_REQD+= 6
+# Upstream documents that c++14 is required for C++ parts of the code;
+# the base package does not use C++.
+USE_LANGUAGES= c
+# Upstream documents that gcc>=6 or clang >= 6 is required, but this
+# appears not to be true for the C parts.
+# https://github.com/nghttp2/nghttp2/issues/1293
USE_LIBTOOL= yes
USE_TOOLS+= gmake pkg-config