diff options
author | Clement Laforet <clement@FreeBSD.org> | 2007-09-09 14:36:42 +0000 |
---|---|---|
committer | Clement Laforet <clement@FreeBSD.org> | 2007-09-09 14:36:42 +0000 |
commit | fc5126bc4c76b2360e1f8d00945ab7de2b9adc50 (patch) | |
tree | e5b76fbaaa46c9d4c440e7125c959436c10441e7 /Mk | |
parent | 9e6ea02a8ab0c5f65ad604cf90cec6514cec2923 (diff) | |
download | ports-fc5126bc4c76b2360e1f8d00945ab7de2b9adc50.tar.gz ports-fc5126bc4c76b2360e1f8d00945ab7de2b9adc50.zip |
Notes
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.apache.mk | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/Mk/bsd.apache.mk b/Mk/bsd.apache.mk index edbaf9747448..9b8c755166a4 100644 --- a/Mk/bsd.apache.mk +++ b/Mk/bsd.apache.mk @@ -20,7 +20,7 @@ # is defined, APACHE_PORT will be set to www/apache20 # -#.if !defined(_POSTMKINCLUDED) && !defined(Apache_Pre_Include) +.if !defined(Apache_Pre_Include) || defined(PORT_IS_MODULE) Apache_Pre_Include= bsd.apache.mk @@ -124,7 +124,16 @@ CONFIGURE_ARGS+= --disable-authn-file --disable-authn-default \ --disable-proxy-ajp --disable-proxy-balancer .endif -.if defined(WITH_MODULES) +.if defined(OPTIONS) +.for module in ${AVAILABLE_MODULES} +.if defined(WITH_${module:U}) +_APACHE_MODULES+= ${module} +.endif +.if defined(WITHOUT_${module:U}) +WITHOUT_MODULES+= ${module} +.endif +.endfor +.elif defined(WITH_MODULES) _APACHE_MODULES+= ${WITH_MODULES} .else .for category in ${ALL_MODULES_CATEGORIES} @@ -353,8 +362,8 @@ AP_EXTRAS+= -L ${AP_LIB} .endif -#.endif #!defined(_POSTMKINCLUDED) && !defined(Apache_Pre_Include) -#.if defined(_POSTMKINCLUDED) && !defined(Apache_Post_Include) +.endif #!defined(Apache_Pre_Include) +.if defined(_POSTMKINCLUDED) && !defined(Apache_Post_Include) Apache_Post_Include= bsd.apache.mk .if defined(AP_PORT_IS_SERVER) @@ -396,6 +405,22 @@ show-modules: done .endif +.if !target(make-options-list) +make-options-list: + @${ECHO_CMD} OPTIONS= \\; + @for module in ${AVAILABLE_MODULES} ; do \ + if ${ECHO_CMD} ${APACHE_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; \ + then \ + ${PRINTF} "\t `${ECHO_CMD} $${module} | ${TR} '[:lower:]' '[:upper:]'` \"mod_$${module}\" ON \\"; \ + ${ECHO_CMD}; \ + else \ + ${PRINTF} "\t `${ECHO_CMD} $${module} | ${TR} '[:lower:]' '[:upper:]'` \"mod_$${module}\" OFF \\";\ + ${ECHO_CMD}; \ + fi;\ + done; \ + ${ECHO_CMD}; +.endif + .elif defined(AP_PORT_IS_MODULE) .if defined(AP_FAST_BUILD) @@ -425,4 +450,4 @@ do-install: .endif .endif .endif -#.endif # defined(_POSTMKINCLUDED) && !defined(Apache_Post_Include) +.endif # defined(_POSTMKINCLUDED) && !defined(Apache_Post_Include) |