2009-04-12 22:46:20 +02:00
|
|
|
# $NetBSD: octave.mk,v 1.8 2009/04/12 20:46:20 adam Exp $
|
2005-04-01 12:15:46 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
OCTAVE_CONFIG= ${LOCALBASE}/bin/octave-config
|
|
|
|
|
|
|
|
# OCTAVE_VARS is a list of variables to define in the make environment.
|
2005-04-01 12:25:16 +02:00
|
|
|
# This may be overridden in an octave add-on package Makefile.
|
2005-04-01 12:15:46 +02:00
|
|
|
OCTAVE_VARS?= LOCALVERFCNFILEDIR LOCALVEROCTFILEDIR LOCALVERARCHLIBDIR VERSION
|
|
|
|
|
|
|
|
# Set OCT_<var> to the value of <var> as returned by octave-config.
|
2006-07-11 00:59:26 +02:00
|
|
|
.if exists(${OCTAVE_CONFIG})
|
Changes 3.0.0:
* Compatibility with Matlab graphics is much better now. We now
have some graphics features that work like Matlab's Handle
Graphics (tm):
* The way Octave handles search paths has changed.
* Previous versions of Octave had a number of built-in variables to
control warnings (for example, warn_divide_by_zero). These
variables have been replaced by warning identifiers that are used
with the warning function to control the state of warnings.
* All built-in variables have been converted to functions.
* For compatibility with Matlab, the output order of Octave's
"system" function has changed.
* For compatibility with Matlab, the output of Octave's fsolve
function has been changed.
* For compatibility with Matlab, normcdf, norminv, normpdf, and
normrnd have been modified to compute distributions using the
standard deviation instead of the variance.
* For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
expcdf, expinv, exppdf and exprnd have been modified to compute
the distributions using the standard scale factor rather than
one over the scale factor.
2008-01-11 02:23:43 +01:00
|
|
|
. for var in ${OCTAVE_VARS}
|
|
|
|
. if !defined(OCT_${var})
|
|
|
|
OCT_${var}!= ${OCTAVE_CONFIG} -p ${var}
|
2006-07-11 00:59:26 +02:00
|
|
|
. endif
|
|
|
|
. endfor
|
2005-08-04 15:15:13 +02:00
|
|
|
.endif
|
2009-01-18 03:43:38 +01:00
|
|
|
|
|
|
|
# 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)
|