summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorobache <obache>2009-01-18 02:43:38 +0000
committerobache <obache>2009-01-18 02:43:38 +0000
commit8359075e3df0086f758afe82ad87f9b2610724a2 (patch)
tree2fba622537782a3f5e8708ebe00dc2b138a09ebe /math
parent3ab7730a48151b8a53f60bcd94ceb5004e2b7ae9 (diff)
downloadpkgsrc-8359075e3df0086f758afe82ad87f9b2610724a2.tar.gz
Add REPLACE_OCTAVE feature.
Diffstat (limited to 'math')
-rw-r--r--math/octave/octave.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/math/octave/octave.mk b/math/octave/octave.mk
index cbad90d57ab..0b0ff4b6c5d 100644
--- a/math/octave/octave.mk
+++ b/math/octave/octave.mk
@@ -1,4 +1,4 @@
-# $NetBSD: octave.mk,v 1.6 2008/01/11 01:23:43 adam Exp $
+# $NetBSD: octave.mk,v 1.7 2009/01/18 02:43:38 obache Exp $
.include "../../mk/bsd.prefs.mk"
@@ -16,3 +16,15 @@ OCT_${var}!= ${OCTAVE_CONFIG} -p ${var}
. endif
. endfor
.endif
+
+# fix shebang line.
+#
+# REPLACE_OCTAVE replace shebang line of specified files.
+#
+.if defined(REPLACE_OCTAVE)
+REPLACE_INTERPRETER+= octave
+REPLACE.octave.old= .*octave
+REPLACE.octave.new= ${LOCALBASE}/bin/octave
+REPLACE_FILES.octave= ${REPLACE_OCTAVE}
+.endif # defined(REPLACE_OCTAVE)
+