1997-06-18 21:41:01 +02:00
|
|
|
# New ports collection makefile for: p5-DBD-Pg
|
|
|
|
# Date created: June 17th 1997
|
|
|
|
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
|
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1997-06-18 21:41:01 +02:00
|
|
|
#
|
|
|
|
|
2001-04-21 13:43:12 +02:00
|
|
|
PORTNAME= DBD-Pg
|
2003-07-10 06:39:34 +02:00
|
|
|
PORTVERSION= 1.22
|
2003-08-12 14:37:03 +02:00
|
|
|
PORTREVISION= 2
|
2001-04-21 13:43:12 +02:00
|
|
|
CATEGORIES= databases perl5
|
1997-06-18 21:41:01 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
|
|
|
MASTER_SITE_SUBDIR= DBD
|
2000-06-17 04:37:15 +02:00
|
|
|
PKGNAMEPREFIX= p5-
|
1997-06-18 21:41:01 +02:00
|
|
|
|
2002-03-12 21:29:24 +01:00
|
|
|
MAINTAINER= fjoe@freebsd.org
|
2003-02-18 12:54:56 +01:00
|
|
|
COMMENT= Provides access to PostgreSQL databases through the DBI
|
1997-06-18 21:41:01 +02:00
|
|
|
|
2003-07-10 06:39:34 +02:00
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
2003-01-04 16:53:39 +01:00
|
|
|
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
2001-04-19 07:21:20 +02:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
1998-10-12 06:14:44 +02:00
|
|
|
|
2003-01-04 16:53:39 +01:00
|
|
|
POSTGRESQL_PORT?= databases/postgresql7
|
|
|
|
|
2001-03-01 07:39:18 +01:00
|
|
|
PERL_CONFIGURE= yes
|
2003-07-10 06:39:34 +02:00
|
|
|
|
2001-04-21 13:43:12 +02:00
|
|
|
MAN3= DBD::Pg.3 DBD::dbd-pg.3
|
1997-06-18 21:41:01 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2002-03-12 21:29:24 +01:00
|
|
|
|
2003-01-03 23:52:45 +01:00
|
|
|
.if defined(WITH_OLD_LAYOUT)
|
2003-01-05 19:12:50 +01:00
|
|
|
CONFIGURE_ENV+= POSTGRES_INCLUDE=${LOCALBASE}/include/pgsql \
|
2003-01-03 23:52:45 +01:00
|
|
|
POSTGRES_LIB=${LOCALBASE}/lib
|
|
|
|
.else
|
|
|
|
.if exists(${LOCALBASE}/pgsql/bin/pg_config)
|
2002-03-12 21:29:24 +01:00
|
|
|
PG_CONFIG= ${LOCALBASE}/pgsql/bin/pg_config
|
2003-01-03 23:52:45 +01:00
|
|
|
.else
|
|
|
|
PG_CONFIG= ${LOCALBASE}/bin/pg_config
|
2002-03-12 21:29:24 +01:00
|
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= POSTGRES_INCLUDE=`${PG_CONFIG} --includedir` \
|
|
|
|
POSTGRES_LIB=`${PG_CONFIG} --libdir`
|
|
|
|
.endif
|