- Add WITHOUT_APACHE_EXPAT knob.

It ensures to link with expat when apache isn't built with its own expat

Noticed by:	Nik Clayton <nik _at_ crf-consulting _dot_ co _dot_ uk>
PR:		ports/71988
This commit is contained in:
Clement Laforet 2004-10-13 08:37:32 +00:00
parent 01ab3fff1d
commit c8ff4a485b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119181

View file

@ -35,6 +35,11 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \
--includedir=${PREFIX}/include/apache \
--with-apxs=${APXS}
.if defined(WITHOUT_APACHE_EXPAT)
CONFIGURE_ARGS+= --with-expat=${LOCALBASE}
LIB_DEPENDS+= expat.5:${PORTSDIR}/textproc/expat2
.endif
CONFIGURE_ENV= CFLAGS='${CFLAGS}' \
PATH="${PREFIX}/bin:${PREFIX}/sbin:${PATH}"