diff options
author | obache <obache@pkgsrc.org> | 2009-01-18 02:43:38 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2009-01-18 02:43:38 +0000 |
commit | ee0ec3fff1f40f0e6030b897a40e085583923b92 (patch) | |
tree | 2fba622537782a3f5e8708ebe00dc2b138a09ebe /math | |
parent | 739b3c4d1a6f9d156a241de1145b182b5c1bb58c (diff) | |
download | pkgsrc-ee0ec3fff1f40f0e6030b897a40e085583923b92.tar.gz |
Add REPLACE_OCTAVE feature.
Diffstat (limited to 'math')
-rw-r--r-- | math/octave/octave.mk | 14 |
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) + |