From c3dd807ed86d7900e165b0a7b4a820574f5d9943 Mon Sep 17 00:00:00 2001 From: Alejandro Pulver 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) --- databases/p5-DBD-ODBC/Makefile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'databases/p5-DBD-ODBC') 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 -.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: -- cgit v1.2.3