aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2003-02-16 23:51:17 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2003-02-16 23:51:17 +0000
commitc3cd3c35804fcfd6b2b5cc33e0692a4b01e7fcf0 (patch)
tree9a8e340c9bc75846aabf0d36df7c5cb6de2b0ba8
parent5e94494e9c552f20f5cb4b711537d3ea429e8498 (diff)
downloadports-c3cd3c35804fcfd6b2b5cc33e0692a4b01e7fcf0.tar.gz
ports-c3cd3c35804fcfd6b2b5cc33e0692a4b01e7fcf0.zip
Notes
-rw-r--r--www/apache13/Makefile27
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 \