From c562aecdf089ef9ebe7c03351e2f538aaf973d83 Mon Sep 17 00:00:00 2001 From: obache Date: Sun, 18 Jan 2009 02:43:38 +0000 Subject: Add REPLACE_OCTAVE feature. --- math/octave/octave.mk | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'math') 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) + -- cgit v1.2.3