mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
834e273d02
From lua_module.c: #if ( LUA_VERSION_NUM == 501 ) failed = (lua_load(L, lua_get_line, reader, "@client") != 0 || lua_pcall(L, 0, LUA_MULTRET, 0) != 0); #elif ( LUA_VERSION_NUM == 502 ) failed = (lua_load(L, lua_get_line, reader, "@client", NULL) != 0 || lua_pcall(L, 0, LUA_MULTRET, 0) != 0); #else #error this lua version is not supported #endif PR: 220281
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
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
|
|
WWW= http://htt.sourceforge.net/
|
|
|
|
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:-52 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>
|