blob: d84f0b0dc3e92b3fb9bd3e56b34436f3353501a7 (
plain) (
tree)
|
|
# 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>
|