freebsd-ports/databases/zpygresqlda/Makefile
Mark Linimon 3ef1f35af0 Fix mastersite and mark deprecated. The distfile has not been updated
since 1999, and still depends on obsolete versions of Zope and Python.
Other alternatives are available from zope.org.
2004-04-14 02:48:05 +00:00

65 lines
1.6 KiB
Makefile

# New ports collection makefile for: ZPyGreSQLDA
# Date created: 07 Sep 2000
# Whom: Neil Blakey-Milner
#
# $FreeBSD$
#
PORTNAME= zpygresqlda
PORTVERSION= 0.3.2
PORTREVISION= 2
CATEGORIES= databases www zope
MASTER_SITES= http://www.zope.org/Members/reedstrm/ZPyGreSQLDA-rjr/0.3-rjr2/
DISTNAME= ZPyGreSQLDA-0.3-rjr2
MAINTAINER= ports@FreeBSD.org
COMMENT= PostgreSQL database adapter for Zope
DEPRECATED= "depends on obsolete versions of Zope and Python"
EXPIRATION_DATE= "May 13 2004"
RUN_DEPENDS= ${ZOPEBASEDIR}/skel/bin/zopectl.in:${PORTSDIR}/www/zope
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
BROKEN= Broken dependency
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>