- Add an option for unixODBC

PR:		ports/133746
Submitted by:	Eugene Perevyazko <john@dnepro.net>
Approved by:	maintainer timeout (27 days)
This commit is contained in:
Pav Lucistnik 2009-05-12 11:31:12 +00:00
parent f5acd5e443
commit 1f0d71e6ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233765
2 changed files with 15 additions and 2 deletions

View file

@ -53,6 +53,7 @@ OPTIONS= KERBEROS "With Kerberos support" off \
OPTIONS+= MYSQL "With MySQL database support" off
.endif
OPTIONS+= PGSQL "With PostgreSQL database support" off \
UNIXODBC "With unixODBC database support" off \
FIREBIRD "With Firebird database support (EXPERIMENTAL)" off \
SNMP "With SNMP support" off \
EDIR "With Novell eDirectory support" off \
@ -91,8 +92,7 @@ CONFIGURE_ARGS+=--without-rlm_sql_db2 \
--without-rlm_sql_freetds \
--without-rlm_sql_iodbc \
--without-rlm_sql_oracle \
--without-rlm_sql_sybase \
--without-rlm_sql_unixodbc
--without-rlm_sql_sybase
.if ${ARCH} == amd64
CONFIGURE_ARGS+= --with-pic
@ -154,6 +154,15 @@ CONFIGURE_ARGS+=--without-rlm_sql_postgresql
PLIST_SUB+= PGSQL="@comment "
.endif
.ifdef(WITH_UNIXODBC)
CONFIGURE_ARGS+=--with-rlm_sql_unixodbc
PLIST_SUB+= UNIXODBC=""
LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
.else
CONFIGURE_ARGS+=--without-rlm_sql_unixodbc
PLIST_SUB+= UNIXODBC="@comment "
.endif
.ifdef(WITH_FIREBIRD)
USE_FIREBIRD= YES
CONFIGURE_ARGS+=--with-rlm_sql_firebird

View file

@ -306,6 +306,10 @@ lib/rlm_sql_log.so
%%PGSQL%%lib/rlm_sql_postgresql.a
%%PGSQL%%lib/rlm_sql_postgresql.la
%%PGSQL%%lib/rlm_sql_postgresql.so
%%UNIXODBC%%lib/rlm_sql_unixodbc-%%PORTVERSION%%.so
%%UNIXODBC%%lib/rlm_sql_unixodbc.a
%%UNIXODBC%%lib/rlm_sql_unixodbc.la
%%UNIXODBC%%lib/rlm_sql_unixodbc.so
lib/rlm_sqlcounter-%%PORTVERSION%%.la
lib/rlm_sqlcounter-%%PORTVERSION%%.so
lib/rlm_sqlcounter.a