aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-PyGreSQL/files
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2000-10-03 21:52:51 +0800
committernectar <nectar@FreeBSD.org>2000-10-03 21:52:51 +0800
commiteaf4bf3c55ac2aa2bda10e9978c8552feef37cd0 (patch)
tree588681fb8587638f354e9ebbfaf2d90e9da5e4dd /databases/py-PyGreSQL/files
parentd2e2b29caca5c1ee90169912f3280a6f7c60d2eb (diff)
downloadfreebsd-ports-gnome-eaf4bf3c55ac2aa2bda10e9978c8552feef37cd0.tar.gz
freebsd-ports-gnome-eaf4bf3c55ac2aa2bda10e9978c8552feef37cd0.tar.zst
freebsd-ports-gnome-eaf4bf3c55ac2aa2bda10e9978c8552feef37cd0.zip
Update 2.4 -> 3.0
Diffstat (limited to 'databases/py-PyGreSQL/files')
-rw-r--r--databases/py-PyGreSQL/files/Makefile28
1 files changed, 13 insertions, 15 deletions
diff --git a/databases/py-PyGreSQL/files/Makefile b/databases/py-PyGreSQL/files/Makefile
index a5a0f5988bd7..b1aa7a29fc6c 100644
--- a/databases/py-PyGreSQL/files/Makefile
+++ b/databases/py-PyGreSQL/files/Makefile
@@ -1,28 +1,26 @@
+# grr, commit_prep wants the next line
+# $FreeBSD$
.SUFFIXES: .py .pyc
-SITE_PACKAGES=${PREFIX}/lib/python1.5/site-packages
-
-all: _pgmodule.so pg.pyc pgtools.pyc
+all: _pgmodule.so pg.pyc pgdb.pyc
install:
- @${MKDIR} ${SITE_PACKAGES}
- ${BSD_INSTALL_PROGRAM} _pgmodule.so ${SITE_PACKAGES}
- ${BSD_INSTALL_DATA} pg.py pg.pyc pgtools.py pgtools.pyc \
- ${SITE_PACKAGES}
+ @${MKDIR} ${PYTHON_SITELIBDIR}
+ ${BSD_INSTALL_PROGRAM} _pgmodule.so ${PYTHON_SITELIBDIR}
+ ${BSD_INSTALL_DATA} pg.py pg.pyc pgdb.py pgdb.pyc \
+ ${PYTHON_SITELIBDIR}
clean:
- rm -f *.so *.o *.pyc pgtools.py
-
-pgtools.py: tutorial/pgtools.py
- ${LN} -fs ${.ALLSRC} ${.TARGET}
+ rm -f *.so *.o *.pyc
_pgmodule.so: pgmodule.o
- ${LD} -Bshareable -lc_r -L${PREFIX}/lib/python1.5/config -lpython1.5 \
- -L${PREFIX}/pgsql/lib -lpq ${.ALLSRC} -o ${.TARGET}
+ ${LD} -Bshareable -lc_r -L${PYTHON_LIBDIR}/config \
+ -l${PYTHON_VERSION} -L${PREFIX}/pgsql/lib -lpq \
+ ${.ALLSRC} -o ${.TARGET}
pgmodule.o: pgmodule.c
- ${CC} -c -I${PREFIX}/include/python1.5 -I${PREFIX}/pgsql/include \
- ${.ALLSRC}
+ ${CC} -c -I${PREFIX}/include/${PYTHON_VERSION} \
+ -I${PREFIX}/pgsql/include ${.ALLSRC}
.py.pyc:
${SETENV} PYTHONPATH=${.CURDIR} ${PYTHON} -c 'import ${.IMPSRC:.py=}'