Merge from vendor branch TNF:
[pkgsrcv2.git] / net / libvncserver / options.mk
1 # $NetBSD$
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.libVNCServer
4 PKG_SUPPORTED_OPTIONS=  gnutls inet6 libgcrypt
5 PKG_SUGGESTED_OPTIONS=  gnutls inet6 libgcrypt
6
7 .include "../../mk/bsd.options.mk"
8
9 .if !empty(PKG_OPTIONS:Mgnutls)
10 .include "../../security/gnutls/buildlink3.mk"
11 USE_TOOLS+=     pkg-config
12 CONFIGURE_ARGS+=        --with-gnutls
13 CONFIGURE_ARGS+=        --with-client-tls
14 .else
15 CONFIGURE_ARGS+=        --without-gnutls
16 CONFIGURE_ARGS+=        --without-client-tls
17 .endif
18
19 .if !empty(PKG_OPTIONS:Minet6)
20 CONFIGURE_ARGS+=        --with-ipv6
21 .else
22 CONFIGURE_ARGS+=        --without-ipv6
23 .endif
24
25 .if !empty(PKG_OPTIONS:Mlibgcrypt)
26 .include "../../security/libgcrypt/buildlink3.mk"
27 CONFIGURE_ARGS+=        --with-gcrypt
28 CONFIGURE_ARGS+=        --with-client-gcrypt
29 CONFIGURE_ARGS+=        --with-libgcrypt-prefix=${BUILDLINK_PREFIX.libgcrypt}
30 .else
31 CONFIGURE_ARGS+=        --without-gcrypt
32 CONFIGURE_ARGS+=        --without-client-gcrypt
33 .endif