Changeset View
Changeset View
Standalone View
Standalone View
www/httest/Makefile
Show All 35 Lines | |||||
PORTEXAMPLES= * | PORTEXAMPLES= * | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
MAKE_JOBS_UNSAFE= yes | MAKE_JOBS_UNSAFE= yes | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
# Reported upstream: | # OpenSSL 1.1.1 incompatibility reported upstream: | ||||
# https://sourceforge.net/p/htt/tickets/5/ | # https://sourceforge.net/p/htt/tickets/5/ | ||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085 | .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200085 | ||||
BROKEN= does not build with OpenSSL 1.1.1 | BUILD_DEPENDS+= ${LOCALBASE}/include/openssl/dh.h:security/openssl | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|`$$APR_CONFIG --cflags`||; s|-llua|-llua-${LUA_VER}|g' ${WRKSRC}/configure | @${REINPLACE_CMD} -e 's|`$$APR_CONFIG --cflags`||; s|-llua|-llua-${LUA_VER}|g' ${WRKSRC}/configure | ||||
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' ${WRKSRC}/generate_modules_c.sh | @${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' ${WRKSRC}/generate_modules_c.sh | ||||
@${REINPLACE_CMD} -e 's|<pcre/pcre.h>|<pcre.h>|' ${WRKSRC}/src/httest.c ${WRKSRC}/src/regex.c \ | @${REINPLACE_CMD} -e 's|<pcre/pcre.h>|<pcre.h>|' ${WRKSRC}/src/httest.c ${WRKSRC}/src/regex.c \ | ||||
${WRKSRC}/src/body.c ${WRKSRC}/src/module.h ${WRKSRC}/src/worker.c | ${WRKSRC}/src/body.c ${WRKSRC}/src/module.h ${WRKSRC}/src/worker.c | ||||
post-install: | post-install: | ||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | ||||
${INSTALL_DATA} ${WRKSRC}/examples/*.htt ${STAGEDIR}${EXAMPLESDIR} | ${INSTALL_DATA} ${WRKSRC}/examples/*.htt ${STAGEDIR}${EXAMPLESDIR} | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |