blob: 985521fa005bf2d16cb4c6ee30355fd24b4dba2e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= nghttp2
PORTVERSION= 0.3.2
PORTREVISION= 1
CATEGORIES= www net
MASTER_SITES= https://github.com/tatsuhiro-t/${PORTNAME}/releases/download/v${PORTVERSION}/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= HTTP/2.0 C Library
LICENSE= MIT
LIB_DEPENDS= libevent_openssl.so:${PORTSDIR}/devel/libevent2 \
libspdylay.so:${PORTSDIR}/www/spdylay
OPTIONS_DEFINE= HPACK
OPTIONS_SUB= yes
CONFIGURE_ARGS= --disable-python-bindings \
--enable-app \
--enable-examples
CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" \
ZLIB_CFLAGS="-I${INCLUDEDIR}" \
ZLIB_LIBS="-L${LIBDIR} -lz"
GNU_CONFIGURE= yes
USE_CXXSTD= c++11
USE_GNOME= libxml2
USE_LDCONFIG= yes
USE_OPENSSL= yes
USES= compiler:c++11-lang pathfix pkgconfig tar:xz
PORTDOCS= *
HPACK_CONFIGURE_ARGS= --enable-hpack-tools
HPACK_LIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 1000000 && !defined(WITH_OPENSSL_PORT)
IGNORE= nghttp2 requires OpenSSL 1.0.1+
.endif
post-build:
@${STRIP_CMD} ${WRKSRC}/lib/.libs/libnghttp2.so.2
.include <bsd.port.post.mk>
|