blob: 76216cc28743468d10e35d27a3249596ae4a7c99 (
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
|
# $NetBSD: options.mk,v 1.8 2012/01/09 14:53:31 drochner Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.freetds
PKG_OPTIONS_OPTIONAL_GROUPS+= odbc tls
PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
PKG_OPTIONS_GROUP.tls= gnutls openssl
PKG_SUPPORTED_OPTIONS= kerberos
PKG_SUGGESTED_OPTIONS= openssl
.include "../../mk/bsd.options.mk"
PLIST_VARS+= odbc
###
### Kerberos5 support
###
.if !empty(PKG_OPTIONS:Mkerberos)
CONFIGURE_ARGS+= --enable-krb5
.include "../../mk/krb5.buildlink3.mk"
.endif
###
### Whether to build with iODBC to enable ODBC access to TDS servers.
###
.if !empty(PKG_OPTIONS:Miodbc)
ODBC_DRIVER= yes
. include "../../databases/iodbc/buildlink3.mk"
CONFIGURE_ARGS+= --enable-odbc
CONFIGURE_ARGS+= --with-iodbc=${BUILDLINK_PREFIX.iodbc}
PLIST.odbc= yes
.endif
###
### Whether to build with unixODBC to enable ODBC access to TDS servers.
###
.if !empty(PKG_OPTIONS:Munixodbc)
. include "../../databases/unixodbc/buildlink3.mk"
CONFIGURE_ARGS+= --enable-odbc
CONFIGURE_ARGS+= --with-unixodbc=${BUILDLINK_PREFIX.unixodbc}
PLIST.odbc= yes
.endif
.if empty(PKG_OPTIONS:Miodbc) && empty(PKG_OPTIONS:Munixodbc)
CONFIGURE_ARGS+= --disable-odbc
.endif
###
### Use GNU TLS for TLSv1 encrypted session to MSSQL servers.
###
.if !empty(PKG_OPTIONS:Mgnutls)
USE_TOOLS+= pkg-config
.include "../../security/gnutls/buildlink3.mk"
CONFIGURE_ARGS+= --with-gnutls
.else
CONFIGURE_ARGS+= --without-gnutls
.endif
###
### Use OpenSSL for TLSv1 encrypted session to MSSQL servers.
###
.if !empty(PKG_OPTIONS:Mopenssl)
.include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
.else
CONFIGURE_ARGS+= --without-openssl
.endif
|