summaryrefslogtreecommitdiff
path: root/www/apache6
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-18 06:01:35 +0000
committerjlam <jlam@pkgsrc.org>2001-05-18 06:01:35 +0000
commit5f0d65a65d06ab11887e87d2b31ddea30430b8ff (patch)
treee164fb1fce8f03bab88ca2ce4454b6d4bebd4dd4 /www/apache6
parent763c66cabefa322b9184e603620fb4b4e236d621 (diff)
downloadpkgsrc-5f0d65a65d06ab11887e87d2b31ddea30430b8ff.tar.gz
Introduce a new make variable APACHE_CUSTOM_CFLAGS that can be set in
/etc/mk.conf to any string of legal compiler flags to tune different aspects of the built httpd.
Diffstat (limited to 'www/apache6')
-rw-r--r--www/apache6/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/www/apache6/Makefile b/www/apache6/Makefile
index 67d2a80dabe..323b40cae3a 100644
--- a/www/apache6/Makefile
+++ b/www/apache6/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2001/05/08 17:28:09 jlam Exp $
+# $NetBSD: Makefile,v 1.31 2001/05/18 06:01:36 jlam Exp $
#
# This package does not compile in mod_ssl support hooks, as it conflicts
# with IPv6-enable patch.
@@ -36,7 +36,7 @@ CONFIGURE_ARGS+= --enable-module=most \
--disable-module=auth_dbm
CONFIGURE_ARGS+= --with-perl=${PERL5}
CONFIGURE_ARGS+= --with-port=80
-CONFIGURE_ENV+= OPTIM="${OPTIM}"
+CONFIGURE_ENV+= OPTIM="${APACHE_CUSTOM_CFLAGS}"
BUILD_DEFS+= USE_INET6
@@ -71,9 +71,11 @@ CONFIGURE_ARGS+= --disable-module=proxy
PLIST_SRC+= ${PKGDIR}/PLIST
+APACHE_CUSTOM_CFLAGS?= # empty
+
.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
-OPTIM+= -DBUFFERED_LOGS
-CFLAGS+= -O6 -fomit-frame-pointer -fexpensive-optimizations
+APACHE_CUSTOM_CFLAGS+= -DBUFFERED_LOGS
+APACHE_CUSTOM_CFLAGS+= -O6 -fomit-frame-pointer -fexpensive-optimizations
.endif
.if (${OPSYS} == "SunOS")
@@ -84,7 +86,9 @@ CONFIGURE_ENV+= INCLUDES="-I${LOCALBASE}/include/db2"
CONFIGURE_ENV+= LIBS="-ldbm -ldb2"
.endif
-BUILD_DEFS+= APACHE_PERF_TUNING APACHE_SUEXEC
+BUILD_DEFS+= APACHE_CUSTOM_CFLAGS
+BUILD_DEFS+= APACHE_PERF_TUNING
+BUILD_DEFS+= APACHE_SUEXEC
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
INSTALL_FILE= ${WRKDIR}/INSTALL