1 # $NetBSD: options.mk,v 1.3 2009/12/15 12:07:57 asau Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.erlang
4 PKG_SUPPORTED_OPTIONS= java erlang-hipe
5 PKG_OPTIONS_OPTIONAL_GROUPS= odbc
6 PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
8 .include "../../mk/bsd.options.mk"
10 .if !empty(PKG_OPTIONS:Mjava)
13 .include "../../mk/java-vm.mk"
14 PLIST_SRC+= PLIST.java
16 CONFIGURE_ENV+= JAVAC=none
19 .if !empty(PKG_OPTIONS:Merlang-hipe)
21 ### XXX Need to check which platforms will enable this by default, if any.
22 ### Should it be an option?
24 CONFIGURE_ARGS+= --enable-hipe
25 PLIST_SRC+= PLIST.hipe
27 CONFIGURE_ARGS+= --disable-hipe
31 ### Provide iodbc/unixodbc option support
33 .if !empty(PKG_OPTIONS:Miodbc)
34 . include "../../databases/iodbc/buildlink3.mk"
35 CONFIGURE_ARGS+= --with-odbc=${BUILDLINK_PREFIX.iodbc}
36 PLIST_SRC+= PLIST.odbc
39 .if !empty(PKG_OPTIONS:Munixodbc)
40 . include "../../databases/unixodbc/buildlink3.mk"
41 CONFIGURE_ARGS+= --with-odbc=${BUILDLINK_PREFIX.unixodbc}
42 PLIST_SRC+= PLIST.odbc