blob: d84f0b0dc3e92b3fb9bd3e56b34436f3353501a7 (
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
|
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= libhpack
PORTVERSION= 0.0.20140329
CATEGORIES= www
MASTER_SITES= LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Implementation of HPACK (Header compression for HTTP/2.0)
LICENSE= BSD2CLAUSE
LIB_DEPENDS= libcheck.so:${PORTSDIR}/devel/libcheck
CMAKE_ARGS= -DBUILD_DOCS=OFF \
-DBUILD_TESTS=OFF \
-DENABLE_GCOV=OFF \
-DUSE_VALGRIND=OFF
USE_LDCONFIG= yes
USE_PYTHON_BUILD= 2
USES= cmake pkgconfig shebangfix tar:xz
SHEBANG_FILES= gen-config.py libhpack/huffman-gen.py
python_OLD_CMD= ${SETENV} python
python_CMD= ${PYTHON_CMD}
post-patch:
@${REINPLACE_CMD} -e 's|STATIC|SHARED|' ${WRKSRC}/libchula/CMakeLists.txt ${WRKSRC}/libhpack/CMakeLists.txt
@${REINPLACE_CMD} -e 's|$${CMAKE_INSTALL_LIBDIR}/pkgconfig|libdata/pkgconfig|' ${WRKSRC}/CMakeLists.txt ${WRKSRC}/libchula/CMakeLists.txt
.include <bsd.port.mk>
|