Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: c8ad9c4711
Fetching contributors…

Cannot retrieve contributors at this time

82 lines (67 sloc) 2.361 kB
# $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
Jump to Line
Something went wrong with that request. Please try again.