| @@ -1,47 +1,49 @@ | | | @@ -1,47 +1,49 @@ |
1 | # $NetBSD: options.mk,v 1.1 2015/06/03 11:53:53 fhajny Exp $ | | 1 | # $NetBSD: options.mk,v 1.2 2015/10/17 09:56:40 adam 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 | # Requires emplace() for associative containers, introduced in gcc 4.8.0 |
16 | GCC_REQD+= 4.8 | | 16 | GCC_REQD+= 4.8 |
17 | CONFIGURE_ARGS+= --enable-asio-lib | | 17 | CONFIGURE_ARGS+= --enable-asio-lib |
18 | CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-libs} | | 18 | CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-libs} |
19 | CONFIGURE_ARGS+= --with-boost-asio --with-boost-system --with-boost-thread | | 19 | CONFIGURE_ARGS+= --with-boost-asio |
| | | 20 | CONFIGURE_ARGS+= --with-boost-system |
| | | 21 | CONFIGURE_ARGS+= --with-boost-thread |
20 | PLIST.asio= yes | | 22 | PLIST.asio= yes |
21 | .include "../../devel/boost-libs/buildlink3.mk" | | 23 | .include "../../devel/boost-libs/buildlink3.mk" |
22 | .include "../../security/openssl/buildlink3.mk" | | 24 | .include "../../security/openssl/buildlink3.mk" |
23 | .else | | 25 | .else |
24 | CONFIGURE_ARGS+= --with-boost=no | | 26 | CONFIGURE_ARGS+= --with-boost=no |
25 | .endif | | 27 | .endif |
26 | | | 28 | |
27 | ### | | 29 | ### |
28 | ### Build apps and tools | | 30 | ### Build apps and tools |
29 | ### | | 31 | ### |
30 | .if !empty(PKG_OPTIONS:Mnghttp2-tools) | | 32 | .if !empty(PKG_OPTIONS:Mnghttp2-tools) |
31 | # Requires emplace() for associative containers, introduced in gcc 4.8.0 | | 33 | # Requires emplace() for associative containers, introduced in gcc 4.8.0 |
32 | GCC_REQD+= 4.8 | | 34 | GCC_REQD+= 4.8 |
33 | CONFIGURE_ARGS+= --enable-app | | 35 | CONFIGURE_ARGS+= --enable-app |
34 | CONFIGURE_ARGS+= --enable-hpack-tools | | 36 | CONFIGURE_ARGS+= --enable-hpack-tools |
35 | CONFIGURE_ARGS+= --with-spdylay | | 37 | CONFIGURE_ARGS+= --with-spdylay |
36 | PLIST.tools= yes | | 38 | PLIST.tools= yes |
37 | .include "../../devel/libev/buildlink3.mk" | | 39 | .include "../../devel/libev/buildlink3.mk" |
38 | .include "../../devel/zlib/buildlink3.mk" | | 40 | .include "../../devel/zlib/buildlink3.mk" |
39 | .include "../../security/openssl/buildlink3.mk" | | 41 | .include "../../security/openssl/buildlink3.mk" |
40 | .include "../../textproc/jansson/buildlink3.mk" | | 42 | .include "../../textproc/jansson/buildlink3.mk" |
41 | .include "../../textproc/libxml2/buildlink3.mk" | | 43 | .include "../../textproc/libxml2/buildlink3.mk" |
42 | .include "../../www/spdylay/buildlink3.mk" | | 44 | .include "../../www/spdylay/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 | CONFIGURE_ARGS+= --without-spdylay | | 48 | CONFIGURE_ARGS+= --without-spdylay |
47 | .endif | | 49 | .endif |