620968a43a
Search criteria used: - 11.4 - OSREL* - OSVER* - *_FreeBSD_11 Input from: - adridg: devel/qca-legacy - jbeich: _WITH_DPRINTF, _WITH_GETLINE, GNU bfd workarounds - sunpoet: security/p5-*OpenSSL* Reviewed by: doceng, kde, multimedia, perl, python, ruby, rust Differential Revision: https://reviews.freebsd.org/D32008 Test Plan: make index
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# Created by: Martin Matuska <mm@FreeBSD.org>
|
|
|
|
PORTNAME= httest
|
|
PORTVERSION= 2.4.24
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/htt/htt${PORTVERSION:R}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= HTTP Test Tool
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= help2man:misc/help2man
|
|
LIB_DEPENDS= libexpat.so:textproc/expat2 \
|
|
libgdbm.so:databases/gdbm \
|
|
libpcre.so:devel/pcre \
|
|
libapr-1.so:devel/apr1
|
|
|
|
USES= iconv lua libtool bdb ssl
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
CONFIGURE_ARGS= --enable-lua-module \
|
|
--with-apr="${LOCALBASE}/bin" \
|
|
--with-apr-util="${LOCALBASE}/bin" \
|
|
--with-lua="${LUA_LIBDIR}" \
|
|
--with-pcre="${LOCALBASE}/bin" \
|
|
--with-ssl="${OPENSSLLIB}"
|
|
CPPFLAGS+= -I${LUA_INCDIR}
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
post-patch:
|
|
@${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|^apr_time_t start_time|extern &|' \
|
|
${WRKSRC}/src/perf_module.c
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.htt ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|