diff options
author | richard <richard@pkgsrc.org> | 2016-09-05 16:09:11 +0000 |
---|---|---|
committer | richard <richard@pkgsrc.org> | 2016-09-05 16:09:11 +0000 |
commit | e1e5d5d58b93b996ea0da5c79401694bae952c8e (patch) | |
tree | 4fc8d48cdd34f4a2b1cd58d086aa9701c2814223 /geography | |
parent | 714401a2c468aa40e2ab43a6ccb9ae73574b30ac (diff) | |
download | pkgsrc-e1e5d5d58b93b996ea0da5c79401694bae952c8e.tar.gz |
PYTHONBIN doesn't exist during the first phase of the build.
Diffstat (limited to 'geography')
-rw-r--r-- | geography/py-obspy/Makefile | 4 |
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" |