2019-01-14 18:22:18 +01:00
|
|
|
# $NetBSD: options.mk,v 1.6 2019/01/14 17:22:18 gdt Exp $
|
2015-06-03 13:53:53 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.nghttp2
|
|
|
|
PKG_SUPPORTED_OPTIONS= nghttp2-asio nghttp2-tools
|
|
|
|
PKG_SUGGESTED_OPTIONS= #
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
PLIST_VARS+= asio tools
|
|
|
|
|
|
|
|
###
|
|
|
|
### Build the ASIO C++ library
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mnghttp2-asio)
|
2019-01-14 18:22:18 +01:00
|
|
|
# Upstream documents C++14 and gcc>=6 or clang>=6
|
|
|
|
USE_LANGUAGES+= c++14
|
|
|
|
GCC_REQD+= 6
|
2015-06-03 13:53:53 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-asio-lib
|
|
|
|
CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-libs}
|
2015-10-17 11:56:40 +02:00
|
|
|
CONFIGURE_ARGS+= --with-boost-asio
|
|
|
|
CONFIGURE_ARGS+= --with-boost-system
|
|
|
|
CONFIGURE_ARGS+= --with-boost-thread
|
2015-06-03 13:53:53 +02:00
|
|
|
PLIST.asio= yes
|
|
|
|
.include "../../devel/boost-libs/buildlink3.mk"
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-boost=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Build apps and tools
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mnghttp2-tools)
|
2019-01-14 18:22:18 +01:00
|
|
|
# Upstream documents C++14 and gcc>=6 or clang>=6
|
|
|
|
USE_LANGUAGES+= c++14
|
|
|
|
GCC_REQD+= 6
|
2015-06-03 13:53:53 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-app
|
|
|
|
CONFIGURE_ARGS+= --enable-hpack-tools
|
|
|
|
PLIST.tools= yes
|
|
|
|
.include "../../devel/libev/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2017-01-02 10:51:18 +01:00
|
|
|
.include "../../net/libcares/buildlink3.mk"
|
2015-06-03 13:53:53 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../textproc/jansson/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-app
|
|
|
|
CONFIGURE_ARGS+= --disable-hpack-tools
|
|
|
|
.endif
|