1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

Update PostgreSQL ODBC to 7.2.5 (version number not the same as the main

distribution, this is the matching version for PostgreSQL 7.3.1).

PR:		ports/45882 && ports/41739
Submitted by:	Palle Girgensohn <girgen@pingpong.net> &&
		Dave Chapeskie <bsdport@ddm.wox.org> for fix in ports/41739
This commit is contained in:
Sean Chittenden 2003-01-04 23:47:46 +00:00
parent 8f87e4c8f3
commit 92fabe63bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=72539
4 changed files with 28 additions and 23 deletions

View File

@ -1,22 +1,23 @@
# New ports collection makefile for: PostgreSQL JDBC
# New ports collection makefile for: PostgreSQL ODBC
# Date created: January 14, 2002
# Whom: Palle Girgensohn <girgen@partitur.se>
#
# $FreeBSD$
#
PORTNAME= postgresql-odbc
PORTNAME= postgresql
PORTVERSION= 7.2.5
CATEGORIES= databases
MASTER_SITES= http://odbc.postgresql.org/ftpsite/odbc/versions/src/
PKGNAMESUFFIX?= -odbc
DISTNAME= psqlodbc-${PORTVERSION}
DIST_SUBDIR= postgresql
MAINTAINER= girgen@partitur.se
MAINTAINER= girgen@pingpong.net
POSTGRESQL_PORT?= databases/postgresql7
POSTGRESQL_SUBPORT=YES
.include <${.CURDIR}/../postgresql7/Makefile>
CONFIGURE_ARGS= --with-libdir=${LOCALBASE}/lib \
--with-includes=${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
MAKE_ARGS= LDFLAGS=${LDFLAGS}
.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
# PostgreSQL ODBC support needs an ODBC driver manager to be
# installed, and it supports both iODBC and unixODBC. The following
@ -30,16 +31,21 @@ DRIVER_MANAGER?= iodbc
# folks say their is the best, so you might be better off removing
# the others?
.if ${DRIVER_MANAGER} == "unixodbc"
PKGNAMESUFFIX= -unixodbc
CONFIGURE_ARGS+= --with-unixodbc
LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
PLIST_SUB+=UNIXODBC="" IODBC="@comment "
.else # assume we're using iodbc
LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc
CONFIGURE_ARGS+= --with-iodbc --with-odbcinst=${LOCALBASE}/etc/libiodbc
PLIST_SUB+=UNIXODBC="@comment " IODBC=""
.endif
MAKEFILE= GNUmakefile
MAKE_ARGS+= -C src/interfaces/odbc
USE_GMAKE= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS= --with-libdir=${LOCALBASE}/lib --enable-pthreads \
--with-includes=${LOCALBASE}/include
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
CONFIGURE_ENV= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (postgresql/psqlodbc-7.2.5.tar.gz) = 701c7c55831652d35937c2efaeaab26d

View File

@ -2,8 +2,10 @@ Support connecting to a postgresql database from a unix client
application using ODBC.
Note: You do not need this port installed on unix if you want to use
ODBC to connect a Windows machine with PostgreSQL.
ODBC to connect a Windows machine to PostgreSQL.
This software is part of the standard PostgreSQL distribution.
Since there is an ambition to slim the PostgreSQL distribution, this
software is no longer a part thereof. It is still the offical ODBC
implementation, though.
WWW: http://www.postgresql.org/
WWW: http://odbc.postgresql.org/

View File

@ -1,9 +1,5 @@
%%IODBC%%lib/libpsqlodbc.so
%%IODBC%%lib/libpsqlodbc.a
%%IODBC%%lib/libpsqlodbc.so.0
%%UNIXODBC%%lib/libodbcpsql.so
%%UNIXODBC%%lib/libodbcpsql.a
%%UNIXODBC%%lib/libodbcpsql.so.0
lib/psqlodbc.so
lib/psqlodbc.la
share/postgresql/odbc.sql
share/postgresql/odbc-drop.sql
@unexec rmdir %D/share/postgresql 2>/dev/null || true
@dirrm share/psqlodbc