# Created by: Max Khon # $FreeBSD$ PORTNAME= mysql2odbc PORTVERSION= 0.99.2 PORTREVISION= 4 CATEGORIES= databases MASTER_SITES= http://www.iodbc.org/downloads/mysql2odbc/ MAINTAINER= fjoe@FreeBSD.org COMMENT= Openlink MySQL-ODBC Gateway OPTIONS_SINGLE= ODBC OPTIONS_SINGLE_ODBC= UNIXODBC IODBC OPTIONS_DEFAULT= UNIXODBC .include .if ${PORT_OPTIONS:MUNIXODBC} LIB_DEPENDS= odbc:${PORTSDIR}/databases/unixODBC CONFIGURE_ARGS= --with-unixodbc=${LOCALBASE} .endif .if ${PORT_OPTIONS:MIODBC} LIB_DEPENDS= iodbc:${PORTSDIR}/databases/libiodbc CONFIGURE_ARGS= --with-iodbc .endif CONFIGURE_ARGS+=--libdir=${PREFIX}/mysql2odbc CPPFLAGS+= ${PTHREAD_CFLAGS} LDFLAGS+= ${PTHREAD_LIBS} USE_AUTOTOOLS= libtool USE_LDCONFIG= yes .include