summaryrefslogtreecommitdiff
path: root/graphics/asymptote
diff options
context:
space:
mode:
authorjym <jym>2011-07-04 00:18:07 +0000
committerjym <jym>2011-07-04 00:18:07 +0000
commitcb67dcebd0a9e9d65a26136970842c9c70af078d (patch)
treeaa3075a3ca375b3134b89c0c84342960a4a00757 /graphics/asymptote
parent0aaadb0d9bdabbc966f647ebc11a4079f0a38d17 (diff)
downloadpkgsrc-cb67dcebd0a9e9d65a26136970842c9c70af078d.tar.gz
check-interpreter fix.
Diffstat (limited to 'graphics/asymptote')
-rw-r--r--graphics/asymptote/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/graphics/asymptote/Makefile b/graphics/asymptote/Makefile
index ce4436eb7c8..2cd524a9ad7 100644
--- a/graphics/asymptote/Makefile
+++ b/graphics/asymptote/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2011/02/28 14:52:49 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2011/07/04 00:18:07 jym Exp $
#
DISTNAME= asymptote-1.85
@@ -27,6 +27,14 @@ CONFIGURE_ARGS+= --infodir=${PREFIX}/info
USE_TOOLS+= gmake makeinfo perl
CFLAGS+= -DGC_NO_THREAD_REDIRECTS
+REPLACE_PYTHON+= GUI/*.py
+
+SUBST_CLASSES+= python
+SUBST_STAGE.python= post-patch
+SUBST_FILES.python= Makefile.in
+SUBST_MESSAGE.python= Fixing path to python interpreter.
+SUBST_SED.python+= -e "s|/usr/bin/env python|${PYTHONBIN:Q}|g"
+
post-install:
${MV} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xasy.1x \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xasy.1
@@ -40,6 +48,7 @@ BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo
.include "../../devel/boehm-gc/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
+.include "../../lang/python/application.mk"
# next two could be split off into options
.include "../../math/fftw/buildlink3.mk"
.include "../../math/gsl/buildlink3.mk"