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
|
2004-02-04 06:21:48 +01:00
|
|
|
PORTREVISION= 3
|
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
|
|
|
|
2004-01-25 16:33:10 +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-01-04 16:53:39 +01:00
|
|
|
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
1998-10-12 06:14:44 +02:00
|
|
|
|
2004-05-25 11:19:42 +02:00
|
|
|
POSTGRESQL_PORT?= databases/postgresql7
|
2003-01-04 16:53:39 +01:00
|
|
|
|
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
|
|
|
|
2003-09-16 07:43:52 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
|
|
.endif
|
|
|
|
|
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
|
2003-11-14 15:11:14 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|