summaryrefslogtreecommitdiffstats
path: root/databases/mysql2odbc/Makefile
blob: a6eb3aa04dd182addfe96ab97ee7d4ba689853c6 (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
37
38
39
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>
OpenPOWER on IntegriCloud