summaryrefslogtreecommitdiffstats
path: root/databases/mysql2odbc/Makefile
blob: 83df3858209938dbade19f81c2025db9f6c2d14f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Created by: Max Khon <fjoe@FreeBSD.org>
# $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 <bsd.port.options.mk>

.if ${PORT_OPTIONS:MUNIXODBC}
LIB_DEPENDS=	libodbc.so:${PORTSDIR}/databases/unixODBC
CONFIGURE_ARGS=	--with-unixodbc=${LOCALBASE}
.endif

.if ${PORT_OPTIONS:MIODBC}
LIB_DEPENDS=	libiodbc.so:${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 <bsd.port.mk>
OpenPOWER on IntegriCloud