# Created by: Martin Matuska 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