summaryrefslogtreecommitdiff
path: root/lang/erlang14
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2002-07-15 15:50:44 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2002-07-15 15:50:44 +0000
commit169b9965a70ceb9debfd30a514e4d47a842d8ecb (patch)
tree6b644b9250875299a04f46cefe9d433c182f4a2c /lang/erlang14
parentUpdate to 0.16.0 (diff)
Add support for WITH_ERLANG_THREADS (enables threaded I/O).
Notes
Notes: svn path=/head/; revision=62992
Diffstat (limited to 'lang/erlang14')
-rw-r--r--lang/erlang14/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile
index 58e085c867f0..91879ac6ba8b 100644
--- a/lang/erlang14/Makefile
+++ b/lang/erlang14/Makefile
@@ -50,6 +50,10 @@ USE_GMAKE= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
+.if defined(WITH_ERLANG_THREADS)
+CONFIGURE_ARGS+= --enable-threads
+.endif
+
.if !defined(WITHOUT_JAVA)
# The Java applications that are part of the Erlang distribution are
# not strictly necessary - it is included for completeness sake. A
@@ -72,6 +76,11 @@ SCRIPT_ENV+= PATH=${PATH}:${JAVABINDIR}
post-patch:
@cd ${WRKSRC} && ${CAT} ${FILESDIR}/post-patch-configure | ${PATCH}
+pre-extract:
+.if !defined(WITH_ERLANG_THREADS)
+ @${ECHO_MSG} "You can enable support for threaded I/O by defining WITH_ERLANG_THREADS."
+.endif
+
pre-configure:
# Regenerate erts configuration script
cd ${WRKSRC}/erts && ${AUTOCONF}