aboutsummaryrefslogtreecommitdiff
path: root/math/pygist/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/pygist/Makefile')
-rw-r--r--math/pygist/Makefile24
1 files changed, 11 insertions, 13 deletions
diff --git a/math/pygist/Makefile b/math/pygist/Makefile
index 5ab2489878a9..0c1e53c9573b 100644
--- a/math/pygist/Makefile
+++ b/math/pygist/Makefile
@@ -15,39 +15,37 @@ EXTRACT_SUFX= .tgz
MAINTAINER= tg@FreeBSD.org
-BUILD_DEPENDS= python:${PORTSDIR}/lang/python \
- ${LOCALBASE}/lib/yorick/1.4/lib/libgist.a:${PORTSDIR}/lang/yorick \
+BUILD_DEPENDS= ${LOCALBASE}/lib/yorick/1.4/lib/libgist.a:${PORTSDIR}/lang/yorick \
${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy \
${RNGDIR}/RNG.so:${PORTSDIR}/math/numpy
-RUN_DEPENDS= python:${PORTSDIR}/lang/python \
- ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy \
+RUN_DEPENDS= ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy \
${RNGDIR}/RNG.so:${PORTSDIR}/math/numpy
WRKSRC= ${WRKDIR}/${DISTNAME}/Graphics
-CONFIGURE_ENV= PREFIX=${PREFIX}
+USE_PYTHON= yes
+CONFIGURE_ENV= PREFIX=${PREFIX} PYTHON=${PYTHON_CMD}
ALL_TARGET= sharedmods
-MAKE_FLAGS+= 'OPT=${CFLAGS}'
+MAKE_FLAGS= 'OPT=${CFLAGS}'
-PYTHONSCRIPTDIR= ${PREFIX}/lib/python1.5
-GISTDIR= ${PYTHONSCRIPTDIR}/site-packages/PyGist
-NUMPYDIR= ${PYTHONSCRIPTDIR}/site-packages/Numeric
-RNGDIR= ${PYTHONSCRIPTDIR}/site-packages/RNG
+GISTDIR= ${PYTHON_SITELIBDIR}/PyGist
+NUMPYDIR= ${PYTHON_SITELIBDIR}/Numeric
+RNGDIR= ${PYTHON_SITELIBDIR}/RNG
EXAMPLEDIR= ${PREFIX}/share/examples/PyGist
post-patch:
.for file in Gist3D/Demo/demo5.py Gist3D/Demo/gistmeshtest.py \
Narcisse/Demo/meshtest.py OOG/Demo/eztest.py \
OOG/Demo/surftest3d.py OOG/Demo/surftest4d.py
- ${PERL} -pi -e 's/from Ranf import/from RNG import/' ${WRKSRC}/${file}
+ @${PERL} -pi -e 's/from Ranf import/from RNG import/' ${WRKSRC}/${file}
.endfor
do-configure:
- @(cd ${WRKSRC} && ${CONFIGURE_ENV} python makethis.py)
+ @(cd ${WRKSRC} && ${CONFIGURE_ENV} ${PYTHON_CMD} makethis.py)
post-install:
@${MKDIR} ${GISTDIR}
${INSTALL_DATA} ${WRKSRC}/*/Lib/* ${GISTDIR}
- @${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${GISTDIR}
+ @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${GISTDIR}
@${ECHO} "PyGist" > ${GISTDIR}/../PyGist.pth
${MKDIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/*/Demo/* ${EXAMPLEDIR}