aboutsummaryrefslogtreecommitdiffstats
path: root/lang/erlang/Makefile
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2002-07-15 23:50:44 +0800
committerolgeni <olgeni@FreeBSD.org>2002-07-15 23:50:44 +0800
commit3b3f86af6f7390e1af05b903810a034599c499cd (patch)
treece84a6521ce84ffe04e61725e2e30611aab0dccb /lang/erlang/Makefile
parentf07aeb3c5fe9be634f59df08aeea0e22111ceaae (diff)
downloadfreebsd-ports-gnome-3b3f86af6f7390e1af05b903810a034599c499cd.tar.gz
freebsd-ports-gnome-3b3f86af6f7390e1af05b903810a034599c499cd.tar.zst
freebsd-ports-gnome-3b3f86af6f7390e1af05b903810a034599c499cd.zip
Add support for WITH_ERLANG_THREADS (enables threaded I/O).
Diffstat (limited to 'lang/erlang/Makefile')
-rw-r--r--lang/erlang/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
index 58e085c867f0..91879ac6ba8b 100644
--- a/lang/erlang/Makefile
+++ b/lang/erlang/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}