aboutsummaryrefslogtreecommitdiffstats
path: root/www/httest/Makefile
blob: 3de2fe7726c7a1fe5a863593e8a3509e13f13f18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$

PORTNAME=   httest
PORTVERSION=    2.4.16
PORTREVISION=   1
CATEGORIES= www
MASTER_SITES=   SF/htt/htt${PORTVERSION:R}/${PORTNAME}-${PORTVERSION}

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    HTTP Test Tool

LICENSE=    APACHE20

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_OPENSSL=    yes
USE_LDCONFIG=   yes

PORTEXAMPLES=   *

INSTALL_TARGET= install-strip

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

post-install:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/*.htt ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>