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
|
2002-06-27 20:06:04 +02:00
|
|
|
PORTVERSION= 1.13
|
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
|
1997-06-18 21:41:01 +02:00
|
|
|
|
2000-03-22 00:40:35 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
2000-08-26 11:15:05 +02:00
|
|
|
LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
|
2001-04-19 07:21:20 +02:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
1998-10-12 06:14:44 +02:00
|
|
|
|
2001-03-01 07:39:18 +01:00
|
|
|
PERL_CONFIGURE= yes
|
2001-04-21 13:43:12 +02:00
|
|
|
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
|
|
|
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)
|
|
|
|
CONFIGURE_ENV+= POSTGRES_INCLUDE=${LOCALBASE}/include/pgsql \
|
|
|
|
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
|