summaryrefslogtreecommitdiff
path: root/math/scigraphica
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-05-03 09:02:06 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-05-03 09:02:06 +0000
commit94070ada950b96b43ac70850f4ca1f3f798e094e (patch)
tree7fff30fcd9a9022290ec7cb6fb43f76bf5f8367c /math/scigraphica
parentCatch up with changed location of py-numeric port. (diff)
Fix another victim of recent py-numeric change.
Notes
Notes: svn path=/head/; revision=42204
Diffstat (limited to 'math/scigraphica')
-rw-r--r--math/scigraphica/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/math/scigraphica/Makefile b/math/scigraphica/Makefile
index d924cf20e833..43ab4e3b0c3a 100644
--- a/math/scigraphica/Makefile
+++ b/math/scigraphica/Makefile
@@ -16,10 +16,10 @@ DISTNAME= sg-${PORTVERSION}
MAINTAINER= sobomax@FreeBSD.org
-BUILD_DEPENDS= ${LOCALBASE}/include/${PYTHON_VERSION}/Numeric/arrayobject.h:${PORTSDIR}/math/numpy
+BUILD_DEPENDS= ${PYNUMERIC}
LIB_DEPENDS= gtkextra.14:${PORTSDIR}/x11-toolkits/gtkextra \
xml.5:${PORTSDIR}/textproc/libxml
-RUN_DEPENDS= ${LOCALBASE}/include/${PYTHON_VERSION}/Numeric/arrayobject.h:${PORTSDIR}/math/numpy
+RUN_DEPENDS= ${PYNUMERIC}
USE_X_PREFIX= yes
USE_GMAKE= yes
@@ -29,6 +29,14 @@ USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_VERSION} == "python2.1"
+PYNUMERIC= ${LOCALBASE}/include/${PYTHON_VERSION}/Numeric/arrayobject.h:${PORTSDIR}/math/py-numeric
+.else
+PYNUMERIC= ${LOCALBASE}/include/${PYTHON_VERSION}/Numeric/arrayobject.h:${PORTSDIR}/math/py-numeric17
+.endif
+
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@@ -36,4 +44,4 @@ pre-patch:
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>