aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql-libpq++/Makefile
blob: 9fee1ac8cdc2da3546cac24e15b2a023c84537d5 (plain) (blame)
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
# New ports collection makefile for:    PostgreSQL Pgaccess
# Date created:     December 1st, 2002
# Whom:         Palle Girgensohn <girgen@pingpong.net>
#
# $FreeBSD$
#

PORTNAME=   libpq++
PORTVERSION=    4.0
PORTREVISION=   2
CATEGORIES= databases
MASTER_SITES=   ftp://gborg.postgresql.org/pub/libpqpp/stable/
PKGNAMEPREFIX=  postgresql-
DIST_SUBDIR=    postgresql

MAINTAINER= girgen@pingpong.net
COMMENT=    C++ interface for  PostgreSQL

POSTGRESQL_PORT?=   databases/postgresql7
LIB_DEPENDS=    pq.3:${PORTSDIR}/${POSTGRESQL_PORT}

USE_GMAKE=  YES
USE_REINPLACE=  YES
INSTALLS_SHLIB= YES

post-patch:
    ${REINPLACE_CMD} "s,/usr/local/pgsql,${PREFIX},; \
              s,^CFLAGS.*,CFLAGS=${CFLAGS},; \
              s,\...SO_MINOR_VERSION.,,; \
              s,\-I,\-fPIC \-I,; \
              s,\(\-[IL]\)[^/]*,\\1${LOCALBASE}," ${WRKSRC}/Makefile

.include <bsd.port.mk>