Commit a03ded8b authored by sunpoet's avatar sunpoet
Browse files

- Add EXAMPLES option

- Update pkg-descr
- Bump PORTREVISION for package change
parent c6be799e
......@@ -4,6 +4,7 @@
PORTNAME= nghttp2
PORTVERSION= 1.17.0
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= www net
MAINTAINER= sunpoet@FreeBSD.org
......@@ -12,15 +13,14 @@ COMMENT= HTTP/2.0 C Library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= APP ASIO DOCS HPACK SPDY
OPTIONS_DEFINE= APP ASIO DOCS EXAMPLES HPACK SPDY
OPTIONS_DEFAULT=APP HPACK SPDY
OPTIONS_SUB= yes
APP_DESC= Build h2load, nghttp, nghttpd and nghttpx
SPDY_DESC= Enable SPDY in h2load and nghttpx
SPDY_IMPLIES= APP
CONFIGURE_ARGS= --disable-python-bindings \
--disable-examples
CONFIGURE_ARGS= --disable-python-bindings
CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" \
ZLIB_CFLAGS="-I${INCLUDEDIR}" \
......@@ -34,19 +34,22 @@ USES= autoreconf compiler:c++11-lib gmake libtool localbase pathfix pkgconfig s
PORTDATA= fetch-ocsp-response
PORTDOCS= *
PORTEXAMPLES= *
USE_GITHUB= yes
APP_BUILD_DEPENDS= libev>=4.11:devel/libev
APP_CONFIGURE_OFF= --without-libxml2
APP_CONFIGURE_ENABLE= app
APP_CONFIGURE_OFF= --without-libxml2
APP_LIB_DEPENDS= libev.so:devel/libev
APP_USE= GNOME=libxml2
APP_USES= gnome
ASIO_BUILD_DEPENDS= boost-libs>=1.54.0:devel/boost-libs
ASIO_CONFIGURE_OFF= --with-boost=no
ASIO_CONFIGURE_ON= --enable-asio-lib --with-boost-asio --with-boost-system --with-boost-thread
ASIO_LIB_DEPENDS= libboost_thread.so:devel/boost-libs
ASIO_RUN_DEPENDS= boost-libs>=1.54.0:devel/boost-libs
EXAMPLES_CONFIGURE_ENABLE= examples
HPACK_BUILD_DEPENDS= jansson>=2.5:devel/jansson
HPACK_CONFIGURE_ENABLE= hpack-tools
HPACK_LIB_DEPENDS= libjansson.so:devel/jansson
......@@ -72,7 +75,12 @@ CONFIGURE_ARGS+=--with-jemalloc
.endif
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/nghttpx
${MKDIR} ${STAGEDIR}${PREFIX}/etc/nghttpx/
${INSTALL_DATA} ${FILESDIR}/nghttpx.conf.sample ${STAGEDIR}${PREFIX}/etc/nghttpx/nghttpx.conf.sample
post-install-examples-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/examples/*.c* ${STAGEDIR}${EXAMPLESDIR}/
${INSTALL_PROGRAM} ${WRKSRC}/examples/.libs/* ${STAGEDIR}${EXAMPLESDIR}/
.include <bsd.port.post.mk>
nghttp2 - HTTP/2.0 C Library
nghttp2 is an implementation of HTTP/2 and its header compression algorithm
HPACK in C.
This is an experimental implementation of Hypertext Transfer Protocol version
2.0.
The framing layer of HTTP/2 is implemented as a form of reusable C library. On
top of that, we have implemented HTTP/2 client, server and proxy. We have also
developed load test and benchmarking tool for HTTP/2 and SPDY.
WWW: https://nghttp2.org/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment