aboutsummaryrefslogtreecommitdiff
path: root/sysutils/apachetop/Makefile
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2004-09-16 02:27:05 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2004-09-16 02:27:05 +0000
commitfa7d99ae9ea69c062ea6704f1743814ca02a57e4 (patch)
tree39b7974f9226828503d049bc8ef22e665c8305ba /sysutils/apachetop/Makefile
parentef0df2863f4b3b61fe448d6b87112afc6582e82a (diff)
downloadports-fa7d99ae9ea69c062ea6704f1743814ca02a57e4.tar.gz
ports-fa7d99ae9ea69c062ea6704f1743814ca02a57e4.zip
Notes
Diffstat (limited to 'sysutils/apachetop/Makefile')
-rw-r--r--sysutils/apachetop/Makefile35
1 files changed, 29 insertions, 6 deletions
diff --git a/sysutils/apachetop/Makefile b/sysutils/apachetop/Makefile
index 35827c60ec36..4938086a4e42 100644
--- a/sysutils/apachetop/Makefile
+++ b/sysutils/apachetop/Makefile
@@ -21,10 +21,33 @@ USE_REINPLACE= yes
MAN1= apachetop.1
PLIST_FILES= sbin/apachetop
-post-configure:
- ${REINPLACE_CMD} \
- -e 's/--run autoconf$$/--run $${AUTOCONF}/' \
- -e 's/--run autoheader$$/--run $${AUTOHEADER}/' \
- ${WRKSRC}/Makefile
+OPTIONS= ADNS "Asynchronous-capable DNS support" off \
+ FAM "File Alteration Monitor support" off \
+ PCRE "Perl Compatible Regular Expressions support" off
-.include <bsd.port.mk>
+.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>