aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2006-03-18 23:54:34 +0800
committerdinoex <dinoex@FreeBSD.org>2006-03-18 23:54:34 +0800
commit676aa464300ccdebc63e119386f0d0dc477c9f35 (patch)
tree99a385b6b091eb99c86a52b20f827c38bc5eb41c /www
parent0603a6cbf2fef0b70ea9e6975a337617fd0b69fb (diff)
downloadfreebsd-ports-gnome-676aa464300ccdebc63e119386f0d0dc477c9f35.tar.gz
freebsd-ports-gnome-676aa464300ccdebc63e119386f0d0dc477c9f35.tar.zst
freebsd-ports-gnome-676aa464300ccdebc63e119386f0d0dc477c9f35.zip
- Fix build with apache22
PR: 94442 Submitted by: Hiroto Kagotani
Diffstat (limited to 'www')
-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 74b9672a4e37..121c069cfb9a 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)