update Wed Feb 24 06:37:03 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 PLIST_SUBST+=           SMP="@comment "
25 CONFIGURE_ARGS+=        --enable-hipe
26 .else
27 PLIST_SUBST+=           SMP=""
28 CONFIGURE_ARGS+=        --disable-hipe
29 .endif
30
31 ###
32 ### Provide iodbc/unixodbc option support
33 ###
34 .if !empty(PKG_OPTIONS:Miodbc)
35 .  include "../../databases/iodbc/buildlink3.mk"
36 CONFIGURE_ARGS+=        --with-odbc=${BUILDLINK_PREFIX.iodbc}
37 PLIST_SRC+=             PLIST.odbc
38 .endif
39
40 .if !empty(PKG_OPTIONS:Munixodbc)
41 .  include "../../databases/unixodbc/buildlink3.mk"
42 CONFIGURE_ARGS+=        --with-odbc=${BUILDLINK_PREFIX.unixodbc}
43 PLIST_SRC+=             PLIST.odbc
44 .endif