update Thu Feb 25 12:37:00 PST 2010
[pkgsrc.git] / wip / erlang / options.mk
1 # $NetBSD: options.mk,v 1.3 2009/12/15 12:07:57 asau Exp $
2
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
7
8 .include "../../mk/bsd.options.mk"
9
10 .if !empty(PKG_OPTIONS:Mjava)
11 USE_JAVA=               yes
12 USE_JAVA2=              yes
13 .include "../../mk/java-vm.mk"
14 PLIST_SRC+=             PLIST.java
15 .else
16 CONFIGURE_ENV+= JAVAC=none
17 .endif
18
19 .if !empty(PKG_OPTIONS:Merlang-hipe)
20 ###
21 ### XXX Need to check which platforms will enable this by default, if any.
22 ###     Should it be an option?
23 ###
24 CONFIGURE_ARGS+=        --enable-hipe
25 PLIST_SRC+=             PLIST.hipe
26 .else
27 CONFIGURE_ARGS+=        --disable-hipe
28 .endif
29
30 ###
31 ### Provide iodbc/unixodbc option support
32 ###
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
37 .endif
38
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
43 .endif