aboutsummaryrefslogtreecommitdiffstats
path: root/www/apache21/Makefile
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2006-01-16 02:58:38 +0800
committerclement <clement@FreeBSD.org>2006-01-16 02:58:38 +0800
commit7b247e140593683d036de0784425ba9021d79477 (patch)
treef4a57f983ec75bb1b3249f3ae7bddfd25e2dc1a8 /www/apache21/Makefile
parentbf23396c5548200a3658ec96530c67aea66e84ac (diff)
downloadfreebsd-ports-gnome-7b247e140593683d036de0784425ba9021d79477.tar.gz
freebsd-ports-gnome-7b247e140593683d036de0784425ba9021d79477.tar.zst
freebsd-ports-gnome-7b247e140593683d036de0784425ba9021d79477.zip
Cleanups and fixes
- remove useless options (and fix thread stuff) [1] - move print-closest-mirror to bsd.apache.mk - move threads configure options out of Makefile.modules - Fix stupid logic to disable v4mapped address [2] - and more... Submitted/spotted by: many, Hirohisa Yamaguchi <umq@ueo.co.jp> [1] ume[2] PR: ports/91813 [1]
Diffstat (limited to 'www/apache21/Makefile')
-rw-r--r--www/apache21/Makefile43
1 files changed, 14 insertions, 29 deletions
diff --git a/www/apache21/Makefile b/www/apache21/Makefile
index 8ec911f6756c..e86c2482d708 100644
--- a/www/apache21/Makefile
+++ b/www/apache21/Makefile
@@ -40,6 +40,7 @@ SCRIPTS_ENV+= LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} \
LIBTOOL_M4=${LOCALBASE}/share/aclocal/libtool${LIBTOOL_VERSION}.m4 \
AUTOHEADER=${AUTOHEADER}
+USE_APACHE= common21
USE_BZIP2= yes
USE_ICONV= yes
USE_AUTOTOOLS= autoconf:259 libtool:15
@@ -80,7 +81,7 @@ EXTRA_PATCHES+= ${FILESDIR}/exp-windowsupdate.patch
CONFIGURE_ARGS+= --disable-ipv6
.else
CATEGORIES+= ipv6
-. if defined(WITH_IPV6_V6ONLY) && defined(WITHOUT_V4MAPPED)
+. if defined(WITH_IPV6_V6ONLY) || defined(WITHOUT_V4MAPPED)
CONFIGURE_ARGS+= --disable-v4-mapped
. else
CONFIGURE_ARGS+= --enable-v4-mapped
@@ -126,6 +127,8 @@ CONFIGURE_ARGS+= --with-ldap \
--with-ldap-include="${LOCALBASE}/include"
.endif
+.include "${APACHEDIR}/Makefile.doc"
+.include "${APACHEDIR}/Makefile.modules"
.include <bsd.port.pre.mk>
.if defined(WITH_APR_FROM_PORTS)
@@ -140,40 +143,22 @@ CONFLICTS+= apr-1.*
CONFIGURE_ENV+= USE_BUNDLED_APR=YES
.endif
-WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//:S/-//}
-WITH_PTHREAD_CFLAGS?= ${PTHREAD_CFLAGS}
-
-.include "${APACHEDIR}/Makefile.doc"
-.include "${APACHEDIR}/Makefile.modules"
-WANT_APACHE= common21
-.include "${APACHEDIR}/../apache20/Makefile.modules.3rd"
+.if defined(WITH_THREADS)
+CONFIGURE_ARGS+= --enable-threads
+. if ${OSVERSION} > 500023
+CONFIGURE_ENV+= apr_cv_pthreads_lib=-l${WITH_PTHREAD_LIBS} \
+ apr_cv_pthreads_cflags=${WITH_PTHREAD_CFLAGS}
+. if ${ARCH} == i386
+CONFIGURE_ARGS+= --enable-nonportable-atomics
+. endif
+. endif
+.endif
CONFIGURE_ARGS+= --with-mpm=${WITH_MPM:L} ${CONFIGURE_TARGET}
show-options:
@${SED} -ne 's/^##//p' ${APACHEDIR}/Makefile.doc
-show-categories:
-.for category in ${ALL_MODULES_CATEGORIES}
- @${ECHO_MSG} "${category} contains these modules:"
- @${ECHO_MSG} " ${${category}_MODULES}"
-.endfor
-
-show-modules:
- @for module in ${AVAILABLE_MODULES} ; do \
- ${ECHO_MSG} -n "$${module}: ";\
- if ${ECHO_CMD} ${APACHE_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; then \
- ${ECHO_CMD} -n "enabled "; \
- if ${ECHO_CMD} ${WITH_STATIC_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; then \
- ${ECHO_CMD} "(static)" ; \
- else \
- ${ECHO_CMD} "(shared)" ;\
- fi;\
- else\
- ${ECHO_CMD} disabled ;\
- fi;\
- done
-
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} " To enable a module category: WITH_<CATEGORY>_MODULES"