Files
pkgsrc-ng/www/nghttp2/options.mk
2016-01-21 23:41:46 +01:00

48 lines
1.4 KiB
Makefile

# $NetBSD: options.mk,v 1.1 2015/06/03 11:53:53 fhajny Exp $
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)
# Requires emplace() for associative containers, introduced in gcc 4.8.0
GCC_REQD+= 4.8
CONFIGURE_ARGS+= --enable-asio-lib
CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-libs}
CONFIGURE_ARGS+= --with-boost-asio --with-boost-system --with-boost-thread
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)
# Requires emplace() for associative containers, introduced in gcc 4.8.0
GCC_REQD+= 4.8
CONFIGURE_ARGS+= --enable-app
CONFIGURE_ARGS+= --enable-hpack-tools
CONFIGURE_ARGS+= --with-spdylay
PLIST.tools= yes
.include "../../devel/libev/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/jansson/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../www/spdylay/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-app
CONFIGURE_ARGS+= --disable-hpack-tools
CONFIGURE_ARGS+= --without-spdylay
.endif