summaryrefslogtreecommitdiff
path: root/geography
diff options
context:
space:
mode:
authorrichard <richard>2016-09-05 16:09:11 +0000
committerrichard <richard>2016-09-05 16:09:11 +0000
commit8c677eb59619f811ad0793802b12da6814e0e7ca (patch)
tree139e312565b0b282712146d435016db7b0f81bc2 /geography
parent138322fa16eb617e7368b8ee46cd063173d0387b (diff)
downloadpkgsrc-8c677eb59619f811ad0793802b12da6814e0e7ca.tar.gz
PYTHONBIN doesn't exist during the first phase of the build.
Diffstat (limited to 'geography')
-rw-r--r--geography/py-obspy/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/geography/py-obspy/Makefile b/geography/py-obspy/Makefile
index 0c07c6101ac..c3cead094db 100644
--- a/geography/py-obspy/Makefile
+++ b/geography/py-obspy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2016/08/20 18:56:55 richard Exp $
+# $NetBSD: Makefile,v 1.8 2016/09/05 16:09:11 richard Exp $
DISTNAME= obspy-1.0.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -29,11 +29,13 @@ pre-configure:
.include "../../lang/python/pyversion.mk"
+.if exists(${PYTHONBIN:Q})
PYPLATFORM!= ${PYTHONBIN} -c 'import platform; print platform.system() + "_" + platform.architecture()[0]'
PLIST_SUBST+= PYPLATFORM=${PYPLATFORM} PYPKGPREFIX=${PYPKGPREFIX}
PRINT_PLIST_AWK+= /^${PYPLATFORM:S|/|\\/|g}/ \
{ gsub(/${PYPLATFORM:S|/|\\/|g}/, "$${PYPLATFORM}") }
+.endif
.include "../../graphics/py-matplotlib/buildlink3.mk"
.include "../../lang/python/egg.mk"