diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-10-10 02:51:19 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-10-10 02:51:19 +0800 |
commit | 5e198bf94f3e6b23a33d2dfc68777cf7a493b208 (patch) | |
tree | d7619084dda179e916005c4f3cf1fe3f39b325fe /net/openldap23-server | |
parent | a307069f8cc543544bbbef28105f063360d8ffca (diff) | |
download | freebsd-ports-gnome-5e198bf94f3e6b23a33d2dfc68777cf7a493b208.tar.gz freebsd-ports-gnome-5e198bf94f3e6b23a33d2dfc68777cf7a493b208.tar.zst freebsd-ports-gnome-5e198bf94f3e6b23a33d2dfc68777cf7a493b208.zip |
- Unify the way to choose between ODBC flavors (WITH_IODBC / WITH_UNIXODBC).
PR: ports/103293
Submitted by: Ganael Laplanche <ganael.laplanche@martymac.com>
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)
Diffstat (limited to 'net/openldap23-server')
-rw-r--r-- | net/openldap23-server/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
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 " |