2006-11-26 05:24:36 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.26 2006/11/26 10:24:36 steven Exp $
|
2004-10-24 16:44:35 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
2001-08-21 19:00:38 -04:00
|
|
|
|
2006-11-26 05:24:36 -05:00
|
|
|
COMMENT-main= "PostgreSQL database adapter for Python"
|
2004-10-24 16:44:35 -04:00
|
|
|
COMMENT-zope= "database adapter for Zope"
|
2001-08-21 19:00:38 -04:00
|
|
|
|
2006-01-28 06:18:52 -05:00
|
|
|
VERSION= 1.1.21
|
2001-08-21 19:00:38 -04:00
|
|
|
DISTNAME= psycopg-${VERSION}
|
2006-11-26 05:24:36 -05:00
|
|
|
PKGNAME= py-${DISTNAME}p3
|
|
|
|
PKGNAME-main= py-${DISTNAME}p3
|
2006-11-16 17:39:02 -05:00
|
|
|
PKGNAME-zope= py-psycopg-zope-${VERSION}p0
|
2001-08-21 19:00:38 -04:00
|
|
|
CATEGORIES= databases
|
|
|
|
|
2004-10-24 16:44:35 -04:00
|
|
|
HOMEPAGE= http://initd.org/projects/psycopg1
|
|
|
|
|
|
|
|
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
|
2001-08-21 19:00:38 -04:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2005-02-27 06:38:49 -05:00
|
|
|
WANTLIB= crypto util pq
|
2001-08-21 19:00:38 -04:00
|
|
|
|
2006-01-28 06:18:52 -05:00
|
|
|
MASTER_SITES= http://initd.org/pub/software/psycopg/
|
2001-09-18 21:05:17 -04:00
|
|
|
|
2006-01-28 06:18:52 -05:00
|
|
|
MODULES= lang/python
|
2001-08-21 19:00:38 -04:00
|
|
|
|
2006-03-19 11:45:27 -05:00
|
|
|
BUILD_DEPENDS= :postgresql-server-*:databases/postgresql,-server \
|
|
|
|
:py-mxDateTime->=2.0.0:devel/py-mxDateTime
|
|
|
|
RUN_DEPENDS= :postgresql-client-*:databases/postgresql \
|
2005-05-16 18:02:51 -04:00
|
|
|
:py-mxDateTime->=2.0.0:devel/py-mxDateTime
|
2001-09-18 21:05:17 -04:00
|
|
|
|
2006-11-26 05:24:36 -05:00
|
|
|
MULTI_PACKAGES= -main -zope
|
2004-10-24 16:44:35 -04:00
|
|
|
|
2006-11-26 05:24:36 -05:00
|
|
|
RUN_DEPENDS-zope= :zope-*:www/zope \
|
|
|
|
:py-psycopg-${VERSION}*:${BUILD_PKGPATH} \
|
|
|
|
${MODPY_RUN_DEPENDS}
|
|
|
|
PKG_ARCH-zope= *
|
|
|
|
WANTLIB-zope=
|
2001-08-21 19:00:38 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
2006-01-28 06:18:52 -05:00
|
|
|
CONFIGURE_ARGS= --with-mxdatetime-includes=${MODPY_SITEPKG}/mx/DateTime/mxDateTime
|
|
|
|
CONFIGURE_ENV= PYTHON=${MODPY_BIN}
|
2001-08-21 19:00:38 -04:00
|
|
|
|
2006-01-28 06:18:52 -05:00
|
|
|
NO_REGRESS= Yes
|
2001-08-21 19:00:38 -04:00
|
|
|
|
2004-10-24 16:44:35 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/zope/lib/python/Products/
|
|
|
|
cd ${WRKSRC}; tar cf - ZPsycopgDA | tar xf - -C ${PREFIX}/lib/zope/lib/python/Products
|
|
|
|
${CHOWN} -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/zope/lib/python/Products/ZPsycopgDA
|
2006-01-28 06:18:52 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-psycopg/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/examples/* \
|
|
|
|
${PREFIX}/share/examples/py-psycopg/
|
2006-11-16 17:39:02 -05:00
|
|
|
${CHOWN} ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/python${MODPY_VERSION}/lib-dynload/psycopgmodule.so
|
2001-09-18 21:05:17 -04:00
|
|
|
|
2001-08-21 19:00:38 -04:00
|
|
|
.include <bsd.port.mk>
|