summaryrefslogtreecommitdiffstats
path: root/lang/ruby18
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-01-16 09:41:49 +0000
committerpav <pav@FreeBSD.org>2006-01-16 09:41:49 +0000
commit01186e11d8c7a7487ff97755564fa610349d22a9 (patch)
tree3fc73580eba707aaeb25c6fc8ddf7602199c2f2c /lang/ruby18
parentd506e56c2c42dd139f1de4bfef68543680329e93 (diff)
downloadFreeBSD-ports-01186e11d8c7a7487ff97755564fa610349d22a9.zip
FreeBSD-ports-01186e11d8c7a7487ff97755564fa610349d22a9.tar.gz
- Provide WITHOUT_PTHREADS option
Submitted by: Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
Diffstat (limited to 'lang/ruby18')
-rw-r--r--lang/ruby18/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/lang/ruby18/Makefile b/lang/ruby18/Makefile
index e483d26..d22c770 100644
--- a/lang/ruby18/Makefile
+++ b/lang/ruby18/Makefile
@@ -15,7 +15,7 @@ MASTER_SITE_SUBDIR= ${MASTER_SITE_SUBDIR_RUBY}
DIST_SUBDIR= ruby
MAINTAINER= ports@FreeBSD.org
-COMMENT= An object-oriented interpreted scripting language
+COMMENT?= An object-oriented interpreted scripting language
.if defined(WITH_ONIGURUMA)
PKGNAMESUFFIX= +oniguruma
@@ -39,8 +39,14 @@ USE_REINPLACE= yes
GNU_CONFIGURE= yes
WRKSRC= ${RUBY_WRKSRC}
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
- --enable-shared --enable-pthread \
- --with-openssl-include=${OPENSSLINC}
+ --enable-shared --with-openssl-include=${OPENSSLINC}
+
+.if defined(WITHOUT_PTHREADS)
+CONFIGURE_ARGS+=--disable-pthread
+PKGNAMESUFFIX= -nopthreads
+.else
+CONFIGURE_ARGS+=--enable-pthread
+.endif
.if defined(DEBUG)
CFLAGS+= -g
OpenPOWER on IntegriCloud