From 5e198bf94f3e6b23a33d2dfc68777cf7a493b208 Mon Sep 17 00:00:00 2001 From: alepulver Date: Mon, 9 Oct 2006 18:51:19 +0000 Subject: - Unify the way to choose between ODBC flavors (WITH_IODBC / WITH_UNIXODBC). PR: ports/103293 Submitted by: Ganael Laplanche Approved by: girgen (databases/postgresql-odbc), fjoe (databases/libodbc++), sergey@network-asp.biz (databases/mysql-connector-odbc, timeout), delphij@FreeBSD.org (net/openldap23-server), mat@FreeBSD.org (databases/p5-DBD-ODBC) --- net/openldap23-server/Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'net/openldap23-server') diff --git a/net/openldap23-server/Makefile b/net/openldap23-server/Makefile index 7d6da492fa5b..f7d99e1ae536 100644 --- a/net/openldap23-server/Makefile +++ b/net/openldap23-server/Makefile @@ -316,16 +316,21 @@ PLIST_SUB+= BACK_PERL="@comment " CONFIGURE_ARGS+= --enable-spasswd .endif +.if defined(WITH_IODBC) && defined(WITH_UNIXODBC) +IGNORE= selected mutually exclusive options: WITH_IODBC and WITH_UNIXODBC +.endif + +.if !defined(WITH_IODBC) && !defined(WITH_UNIXODBC) +WITH_IODBC?= yes +.endif + .if defined(WITH_ODBC) CONFIGURE_ARGS+= --enable-sql=${BACKEND_ENABLE} PLIST_SUB+= BACK_SQL=${BACKEND_PLIST} -WITH_ODBC_TYPE?= iODBC -.if ${WITH_ODBC_TYPE:L} == iodbc +.if defined(WITH_IODBC) LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc -.elif ${WITH_ODBC_TYPE:L} == unixodbc +.elif defined(WITH_UNIXODBC) LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC -.else -BROKEN= choose either iODBC or unixODBC for WITH_ODBC_TYPE .endif .else PLIST_SUB+= BACK_SQL="@comment " -- cgit