-
Notifications
You must be signed in to change notification settings - Fork 31
/
options.mk
81 lines (67 loc) · 2.31 KB
/
options.mk
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
# $NetBSD: options.mk,v 1.6 2008/04/12 22:42:59 jlam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.sqlrelay
PKG_SUPPORTED_OPTIONS+= mysql pgsql sqlite odbc freetds perl oracle
.include "../../mk/bsd.options.mk"
PLIST_VARS+= freetds mysql odbc perl pgsql sqlite oracle
.if !empty(PKG_OPTIONS:Mperl)
LICENSE+= AND artistic
PERL5_PACKLIST= auto/SQLRelay/Connection/.packlist
PERL5_PACKLIST+= auto/SQLRelay/Cursor/.packlist
PERL5_PACKLIST+= auto/DBD/SQLRelay/.packlist
CONFIGURE_ARGS+= --with-perl-site-arch=${PERL5_INSTALLVENDORARCH:Q}
CONFIGURE_ARGS+= --with-perl-site-lib=${PERL5_INSTALLVENDORLIB:Q}
CONFIGURE_ARGS+= --with-perl-install-man3-dir=${PERL5_INSTALLVENDORMAN3DIR:Q}
USE_TOOLS+= perl
PLIST.perl= yes
.include "../../lang/perl5/buildlink3.mk"
.include "../../lang/perl5/packlist.mk"
.include "../../lang/perl5/vars.mk"
.else
CONFIGURE_ARGS+= --disable-perl
.endif
.if !empty(PKG_OPTIONS:Mmysql)
CONFIGURE_ARGS+= --with-mysql-prefix=${BUILDLINK_PREFIX.mysql-client:Q}
PLIST.mysql= yes
.include "../../mk/mysql.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-mysql
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
LICENSE+= AND postgresql-license
CONFIGURE_ARGS+= --with-postgresql-prefix=${PGSQL_PREFIX:Q}
PLIST.pgsql= yes
.include "../../mk/pgsql.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-postgresql
.endif
.if !empty(PKG_OPTIONS:Msqlite)
CONFIGURE_ARGS+= --with-sqlite-prefix=${BUILDLINK_PREFIX.sqlite3:Q}
PLIST.sqlite= yes
.include "../../databases/sqlite3/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-sqlite
.endif
.if !empty(PKG_OPTIONS:Modbc)
CONFIGURE_ARGS+= --with-odbc-prefix=${BUILDLINK_PREFIX.unixodbc:Q}
PLIST.odbc= yes
.include "../../databases/unixodbc/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-odbc
.endif
.if !empty(PKG_OPTIONS:Mfreetds)
CONFIGURE_ARGS+= --with-freetds-prefix=${BUILDLINK_PREFIX.freetds:Q}
PLIST.freetds= yes
.include "../../databases/freetds/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-freetds
.endif
.if !empty(PKG_OPTIONS:Moracle)
# Joyent hack (user needs to fetch Instant Client from Oracle themselves)
BUILDLINK_DEPMETHOD.instantclient= build
.include "../../joyent/instantclient/buildlink3.mk"
CONFIGURE_ARGS+= --with-oracle-instantclient-prefix=${BUILDLINK_PREFIX.instantclient}/${ORACLE_IC_HOME}
PLIST.oracle= yes
CHECK_SHLIBS_SUPPORTED= no
.else
CONFIGURE_ARGS+= --disable-oracle
.endif