aboutsummaryrefslogtreecommitdiffstats
path: root/databases/zpygresqlda/Makefile
blob: 18874c8142fd9aedddeb6f703f893a76fa4554f6 (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
# New ports collection makefile for: ZPyGreSQLDA
# Date created:     07 Sep 2000
# Whom:         Neil Blakey-Milner
#
# $FreeBSD$
#

PORTNAME=   zpygresqlda
PORTVERSION=    0.3.2
PORTREVISION=   1
CATEGORIES= databases www zope
MASTER_SITES=   http://www.zope.org/Members/reedstrm/ZPyGreSQLDA-rjr/
DISTNAME=   ZPyGreSQLDA-0.3-rjr2

MAINTAINER= nbm@FreeBSD.org
COMMENT=    PostgreSQL database adapter for Zope

RUN_DEPENDS=    ${LOCALBASE}/${SZOPEBASEDIR}/z2.py:${PORTSDIR}/www/zope
LIB_DEPENDS=    pq.3:${PORTSDIR}/${POSTGRESQL_PORT}

POSTGRESQL_PORT?=   databases/postgresql7
USE_PYTHON= yes
PYTHON_VERSION= python1.5

# You can change this in the environment
SZOPEBASEDIR?=      www/Zope

# Don't change these
ZOPEBASEDIR=        ${PREFIX}/${SZOPEBASEDIR}
ZOPEPRODUCTNAME=    ZPyGreSQLDA
ZOPEPRODUCTDIR=     lib/python/Products

WRKSRC=     ${WRKDIR}/${ZOPEPRODUCTDIR}/${ZOPEPRODUCTNAME}

PLIST_SUB=  ZOPEBASEDIR=${SZOPEBASEDIR}

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 501000
BROKEN=     "Does not compile"
.endif

do-build:
    @${ECHO_CMD} '*shared*' > ${WRKSRC}/src/Setup
    @${ECHO_CMD} '' >> ${WRKSRC}/src/Setup
    @${ECHO_CMD} '_pg   pgmodule.c ' \
        '-I${LOCALBASE}/include ' \
        '-L${LOCALBASE}/lib ' \
        '-lpq -lcrypt' >> ${WRKSRC}/src/Setup
    @(cd ${WRKSRC}/src && \
        make -f Makefile.pre.in boot && \
        make )
    @${CP} ${WRKSRC}/src/_pgmodule.so ${WRKSRC}/

do-install:
    @${MKDIR} ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/${ZOPEPRODUCTNAME}/
    @${CP} -Rf ${WRKSRC}/* \
        ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/${ZOPEPRODUCTNAME}/

.include <bsd.port.post.mk>