1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/www/nghttp2/Makefile
Sunpoet Po-Chuan Hsieh 705f1cb447 - Make sure the include files from WRKSRC (current version) will be used instead of the installed ones
PR:		ports/195345
Submitted by:	Mikhail T <mi@ALDAN.algebra.com>
2014-12-08 09:12:08 +00:00

66 lines
2.0 KiB
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= nghttp2
PORTVERSION= 0.6.7
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
BUILD_DEPENDS= libevent2>=2.0.8:${PORTSDIR}/devel/libevent2 \
spdylay>=1.3.0:${PORTSDIR}/www/spdylay
LIB_DEPENDS= libevent_openssl.so:${PORTSDIR}/devel/libevent2 \
libspdylay.so:${PORTSDIR}/www/spdylay
RUN_DEPENDS:= ${BUILD_DEPENDS}
OPTIONS_DEFINE= ASIO HPACK
OPTIONS_DEFAULT=HPACK
OPTIONS_SUB= yes
CONFIGURE_ARGS= --disable-python-bindings \
--enable-app \
--enable-examples \
--with-spdylay
CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" \
ZLIB_CFLAGS="-I${INCLUDEDIR}" \
ZLIB_LIBS="-L${LIBDIR} -lz"
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_CXXSTD= c++11
USE_GNOME= libxml2
USE_LDCONFIG= yes
USE_OPENSSL= yes
USES= compiler:c++11-lang libtool pathfix pkgconfig tar:xz
PORTDOCS= *
ASIO_BUILD_DEPENDS= boost-libs>=1.54.0:${PORTSDIR}/devel/boost-libs
ASIO_CONFIGURE_OFF= --with-boost=no
ASIO_CONFIGURE_ON= --enable-asio-lib --with-boost=${LOCALBASE} --with-boost-asio --with-boost-system --with-boost-thread
ASIO_LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs
ASIO_RUN_DEPENDS= boost-libs>=1.54.0:${PORTSDIR}/devel/boost-libs
HPACK_CONFIGURE_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
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
CONFIGURE_ARGS+=--with-jemalloc
.endif
post-patch:
@${REINPLACE_CMD} -e '/JEMALLOC_LIBS/ s|-ljemalloc||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|^DEFAULT_INCLUDES = |&-I${WRKSRC}/src/includes |' ${WRKSRC}/examples/Makefile.in ${WRKSRC}/src/Makefile.in
.include <bsd.port.post.mk>