update Sat Sep 12 12:37:01 PDT 2009
[pkgsrc.git] / wip / elinks-snapshot / options.mk
1 # $NetBSD: options.mk,v 1.5 2007/01/26 23:43:02 joerg Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.elinks
4 PKG_SUPPORTED_OPTIONS+= bittorrent nntp spidermonkey finger gopher
5 PKG_SUPPORTED_OPTIONS+= inet6 x11 elinks-fastmem elinks-exmode expat
6 PKG_SUPPORTED_OPTIONS+= elinks-html-highlight elinks-root-exec ssl
7 PKG_SUPPORTED_OPTIONS+= elinks-use-alloca boehm-gc
8 PKG_OPTIONS_GROUP.tls=  gnutls ssl
9 PKG_OPTIONS_REQUIRED_GROUPS=    tls
10 PKG_SUGGESTED_OPTIONS=  ssl spidermonkey x11 elinks-exmode boehm-gc expat
11 PKG_SUGGESTED_OPTIONS+= elinks-html-highlight bittorrent
12
13 .include "../../mk/bsd.options.mk"
14
15 .if !empty(PKG_OPTIONS:Minet6)
16 CONFIGURE_ARGS+= --enable-ipv6
17 .else
18 CONFIGURE_ARGS+= --disable-ipv6
19 .endif
20
21 .if !empty(PKG_OPTIONS:Mx11)
22
23 BUILDLINK_DEPMETHOD.libXt?=     build
24 .include "../../x11/libX11/buildlink3.mk"
25 .include "../../x11/libXt/buildlink3.mk"
26
27 CONFIGURE_ARGS+=        --with-x
28 .else
29 CONFIGURE_ARGS+=        --without-x
30 .endif
31
32 .if !empty(PKG_OPTIONS:Mbittorrent)
33 CONFIGURE_ARGS+=        --enable-bittorrent
34 .else
35 CONFIGURE_ARGS+=        --disable-bittorrent
36 .endif
37
38 .if !empty(PKG_OPTIONS:Mnntp)
39 CONFIGURE_ARGS+=        --enable-nntp
40 .else
41 CONFIGURE_ARGS+=        --disable-nntp
42 .endif
43
44 .if !empty(PKG_OPTIONS:Mspidermonkey)
45
46 .include "../../lang/spidermonkey/buildlink3.mk"
47
48 CONFIGURE_ARGS+=        --with-spidermonkey
49 CONFIGURE_ARGS+=        --enable-sm-scripting
50 .else
51 CONFIGURE_ARGS+=        --without-spidermonkey
52 CONFIGURE_ARGS+=        --disable-sm-scripting
53 .endif
54
55 .if !empty(PKG_OPTIONS:Mssl)
56
57 .include "../../security/openssl/buildlink3.mk"
58
59 CONFIGURE_ARGS+=        --with-openssl=${BUILDLINK_PREFIX.openssl}
60
61 .elif !empty(PKG_OPTIONS:Mgnutls)
62
63 .include "../../security/gnutls/buildlink3.mk"
64
65 CONFIGURE_ARGS+= --with-gnutls-includes=${BUILDLINK_PREFIX.gnutls}/include
66 CONFIGURE_ARGS+= --with-gnutls-libs=${BUILDLINK_PREFIX.gnutls}/lib
67 CONFIGURE_ARGS+= --without-openssl
68 .endif
69
70 # Requires fsplib, which is not currently in pkgsrc.
71 #
72 #.if !empty(PKG_OPTIONS:Mfsp)
73 #CONFIGURE_ARGS+=       --enable-fsp
74 #.else
75 #CONFIGURE_ARGS+=       --disable-fsp
76 #.endif
77
78 .if !empty(PKG_OPTIONS:Mfinger)
79 CONFIGURE_ARGS+=        --enable-finger
80 .else
81 CONFIGURE_ARGS+=        --disable-finger
82 .endif
83
84 .if !empty(PKG_OPTIONS:Mgopher)
85 CONFIGURE_ARGS+=        --enable-gopher
86 .else
87 CONFIGURE_ARGS+=        --disable-gopher
88 .endif
89
90 .if !empty(PKG_OPTIONS:Mexpat)
91
92 .include "../../textproc/expat/buildlink3.mk"
93
94 CONFIGURE_ARGS+=        --enable-xbel
95 .else
96 CONFIGURE_ARGS+=        --disable-xbel
97 .endif
98
99 .if !empty(PKG_OPTIONS:Melinks-fastmem)
100 CONFIGURE_ARGS+=        --enable-fastmem
101 .else
102 CONFIGURE_ARGS+=        --disable-fastmem
103 .endif
104
105 .if !empty(PKG_OPTIONS:Melinks-html-highlight)
106 CONFIGURE_ARGS+=        --enable-html-highlight
107 .else
108 CONFIGURE_ARGS+=        --disable-html-hightlight
109 .endif
110
111 .if !empty(PKG_OPTIONS:Melinks-exmode)
112 CONFIGURE_ARGS+=        --enable-exmode
113 .else
114 CONFIGURE_ARGS+=        --disable-exmode
115 .endif
116
117 .if !empty(PKG_OPTIONS:Melinks-root-exec)
118 CONFIGURE_ARGS+=        --disable-no-root
119 .else
120 CONFIGURE_ARGS+=        --enable-no-root
121 .endif
122
123 .if empty(PKG_OPTIONS:Melinks-use-alloca)
124 CONFIGURE_ENV+= ac_cv_func_alloca_works=no
125 .endif
126
127 .if !empty(PKG_OPTIONS:Mboehm-gc)
128 .include "../../devel/boehm-gc/buildlink3.mk"
129
130 CONFIGURE_ARGS+=        --with-gc
131 .endif