aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_ruby
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2006-01-24 22:40:42 +0800
committerdinoex <dinoex@FreeBSD.org>2006-01-24 22:40:42 +0800
commit19d7c383915b9957133da3c2b695291b2e4ebf37 (patch)
tree1862c07c222670f702f9ac5f121f9df066ff6d7d /www/mod_ruby
parent7563282d1ebabbe5253527e4e5a485740dad3f61 (diff)
downloadfreebsd-ports-gnome-19d7c383915b9957133da3c2b695291b2e4ebf37.tar.gz
freebsd-ports-gnome-19d7c383915b9957133da3c2b695291b2e4ebf37.tar.zst
freebsd-ports-gnome-19d7c383915b9957133da3c2b695291b2e4ebf37.zip
- new option WITHOUT_PTHREADS
Diffstat (limited to 'www/mod_ruby')
-rw-r--r--www/mod_ruby/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/mod_ruby/Makefile b/www/mod_ruby/Makefile
index e23e35ed0086..8aec30963264 100644
--- a/www/mod_ruby/Makefile
+++ b/www/mod_ruby/Makefile
@@ -37,11 +37,15 @@ DOCS_JA= README.ja doc/default.css doc/*.ja.*
do-configure:
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_FLAGS} configure.rb ${CONFIGURE_ARGS}
+.if !defined(WITHOUT_PTHREADS)
# dirty hack to force mod_ruby.so linked with lpthread.so, otherwise unresolved
# symbols happen
.if ${OSVERSION} >= 502102
@${REINPLACE_CMD} -e 's|-pthread|-pthread -lpthread|' ${WRKSRC}/Makefile
.endif
+.else
+PKGNAMESUFFIX= -nopthreads
+.endif
post-install: doc-install
${INSTALL_DATA} ${WRKSRC}/examples/httpd.conf `${APXS} -q SYSCONFDIR`/httpd.conf.${PORTNAME}