aboutsummaryrefslogtreecommitdiffstats
path: root/databases/p5-DBD-PgSPI/Makefile
blob: 70eb3dec7513bbdbb8c10783dafafe4cc0181655 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 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>
ut little older version) andkuriyama2008-07-102-7/+11 * - Upgrade to 2.1.12.kuriyama2008-07-036-44/+29 * Switch autoconf dependencies from 2.53 or 2.59 to 2.61.linimon2007-09-301-2/+2 * - Set --mandir and --infodir in CONFIGURE_ARGS if the configure scriptrafan2007-07-231-1/+0 * Fix installation with xorg 7.2.kuriyama2007-06-161-0/+1 * - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1 * - Upgrade to 2.1.7.kuriyama2006-09-243-4/+26 * - Unbreak by avoiding overwrite of $PREFIX/info/dir.kuriyama2006-09-052-7/+11 * Grab maintainership and try to investigate this breakage.kuriyama2006-09-041-1/+1 * Schedule these broken ports for termination on 2006-12-01kris2006-09-031-0/+2 * Mark broken: removes files not belonging to it on deinstall.linimon2006-07-171-0/+2 * Update port from version 2.1.4 to version 2.1.6anray2006-07-053-28/+31 * - Fix possibility of "infinite make fork" when "Registering install for ..."linimon2006-01-281-0/+1 * - Add SHA256pav2005-11-261-0/+1 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * - Update to 2.1.4pav2005-11-034-18/+39 * Pacify distfile survey by following redirects on URLs.linimon2005-10-131-1/+1 * install password.el unconditionally.sf2005-02-222-0/+18 * - Update to 2.1.3pav2005-02-202-4/+4 * - Update to 2.0.46sem2004-12-242-3/+3 * - Update to 2.0.45pav2004-10-132-3/+3 * - Update to 2.0.44pav2004-10-122-6/+5 * - Upgrade to 2.0.43 (2.0.41 didn't work on emacs-21.3 by usingkuriyama2004-07-223-47/+4 * fix build of tramp-emacs20yoichi2004-06-141-4/+2 * Fix elisp error at connecting to remote site.kuriyama2004-06-142-0/+43 * Update to 2.0.41yoichi2004-06-123-43/+30 * SIZEify (maintainer timeout)trevor2004-03-311-0/+1 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-0/+1 * Chase up new MASTER_SITE_SAVANNAH.edwin2003-10-031-1/+2 * Don't call texi2dvi.yoichi2003-09-20