summaryrefslogtreecommitdiff
path: root/www/nghttp2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/nghttp2/Makefile')
-rw-r--r--www/nghttp2/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/www/nghttp2/Makefile b/www/nghttp2/Makefile
index cda22490fe02..b89547ce2800 100644
--- a/www/nghttp2/Makefile
+++ b/www/nghttp2/Makefile
@@ -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>