summaryrefslogtreecommitdiff
path: root/lang/erlang/options.mk
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2009-12-15 12:07:57 +0000
committerasau <asau@pkgsrc.org>2009-12-15 12:07:57 +0000
commit7de3b5bf7281f8da50ebb62907fac54bf124cbbc (patch)
treefb92b8a652cf39c28f7c2468664bc9285ed4defd /lang/erlang/options.mk
parentdce04b02fbb151af188f8a1d5f6d43c68e074795 (diff)
downloadpkgsrc-7de3b5bf7281f8da50ebb62907fac54bf124cbbc.tar.gz
Update to Erlang/OTP R13B03.
SunOS, Java and ODBC support by Filip Hajny and some tests by Matthias Kretschmer. Changes in R13B03 ----------------- There are mostly error corrections, but also some new functionality. Some highlights in the R13B03 release are: - Native Implemented Functions (NIFs) still experimental but very useful. - The documentation is built in a new way using xsltproc and Apache FOP. The layout is changed both in HTML and PDF versions. This is the first step, more changes and improvements will come in the following releases. Changes between R13A and R13B02 are unknown. Changes in R13A --------------- 1.1 Erlang Language and Run-time System Multi-core and SMP performance improvements There SMP performance is significantly improved: - multiple, scheduler specific run queues; - further optimized message passing; - CPU-bound scheduler threads. Unicode support as described in EEP10 New BIF's: atom_to_binary/2, binary_to_atom/2, binary_to_existing_atom/2. Independent Erlang clusters on the same host 1.2 New Applications Reltool, release management tool. WxErlang 1.3 New features in Existing Applications Common_test - SSH and SFTP support - test case groups Dialyzer - opaque type declarations; - UTF segments handling SSL - pure Erlang implementation (except crypto routines) STDLIB - scanner has been augmented to return white-space, comments and exact location of tokens.
Diffstat (limited to 'lang/erlang/options.mk')
-rw-r--r--lang/erlang/options.mk33
1 files changed, 31 insertions, 2 deletions
diff --git a/lang/erlang/options.mk b/lang/erlang/options.mk
index d7f77e05a3c..e9386da9ccc 100644
--- a/lang/erlang/options.mk
+++ b/lang/erlang/options.mk
@@ -1,7 +1,9 @@
-# $NetBSD: options.mk,v 1.2 2006/05/23 15:09:52 tonio Exp $
+# $NetBSD: options.mk,v 1.3 2009/12/15 12:07:57 asau Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.erlang
-PKG_SUPPORTED_OPTIONS= java
+PKG_SUPPORTED_OPTIONS= java erlang-hipe
+PKG_OPTIONS_OPTIONAL_GROUPS= odbc
+PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
.include "../../mk/bsd.options.mk"
@@ -13,3 +15,30 @@ PLIST_SRC+= PLIST.java
.else
CONFIGURE_ENV+= JAVAC=none
.endif
+
+.if !empty(PKG_OPTIONS:Merlang-hipe)
+###
+### XXX Need to check which platforms will enable this by default, if any.
+### Should it be an option?
+###
+PLIST_SUBST+= SMP="@comment "
+CONFIGURE_ARGS+= --enable-hipe
+.else
+PLIST_SUBST+= SMP=""
+CONFIGURE_ARGS+= --disable-hipe
+.endif
+
+###
+### Provide iodbc/unixodbc option support
+###
+.if !empty(PKG_OPTIONS:Miodbc)
+. include "../../databases/iodbc/buildlink3.mk"
+CONFIGURE_ARGS+= --with-odbc=${BUILDLINK_PREFIX.iodbc}
+PLIST_SRC+= PLIST.odbc
+.endif
+
+.if !empty(PKG_OPTIONS:Munixodbc)
+. include "../../databases/unixodbc/buildlink3.mk"
+CONFIGURE_ARGS+= --with-odbc=${BUILDLINK_PREFIX.unixodbc}
+PLIST_SRC+= PLIST.odbc
+.endif