| @@ -1,46 +1,48 @@ | | | @@ -1,46 +1,48 @@ |
1 | # $NetBSD: options.mk,v 1.5 2017/12/21 08:18:38 adam Exp $ | | 1 | # $NetBSD: options.mk,v 1.5.10.1 2019/01/19 21:09:42 bsiegert Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nghttp2 | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nghttp2 |
4 | PKG_SUPPORTED_OPTIONS= nghttp2-asio nghttp2-tools | | 4 | PKG_SUPPORTED_OPTIONS= nghttp2-asio nghttp2-tools |
5 | PKG_SUGGESTED_OPTIONS= # | | 5 | PKG_SUGGESTED_OPTIONS= # |
6 | | | 6 | |
7 | .include "../../mk/bsd.options.mk" | | 7 | .include "../../mk/bsd.options.mk" |
8 | | | 8 | |
9 | PLIST_VARS+= asio tools | | 9 | PLIST_VARS+= asio tools |
10 | | | 10 | |
11 | ### | | 11 | ### |
12 | ### Build the ASIO C++ library | | 12 | ### Build the ASIO C++ library |
13 | ### | | 13 | ### |
14 | .if !empty(PKG_OPTIONS:Mnghttp2-asio) | | 14 | .if !empty(PKG_OPTIONS:Mnghttp2-asio) |
15 | # Requires emplace() for associative containers, introduced in gcc 4.8.0 | | 15 | # Upstream documents C++14 and gcc>=6 or clang>=6 |
16 | GCC_REQD+= 4.8 | | 16 | USE_LANGUAGES+= c++14 |
| | | 17 | GCC_REQD+= 6 |
17 | CONFIGURE_ARGS+= --enable-asio-lib | | 18 | CONFIGURE_ARGS+= --enable-asio-lib |
18 | CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-libs} | | 19 | CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-libs} |
19 | CONFIGURE_ARGS+= --with-boost-asio | | 20 | CONFIGURE_ARGS+= --with-boost-asio |
20 | CONFIGURE_ARGS+= --with-boost-system | | 21 | CONFIGURE_ARGS+= --with-boost-system |
21 | CONFIGURE_ARGS+= --with-boost-thread | | 22 | CONFIGURE_ARGS+= --with-boost-thread |
22 | PLIST.asio= yes | | 23 | PLIST.asio= yes |
23 | .include "../../devel/boost-libs/buildlink3.mk" | | 24 | .include "../../devel/boost-libs/buildlink3.mk" |
24 | .include "../../security/openssl/buildlink3.mk" | | 25 | .include "../../security/openssl/buildlink3.mk" |
25 | .else | | 26 | .else |
26 | CONFIGURE_ARGS+= --with-boost=no | | 27 | CONFIGURE_ARGS+= --with-boost=no |
27 | .endif | | 28 | .endif |
28 | | | 29 | |
29 | ### | | 30 | ### |
30 | ### Build apps and tools | | 31 | ### Build apps and tools |
31 | ### | | 32 | ### |
32 | .if !empty(PKG_OPTIONS:Mnghttp2-tools) | | 33 | .if !empty(PKG_OPTIONS:Mnghttp2-tools) |
33 | # Requires emplace() for associative containers, introduced in gcc 4.8.0 | | 34 | # Upstream documents C++14 and gcc>=6 or clang>=6 |
34 | GCC_REQD+= 4.8 | | 35 | USE_LANGUAGES+= c++14 |
| | | 36 | GCC_REQD+= 6 |
35 | CONFIGURE_ARGS+= --enable-app | | 37 | CONFIGURE_ARGS+= --enable-app |
36 | CONFIGURE_ARGS+= --enable-hpack-tools | | 38 | CONFIGURE_ARGS+= --enable-hpack-tools |
37 | PLIST.tools= yes | | 39 | PLIST.tools= yes |
38 | .include "../../devel/libev/buildlink3.mk" | | 40 | .include "../../devel/libev/buildlink3.mk" |
39 | .include "../../devel/zlib/buildlink3.mk" | | 41 | .include "../../devel/zlib/buildlink3.mk" |
40 | .include "../../net/libcares/buildlink3.mk" | | 42 | .include "../../net/libcares/buildlink3.mk" |
41 | .include "../../security/openssl/buildlink3.mk" | | 43 | .include "../../security/openssl/buildlink3.mk" |
42 | .include "../../textproc/jansson/buildlink3.mk" | | 44 | .include "../../textproc/jansson/buildlink3.mk" |
43 | .else | | 45 | .else |
44 | CONFIGURE_ARGS+= --disable-app | | 46 | CONFIGURE_ARGS+= --disable-app |
45 | CONFIGURE_ARGS+= --disable-hpack-tools | | 47 | CONFIGURE_ARGS+= --disable-hpack-tools |
46 | .endif | | 48 | .endif |