diff options
author | ache <ache@FreeBSD.org> | 2003-02-17 07:51:17 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2003-02-17 07:51:17 +0800 |
commit | adba49030a2e85ed5db9db0d49d780a97c543396 (patch) | |
tree | 46d477aa8e07442e5351af2bcf411b107d46e9f9 /www | |
parent | ff89bee7936e3cea14fbf4d08881157e3447bb2a (diff) | |
download | freebsd-ports-gnome-adba49030a2e85ed5db9db0d49d780a97c543396.tar.gz freebsd-ports-gnome-adba49030a2e85ed5db9db0d49d780a97c543396.tar.zst freebsd-ports-gnome-adba49030a2e85ed5db9db0d49d780a97c543396.zip |
Add WITHOUT_APACHE_EXPAT knob to build with no expat at all for those who
don't use it.
Diffstat (limited to 'www')
-rw-r--r-- | www/apache13/Makefile | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/www/apache13/Makefile b/www/apache13/Makefile index 80cbb51eb97b..5e2f1c50dd64 100644 --- a/www/apache13/Makefile +++ b/www/apache13/Makefile @@ -33,13 +33,19 @@ DISTNAME= apache_${PORTVERSION} MAINTAINER= ache@freebsd.org -LIB_DEPENDS+= expat.4:${PORTSDIR}/textproc/expat2 -USE_PERL5= yes +USE_PERL5= yes DATADIR=${PREFIX}/www DOCUMENT_ROOT=${DATADIR}/data DEFAULT_PATH=/bin:/usr/bin:${PREFIX}/bin +.if defined(WITHOUT_APACHE_EXPAT) && ${WITHOUT_APACHE_EXPAT} == yes +EXPAT_CONF+= --disable-rule=EXPAT +.else +LIB_DEPENDS+= expat.4:${PORTSDIR}/textproc/expat2 +EXPAT_CONF+= --enable-rule=EXPAT +.endif + .if defined(WITH_APACHE_SUEXEC) && ${WITH_APACHE_SUEXEC} == yes APACHE_SUEXEC_DOCROOT?=${DOCUMENT_ROOT} @@ -72,7 +78,7 @@ SUEXEC_MAN= .endif # !SUEXEC -HAS_CONFIGURE= yes +HAS_CONFIGURE= yes # += for child ports CONFIGURE_ARGS+= \ --prefix=${PREFIX} \ @@ -82,12 +88,12 @@ CONFIGURE_ARGS+= \ --with-layout=FreeBSD \ --without-confadjust \ --enable-module=most \ - --enable-rule=EXPAT \ --enable-module=auth_db \ --enable-module=mmap_static \ --disable-module=auth_dbm \ --enable-shared=max \ - ${SUEXEC_CONF} + ${SUEXEC_CONF} \ + ${EXPAT_CONF} CFLAGS+=-DDOCUMENT_LOCATION='\"${DOCUMENT_ROOT}\"' \ -DDEFAULT_PATH='\"${DEFAULT_PATH}\"' @@ -102,16 +108,21 @@ CFLAGS+=-DHARD_SERVER_LIMIT=512 .endif # -# Set WITH_APACHE_PERF_TUNING env. variable to YES to get maximum performance +# Set WITH_APACHE_PERF_TUNING env. variable to yes to get maximum performance # -.if defined(WITH_APACHE_PERF_TUNING) && ${WITH_APACHE_PERF_TUNING} == YES +.if defined(WITH_APACHE_PERF_TUNING) && ${WITH_APACHE_PERF_TUNING} == yes CFLAGS+=-DBUFFERED_LOGS +# Don't use OPTIM below, it is inserted _before_ CFLAGS CFLAGS+=-O6 -fomit-frame-pointer .endif -CONFIGURE_ENV= OPTIM='${OPTIM}' LD_SHLIB='${CC}' LIBS='${LIBS}' \ +CONFIGURE_ENV= OPTIM='${OPTIM}' LD_SHLIB='${CC}' LIBS='${LIBS}' + +.if !defined(WITHOUT_APACHE_EXPAT) || ${WITHOUT_APACHE_EXPAT} != yes +CONFIGURE_ENV+= \ INCLUDES=-I${LOCALBASE}/include \ LDFLAGS=-L${LOCALBASE}/lib +.endif MAN1= dbmmanage.1 htdigest.1 htpasswd.1 MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 \ |