diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-05-03 09:02:06 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-05-03 09:02:06 +0000 |
commit | 94070ada950b96b43ac70850f4ca1f3f798e094e (patch) | |
tree | 7fff30fcd9a9022290ec7cb6fb43f76bf5f8367c /math/scigraphica | |
parent | b0a815f6ef0419d4dad08ed8d1ead51e7a204f1e (diff) | |
download | ports-94070ada950b96b43ac70850f4ca1f3f798e094e.tar.gz ports-94070ada950b96b43ac70850f4ca1f3f798e094e.zip |
Notes
Diffstat (limited to 'math/scigraphica')
-rw-r--r-- | math/scigraphica/Makefile | 14 |
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> |