mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- unbreak this port.
- apply OPTIONS for optional ADNS/FAM/PCRE supports. PR: 71437 Submitted by: leeym Reviewed by: "Sebastian Yepes F. [ESN]" <esn@x123.info> Approved by: portmgr (marcus)
This commit is contained in:
parent
ef0df2863f
commit
fa7d99ae9e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118194
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user