summaryrefslogtreecommitdiffstats
path: root/www/mod_ruby
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2006-03-18 15:54:34 +0000
committerdinoex <dinoex@FreeBSD.org>2006-03-18 15:54:34 +0000
commit676aa464300ccdebc63e119386f0d0dc477c9f35 (patch)
tree99a385b6b091eb99c86a52b20f827c38bc5eb41c /www/mod_ruby
parent0603a6cbf2fef0b70ea9e6975a337617fd0b69fb (diff)
downloadFreeBSD-ports-676aa464300ccdebc63e119386f0d0dc477c9f35.zip
FreeBSD-ports-676aa464300ccdebc63e119386f0d0dc477c9f35.tar.gz
- Fix build with apache22
PR: 94442 Submitted by: Hiroto Kagotani
Diffstat (limited to 'www/mod_ruby')
-rw-r--r--www/mod_ruby/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/www/mod_ruby/Makefile b/www/mod_ruby/Makefile
index 74b9672..121c069 100644
--- a/www/mod_ruby/Makefile
+++ b/www/mod_ruby/Makefile
@@ -18,7 +18,6 @@ LIB_DEPENDS= eruby.10:${PORTSDIR}/textproc/eruby
USE_APACHE= yes
USE_RUBY= yes
-USE_REINPLACE= yes
CONFIGURE_ARGS= --with-apxs="${APXS}" \
--enable-eruby=yes \
@@ -35,6 +34,11 @@ DOCS_JA= README.ja doc/default.css doc/*.ja.*
.include <bsd.port.pre.mk>
+AP_CUR_VERSION!= ${ECHO_CMD} ${APACHE_PORT} | ${SED} -ne 's,.*/apache\([0-9]*\).*,\1,p'
+.if ${AP_CUR_VERSION} > 20
+CONFIGURE_ARGS+= --with-apr-includes="`${LOCALBASE}/bin/apr-1-config --includedir`"
+.endif
+
do-configure:
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_FLAGS} configure.rb ${CONFIGURE_ARGS}
.if !defined(WITHOUT_PTHREADS)
OpenPOWER on IntegriCloud