mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
fe279f0df8
Discussed with: kris Approved by: portmgr (implicit)
51 lines
1.6 KiB
Makefile
51 lines
1.6 KiB
Makefile
# New ports collection makefile for: PostgreSQL ODBC
|
|
# Date created: January 14, 2002
|
|
# Whom: Palle Girgensohn <girgen@partitur.se>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= postgresql
|
|
PORTVERSION= 7.2.5
|
|
PORTREVISION= 2
|
|
CATEGORIES= databases
|
|
MASTER_SITES= ${MASTER_SITE_PGSQL}
|
|
MASTER_SITE_SUBDIR= odbc/versions/src
|
|
PKGNAMESUFFIX?= -odbc
|
|
DISTNAME= psqlodbc-${PORTVERSION}
|
|
DIST_SUBDIR= postgresql
|
|
|
|
MAINTAINER= girgen@FreeBSD.org
|
|
COMMENT= PostgreSQL ODBC client support
|
|
|
|
# PostgreSQL ODBC support needs an ODBC driver manager to be
|
|
# installed, and it supports both iODBC and unixODBC. The following
|
|
# variable may be set at built-time to either "iodbc" or "unixodbc",
|
|
# with the former being the default:
|
|
DRIVER_MANAGER?= iodbc
|
|
|
|
# Note that there is a potential conflict between unixODBC's and
|
|
# postgres' libodbcpsql.so. unixODBC installs versions `1' & `2' of
|
|
# the named lib, while postgres installs version `0'. The postgres
|
|
# 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
|
|
.else # assume we're using iodbc
|
|
LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc
|
|
CONFIGURE_ARGS+= --with-iodbc --with-odbcinst=${LOCALBASE}/etc/libiodbc
|
|
.endif
|
|
|
|
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>
|