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/mysql-connector-odbc | |
parent | 65cc3f80d037fd2c2c7e3ed5390c098a0c95cbed (diff) | |
download | ports-c3dd807ed86d7900e165b0a7b4a820574f5d9943.tar.gz ports-c3dd807ed86d7900e165b0a7b4a820574f5d9943.zip |
Notes
Diffstat (limited to 'databases/mysql-connector-odbc')
-rw-r--r-- | databases/mysql-connector-odbc/Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/databases/mysql-connector-odbc/Makefile b/databases/mysql-connector-odbc/Makefile index c83351d49048..f66f80cfdd07 100644 --- a/databases/mysql-connector-odbc/Makefile +++ b/databases/mysql-connector-odbc/Makefile @@ -32,22 +32,30 @@ PLIST_SUB= VER=${PORTVERSION} PORTDOCS= README # MyODBC needs an ODBC driver manager to be installed, and it supports both -# iODBC and unixODBC. The following variable may be set at built-time to -# either "iodbc" or "unixodbc", with the former being the default: -DRIVER_MANAGER?= unixodbc +# iODBC and unixODBC. -.if ${DRIVER_MANAGER} == "unixodbc" +.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_UNIXODBC?= yes +.endif + +.if defined(WITH_UNIXODBC) LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC CONFIGURE_ARGS+= --with-odbc-ini=${LOCALBASE}/etc/odbc.ini \ --with-unixODBC=${LOCALBASE} CFLAGS+= ${PTHREAD_LIBS} -.else # assume we're using iodbc +DRIVER_MANAGER= unixodbc +.elif defined(WITH_IODBC) LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc CONFIGURE_ARGS+= --with-iODBC=${LOCALBASE} \ --with-iodbc-includes=${LOCALBASE}/include \ --with-iodbc-libs=${LOCALBASE}/lib \ --with-odbc-ini=${LOCALBASE}/etc/libiodbc/odbc.ini EXTRA_PATCHES= ${PATCHDIR}/myodbc-iodbc-patch +DRIVER_MANAGER= iodbc .endif post-patch: |