46 lines
1.3 KiB
Makefile
Raw Normal View History

2019-11-18 11:41:26 +00:00
# $OpenBSD: Makefile,v 1.44 2019/11/18 11:41:26 sthen Exp $
COMMENT= library for HTTP/2
2019-11-18 11:41:26 +00:00
V= 1.40.0
DISTNAME= nghttp2-$V
2019-11-18 11:41:26 +00:00
SHARED_LIBS += nghttp2 0.16 # 33.0
CATEGORIES= www
HOMEPAGE= https://nghttp2.org/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# MIT
PERMIT_PACKAGE= Yes
MASTER_SITES= https://github.com/tatsuhiro-t/nghttp2/releases/download/v$V/
SEPARATE_BUILD= Yes
CONFIGURE_STYLE= gnu
# - examples have conflicts (libevent, libevent2, libev)
# - hpack-tools require a C++11 compiler (array)
# Both of these pull in additional libraries; deliberately trying to keep
# dependencies light for this port, to avoid pulling in the world, and
# to avoid restricting arch.
2016-03-11 20:28:21 +00:00
CONFIGURE_ARGS+= --disable-examples \
--disable-hpack-tools \
--disable-python-bindings \
--without-libxml2
# Tests don't do much unless cunit is present at configure time.
# As above, don't pull this in, to avoid restricting arch.
pre-test:
@if ! [ -f ${LOCALBASE}/lib/libcunit.a ]; then echo; \
echo "====================================================="; \
echo "To run tests, install the cunit package and re-build."; \
echo "Dependency is not forced to avoid restricting arches."; \
echo "====================================================="; \
echo; exit 1; \
fi
.include <bsd.port.mk>