blob: 56e967f21d56e32b42b34bbfa85774398f38495c (
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
|
# $NetBSD: options.mk,v 1.9 2018/01/22 11:17:52 jaapb Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ocamlnet
PKG_SUPPORTED_OPTIONS= gtk gtk2 gnutls
PKG_SUGGESTED_OPTIONS= gnutls
PLIST_VARS+= gnutls cmxs
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
###
### GTK(1) support
###
.if !empty(PKG_OPTIONS:Mgtk)
. include "../../x11/lablgtk1/buildlink3.mk"
CONFIGURE_ARGS+= -enable-gtk
.else
CONFIGURE_ARGS+= -disable-gtk
.endif
###
### GTK(2) support
###
.if !empty(PKG_OPTIONS:Mgtk2)
. include "../../x11/ocaml-lablgtk/buildlink3.mk"
CONFIGURE_ARGS+= -enable-gtk2
.else
CONFIGURE_ARGS+= -disable-gtk2
.endif
###
### GNU TLS support
###
.if !empty(PKG_OPTIONS:Mgnutls)
. include "../../security/gnutls/buildlink3.mk"
PLIST.gnutls= yes
OCAML_FINDLIB_DIRS+= nettls-gnutls
CONFIGURE_ARGS+= -enable-gnutls
.else
CONFIGURE_ARGS+= -disable-gnutls
.endif
|