# $Id: Makefile,v 1.1.1.1 2008/10/30 00:01:31 pirofti Exp $

COMMENT=	ODBC driver for PostgreSQL
VERSION=	08.03.0300
PKGNAME=	postgresql-odbc-${VERSION}
DISTNAME=	psqlodbc-${VERSION}
CATEGORIES=	databases

HOMEPAGE=	http://pgfoundry.org/projects/psqlodbc/

MAINTAINER=	Paul Irofti <pirofti@openbsd.org>

# LGPL
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

MASTER_SITES=		ftp://ftp9.us.postgresql.org/pub/mirrors/postgresql/odbc/versions/src/

SHARED_ONLY=yes

LIB_DEPENDS=		pq:postgresql-client-8.3.*:databases/postgresql \
			iodbcinst:iodbc-*:databases/iodbc \
			iodbc:iodbc-*:databases/iodbc

WANTLIB=		pthread 

USE_GMAKE=		YES
USE_LIBTOOL=		YES
CONFIGURE_STYLE=	autoconf
AUTOCONF_VERSION=	2.60
CONFIGURE_ARGS+=	--with-iodbc --without-unixodbc --enable-pthreads
COPTS+=			-I${LOCALBASE}/include -L${LOCALBASE}/lib

NO_REGRESS=		Yes

.include <bsd.port.mk>
