diff options
author | Clement Laforet <clement@FreeBSD.org> | 2006-01-15 18:58:38 +0000 |
---|---|---|
committer | Clement Laforet <clement@FreeBSD.org> | 2006-01-15 18:58:38 +0000 |
commit | c5d4c969c8fd1e64cfee5dfdd8b3402d335114ea (patch) | |
tree | 3984993639b14fb0df67890bc349795bedf9a88a /www/apache22 | |
parent | 236bc34aee98227b2d85e9f190e8edb1bae4156b (diff) | |
download | ports-c5d4c969c8fd1e64cfee5dfdd8b3402d335114ea.tar.gz ports-c5d4c969c8fd1e64cfee5dfdd8b3402d335114ea.zip |
Notes
Diffstat (limited to 'www/apache22')
-rw-r--r-- | www/apache22/Makefile | 32 | ||||
-rw-r--r-- | www/apache22/Makefile.modules | 13 |
2 files changed, 17 insertions, 28 deletions
diff --git a/www/apache22/Makefile b/www/apache22/Makefile index 5c6ae2c0af3a..4365230625d5 100644 --- a/www/apache22/Makefile +++ b/www/apache22/Makefile @@ -48,9 +48,11 @@ USE_PERL5= yes USE_RC_SUBR= yes USE_REINPLACE= yes LIBTOOLFILES= configure + .if !defined(WITH_APR_FROM_PORTS) INSTALLS_SHLIB= yes .endif + CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ --enable-layout=FreeBSD \ --with-perl=${PERL5} \ @@ -81,18 +83,13 @@ 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 . endif .endif -#backward compatibility -.if defined(WITHOUT_SSL) -WITHOUT_SSL_MODULES= YES -.endif - .if !defined(WITHOUT_SSL_MODULES) USE_OPENSSL= yes .endif @@ -127,10 +124,9 @@ CONFIGURE_ARGS+= --with-ldap \ --with-ldap-include="${LOCALBASE}/include" .endif - -.include <bsd.port.pre.mk> .include "${APACHEDIR}/Makefile.doc" .include "${APACHEDIR}/Makefile.modules" +.include <bsd.port.pre.mk> .if defined(WITH_APR_FROM_PORTS) PLIST_SUB+= APR_PORTS="@comment " @@ -144,14 +140,19 @@ CONFLICTS+= apr-1.* CONFIGURE_ENV+= USE_BUNDLED_APR=YES .endif -WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//:S/-//} -WITH_PTHREAD_CFLAGS?= ${PTHREAD_CFLAGS} +.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 - pre-everything:: @${ECHO_MSG} "" @${ECHO_MSG} " To enable a module category: WITH_<CATEGORY>_MODULES" @@ -167,6 +168,9 @@ pre-everything:: @${ECHO_MSG} " You can check your modules configuration by using make show-modules" @${ECHO_MSG} "" +show-options: + @${SED} -ne 's/^##//p' ${APACHEDIR}/Makefile.doc + post-extract: @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/apr_dbd_mysql.c \ ${WRKSRC}/srclib/apr-util/dbd @@ -175,8 +179,6 @@ post-patch: @${RM} -f ${WRKSRC}/docs/docroot/*.bak @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/apache.sh > ${WRKDIR}/apache22.sh - @${RM} -f ${WRKSRC}/docs/manual/index.html.ko.euc-kr - @${RM} -f ${WRKSRC}/docs/conf/highperformance-std.conf @${REINPLACE_CMD} -e 's," PLATFORM ",FreeBSD,' \ ${WRKSRC}/server/core.c @${REINPLACE_CMD} -e "s,%%OSVERSION%%,${OSVERSION}," \ diff --git a/www/apache22/Makefile.modules b/www/apache22/Makefile.modules index f2f9814e1bf8..42cc1cdbf991 100644 --- a/www/apache22/Makefile.modules +++ b/www/apache22/Makefile.modules @@ -113,19 +113,6 @@ USE_SQLITE= YES CONFIGURE_ARGS+= --with-sqlite3=${LOCALBASE} .endif -.if defined(WITH_THREADS) -CONFIGURE_ARGS+= --enable-threads -. if ${WITH_PTHREAD_LIBS} != "c_r" && ${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 -. else -CFLAGS+= -DFREEBSD_THREAD_HACK -. endif -.endif - .if !defined(WITHOUT_SSL) WITH_SSL_MODULES= yes CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} |