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