Changeset View
Changeset View
Standalone View
Standalone View
www/nghttp2/Makefile
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
ASIO_CONFIGURE_ON= --enable-asio-lib --with-boost-asio --with-boost-system --with-boost-thread | ASIO_CONFIGURE_ON= --enable-asio-lib --with-boost-asio --with-boost-system --with-boost-thread | ||||
ASIO_LIB_DEPENDS= libboost_thread.so:devel/boost-libs | ASIO_LIB_DEPENDS= libboost_thread.so:devel/boost-libs | ||||
EXAMPLES_CONFIGURE_ENABLE= examples | EXAMPLES_CONFIGURE_ENABLE= examples | ||||
EXAMPLES_BUILD_DEPENDS= libevent>=2.0.8:devel/libevent | EXAMPLES_BUILD_DEPENDS= libevent>=2.0.8:devel/libevent | ||||
EXAMPLES_LIB_DEPENDS= libevent_openssl.so:devel/libevent | EXAMPLES_LIB_DEPENDS= libevent_openssl.so:devel/libevent | ||||
HPACK_BUILD_DEPENDS= jansson>=2.5:devel/jansson | HPACK_BUILD_DEPENDS= jansson>=2.5:devel/jansson | ||||
HPACK_CONFIGURE_ENABLE= hpack-tools | HPACK_CONFIGURE_ENABLE= hpack-tools | ||||
HPACK_LIB_DEPENDS= libjansson.so:devel/jansson | HPACK_LIB_DEPENDS= libjansson.so:devel/jansson | ||||
.include <bsd.port.options.mk> | |||||
post-patch: | post-patch: | ||||
sunpoet: This can be removed together. Thanks! | |||||
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| lib||' ${WRKSRC}/Makefile.am | @${REINPLACE_CMD} -e '/^SUBDIRS = / s| lib||' ${WRKSRC}/Makefile.am | ||||
@${REINPLACE_CMD} -e 's|$$[({]top_builddir[})]/lib/libnghttp2.la|-lnghttp2|' ${WRKSRC}/*/Makefile.am | @${REINPLACE_CMD} -e 's|$$[({]top_builddir[})]/lib/libnghttp2.la|-lnghttp2|' ${WRKSRC}/*/Makefile.am | ||||
@${REINPLACE_CMD} -e '1d' ${WRKSRC}/script/fetch-ocsp-response | @${REINPLACE_CMD} -e '1d' ${WRKSRC}/script/fetch-ocsp-response | ||||
# lib/libnghttp2.* are not available until configure phase | # lib/libnghttp2.* are not available until configure phase | ||||
post-configure: | post-configure: | ||||
@${MKDIR} ${WRKSRC}/lib/.libs/ | @${MKDIR} ${WRKSRC}/lib/.libs/ | ||||
@${CP} ${LOCALBASE}/lib/libnghttp2.so* ${WRKSRC}/lib/.libs/ | @${CP} ${LOCALBASE}/lib/libnghttp2.so* ${WRKSRC}/lib/.libs/ | ||||
@cd ${WRKSRC}/lib/.libs/ && ${AR} x ${LOCALBASE}/lib/libnghttp2.a | @cd ${WRKSRC}/lib/.libs/ && ${AR} x ${LOCALBASE}/lib/libnghttp2.a | ||||
# Disable thread_local support for hosts without __cxa_thread_atexit() | |||||
# See PR/192320 for details | |||||
.if ${OPSYS} == FreeBSD && ((${OSVERSION} < 1003506) || (${OSVERSION} == 1100500)) | |||||
@${REINPLACE_CMD} -e '/HAVE_THREAD_LOCAL/d' ${WRKSRC}/config.h | |||||
.endif | |||||
post-install: | post-install: | ||||
${MKDIR} ${STAGEDIR}${PREFIX}/etc/nghttpx/ | ${MKDIR} ${STAGEDIR}${PREFIX}/etc/nghttpx/ | ||||
${INSTALL_DATA} ${FILESDIR}/nghttpx.conf.sample ${STAGEDIR}${PREFIX}/etc/nghttpx/nghttpx.conf.sample | ${INSTALL_DATA} ${FILESDIR}/nghttpx.conf.sample ${STAGEDIR}${PREFIX}/etc/nghttpx/nghttpx.conf.sample | ||||
post-install-EXAMPLES-on: | post-install-EXAMPLES-on: | ||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ | ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ | ||||
${INSTALL_DATA} ${WRKSRC}/examples/*.c* ${STAGEDIR}${EXAMPLESDIR}/ | ${INSTALL_DATA} ${WRKSRC}/examples/*.c* ${STAGEDIR}${EXAMPLESDIR}/ | ||||
cd ${WRKSRC}/examples/ && ${INSTALL_PROGRAM} client deflate libevent-client libevent-server ${STAGEDIR}${EXAMPLESDIR}/ | cd ${WRKSRC}/examples/ && ${INSTALL_PROGRAM} client deflate libevent-client libevent-server ${STAGEDIR}${EXAMPLESDIR}/ | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
This can be removed together. Thanks!