mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
6da29a94fa
fixed in next two months. With hat: portmgr
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
# New ports collection makefile for: p5-DBD-PgSPI
|
|
# Date created: 17 April 2003
|
|
# Whom: mat
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= DBD-PgSPI
|
|
PORTVERSION= 0.02
|
|
PORTREVISION= 3
|
|
CATEGORIES= databases perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= mat@FreeBSD.org
|
|
COMMENT= Provides access to PostgreSQL db through DBI within pl/perl functions
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS} \
|
|
${NONEXISTENT}:${PORTSDIR}/${POSTGRESQL_PORT}:configure
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/postgresql/plperl.so:${PORTSDIR}/databases/p5-postgresql-plperl \
|
|
${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
|
|
${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
|
|
|
|
BROKEN= Does not compile
|
|
DEPRECATED= Has been broken for more than 6 months
|
|
EXPIRATION_DATE=2008-09-19
|
|
|
|
USE_GMAKE= yes
|
|
USE_PGSQL= yes
|
|
PERL_CONFIGURE= yes
|
|
|
|
MAN3= DBD::PgSPI.3
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= Changes README
|
|
.endif
|
|
|
|
POSTGRESQL_PORT?= databases/postgresql${PGSQL_VER}-server
|
|
PGSQL_PORTDIR?= ${PORTSDIR}/${POSTGRESQL_PORT}
|
|
PGSQL_WRKSRC_CMD= cd ${PGSQL_PORTDIR} && ${MAKE} -V WRKSRC
|
|
|
|
.include <bsd.port.pre.mk>
|
|
# Setting/finding PostgreSQL version we want.
|
|
.if exists(${LOCALBASE}/bin/postmaster)
|
|
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
|
${SED} -n 's/.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
|
.elif exists(${LOCALBASE}/bin/pg_config)
|
|
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
|
.else
|
|
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
|
.endif
|
|
|
|
CONFIGURE_ENV= POSTGRES_HOME="`${PGSQL_WRKSRC_CMD}`/src" \
|
|
LOCALBASE="${LOCALBASE}"
|
|
|
|
post-patch:
|
|
@${PERL} -i -pe '$$_ = "" if /ppport.h/' \
|
|
${WRKSRC}/PgSPI.h
|
|
|
|
post-clean:
|
|
@cd ${PGSQL_PORTDIR} && ${MAKE} clean
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-install:
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|