diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-10-09 18:51:19 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-10-09 18:51:19 +0000 |
commit | c3dd807ed86d7900e165b0a7b4a820574f5d9943 (patch) | |
tree | f47fdabe17c9afbf1fcffff85339c01509a1963e /databases/p5-DBD-ODBC | |
parent | 65cc3f80d037fd2c2c7e3ed5390c098a0c95cbed (diff) |
- 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)
Notes
Notes:
svn path=/head/; revision=175125
Diffstat (limited to 'databases/p5-DBD-ODBC')
-rw-r--r-- | databases/p5-DBD-ODBC/Makefile | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/databases/p5-DBD-ODBC/Makefile b/databases/p5-DBD-ODBC/Makefile index 4f8110c4066e..5d9e26cd2437 100644 --- a/databases/p5-DBD-ODBC/Makefile +++ b/databases/p5-DBD-ODBC/Makefile @@ -21,23 +21,24 @@ CONFIGURE_ARGS+= -o ${LOCALBASE} MAN3= DBD::ODBC.3 -OPTIONS= IODBC "Link with libiodbc" on \ - ODBC "Link with unixODBC (Only with 5.x+)" off - .include <bsd.port.pre.mk> -.if defined(WITH_IODBC) && defined(WITH_ODBC) -BROKEN= "Should only select one of ODBC and IODBC" +.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) && ${OSVERSION} < 500016 + +.if defined(WITH_UNIXODBC) && ${OSVERSION} < 500016 IGNORE= Due to some obscure -pthread things, you can not have this work .endif -.if !defined(WITHOUT_IODBC) +.if defined(WITH_IODBC) LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc MYODBC= iodbc -.endif -.if defined(WITH_ODBC) +.elif defined(WITH_UNIXODBC) LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC MYODBC= unixodbc post-configure: |