1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Fix another victim of recent py-numeric change.

This commit is contained in:
Maxim Sobolev 2001-05-03 09:02:06 +00:00
parent b0a815f6ef
commit 94070ada95
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42204

View File

@ -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>