freebsd-ports/www/httest/Makefile
2017-01-18 14:15:49 +00:00

49 lines
1.3 KiB
Makefile

# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$
PORTNAME= httest
PORTVERSION= 2.4.19
CATEGORIES= www
MASTER_SITES= SF/htt/htt${PORTVERSION:R}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ehaupt@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
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}
GNU_CONFIGURE= yes
USES= iconv lua libtool bdb ssl
USE_LDCONFIG= yes
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|<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
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.htt ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>