diff options
Diffstat (limited to 'databases/mysql2odbc/Makefile')
-rw-r--r-- | databases/mysql2odbc/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/databases/mysql2odbc/Makefile b/databases/mysql2odbc/Makefile new file mode 100644 index 0000000..a6eb3aa --- /dev/null +++ b/databases/mysql2odbc/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: mysql2odbc +# Date created: 8 Aug 2005 +# Whom: Max Khon <fjoe@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= mysql2odbc +PORTVERSION= 0.99.2 +CATEGORIES= databases +MASTER_SITES= http://www.iodbc.org/downloads/mysql2odbc/ + +MAINTAINER= fjoe@FreeBSD.org +COMMENT= Openlink MySQL-ODBC Gateway + +OPTIONS= UNIXODBC "Build with unixODBC" on \ + IODBC "Build with iODBC" off \ + +.if !defined(WITH_UNIXODBC) && !defined(WITH_IODBC) +WITH_UNIXODBC= yes +.endif + +.if defined(WITH_UNIXODBC) +LIB_DEPENDS= odbc:${PORTSDIR}/databases/unixODBC +CONFIGURE_ARGS= --with-unixodbc=${LOCALBASE} +.endif + +.if defined(WITH_IODBC) +LIB_DEPENDS= iodbc:${PORTSDIR}/databases/libiodbc +CONFIGURE_ARGS= --with-iodbc +.endif + +CONFIGURE_ARGS+=--libdir=${PREFIX}/mysql2odbc +CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} + +GNU_CONFIGURE= yes +USE_AUTOTOOLS= libtool:13 +INSTALLS_SHLIB= yes + +.include <bsd.port.mk> |