2004-07-26 06:21:12 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2004/07/26 10:21:12 peter Exp $
|
2001-08-21 19:00:38 -04:00
|
|
|
|
|
|
|
COMMENT= "PostgreSQL database adapter for Python"
|
|
|
|
|
2003-06-21 04:15:52 -04:00
|
|
|
VERSION= 1.1.4
|
2001-08-21 19:00:38 -04:00
|
|
|
DISTNAME= psycopg-${VERSION}
|
|
|
|
PKGNAME= py-psycopg-${VERSION}
|
|
|
|
CATEGORIES= databases
|
|
|
|
|
2002-02-01 09:54:28 -05:00
|
|
|
MASTER_SITES= http://initd.org/pub/software/psycopg/
|
|
|
|
HOMEPAGE= http://initd.org/software/psycopg
|
2001-08-21 19:00:38 -04:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
2001-09-18 21:05:17 -04:00
|
|
|
FLAVORS= zope
|
|
|
|
FLAVOR?=
|
|
|
|
|
2001-08-21 19:00:38 -04:00
|
|
|
PYTHON_VER= 2.1
|
|
|
|
DATETIME_PATH= ${LOCALBASE}/lib/python${PYTHON_VER}/site-packages/mx/DateTime
|
|
|
|
|
2004-07-26 06:21:12 -04:00
|
|
|
LIB_DEPENDS= pq.3:postgresql-client-*:databases/postgresql
|
|
|
|
RUN_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER} \
|
2004-02-23 00:06:40 -05:00
|
|
|
:py-mxDateTime->=2.0.0-py2.1:devel/py-mxDateTime,py2.1
|
2004-07-26 06:21:12 -04:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2001-09-18 21:05:17 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mzope}
|
2002-06-09 01:31:40 -04:00
|
|
|
RUN_DEPENDS+= :zope-*:www/zope
|
2001-09-18 21:05:17 -04:00
|
|
|
.endif
|
2001-08-21 19:00:38 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS= --with-python=python${PYTHON_VER} \
|
|
|
|
--with-python-version=${PYTHON_VER} \
|
|
|
|
--with-mxdatetime-includes=${DATETIME_PATH}/mxDateTime
|
|
|
|
|
|
|
|
SUBST_VARS= PYTHON_VER
|
|
|
|
|
2002-10-25 12:23:30 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2001-09-18 21:05:17 -04:00
|
|
|
pre-install:
|
|
|
|
mkdir -p ${PREFIX}/lib/zope/lib/python/Products/
|
|
|
|
cp -r ${WRKSRC}/ZPsycopgDA/ ${PREFIX}/lib/zope/lib/python/Products/
|
|
|
|
|
2001-08-21 19:00:38 -04:00
|
|
|
.include <bsd.port.mk>
|