1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/sysutils/apachetop/Makefile
Pav Lucistnik 71090e11be - Update to 0.12.5
PR:		ports/87752
Submitted by:	Jean Milanez Melo <jmelo@freebsdbrasil.com.br>
Approved by:	maintainer timeout (14 days)
2005-11-03 19:58:00 +00:00

54 lines
1.3 KiB
Makefile

# New ports collection makefile for: apachetop
# Date created: 30 Sep 2003
# Whom: Sebastian Yepes F. <esn@x123.info>
#
# $FreeBSD$
#
PORTNAME= apachetop
PORTVERSION= 0.12.5
CATEGORIES= sysutils
MASTER_SITES= http://spork.qfe3.net/apachetop/files/
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= esn@x123.info
COMMENT= Apache RealTime log stats
WANT_AUTOCONF_VER=259
GNU_CONFIGURE= yes
USE_REINPLACE= yes
MAN1= apachetop.1
PLIST_FILES= bin/apachetop
OPTIONS= ADNS "Asynchronous-capable DNS support" off \
FAM "File Alteration Monitor support" off \
PCRE "Perl Compatible Regular Expressions support" off
.include <bsd.port.pre.mk>
.if defined(WITH_ADNS)
LIB_DEPENDS+= adns.1:${PORTSDIR}/dns/adns
CONFIGURE_ARGS+=--with-adns=${LOCALBASE}
.endif
.if defined(WITH_FAM)
LIB_DEPENDS+= fam.0:${PORTSDIR}/devel/fam
CONFIGURE_ARGS+=--with-fam=${LOCALBASE}
.endif
.if defined(WITH_PCRE)
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
CONFIGURE_ARGS+=--with-pcre=${LOCALBASE}
.endif
post-patch:
@${REINPLACE_CMD} -E -e 's,struct (circle_struct),\1,g' \
${WRKSRC}/src/hits_circle.*
@${REINPLACE_CMD} -E -e 's,enum (adns_queryflags),\1,g' \
${WRKSRC}/src/log.*
@${REINPLACE_CMD} -e 's,@AUTOCONF@,${AUTOCONF},' \
-e 's,@AUTOHEADER@,${AUTOHEADER},' ${WRKSRC}/Makefile.in
.include <bsd.port.post.mk>