1998-07-06 17:45:35 +00:00
|
|
|
# Ports collection Makefile for: PyGreSQL
|
1999-02-23 00:28:15 +00:00
|
|
|
# Date created: 2/22/1999
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: nectar@FreeBSD.org
|
1998-07-06 17:45:35 +00:00
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1998-07-06 17:45:35 +00:00
|
|
|
#
|
|
|
|
|
2001-04-21 11:43:12 +00:00
|
|
|
PORTNAME= PyGreSQL
|
|
|
|
CATEGORIES= databases python
|
2002-10-23 14:33:47 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2001-04-21 11:43:12 +00:00
|
|
|
|
2002-06-21 17:40:05 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2001-04-21 11:43:12 +00:00
|
|
|
|
2002-10-23 14:33:47 +00:00
|
|
|
POSTGRESQL_SUBPORT= YES
|
|
|
|
.include <${.CURDIR}/../postgresql7/Makefile>
|
|
|
|
|
2001-04-21 11:43:12 +00:00
|
|
|
BUILD_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
|
|
|
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
|
|
|
LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
2002-10-23 14:33:47 +00:00
|
|
|
CONFIGURE_ARGS= --with-python --prefix=${PREFIX}
|
|
|
|
MAKE_ARGS+= -C src/interfaces/python
|
|
|
|
CFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
MAKEFILE= GNUmakefile
|
2001-04-21 11:43:12 +00:00
|
|
|
|
|
|
|
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
|
2000-10-03 13:52:51 +00:00
|
|
|
|
1998-07-06 17:45:35 +00:00
|
|
|
post-install:
|
2002-10-23 14:33:47 +00:00
|
|
|
@ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -lf \
|
|
|
|
${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
@ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -lf \
|
|
|
|
${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.for docfile in Announce ChangeLog README
|
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/interfaces/python/${docfile} \
|
|
|
|
${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
1998-07-06 17:45:35 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|