diff options
author | dmcmahill <dmcmahill> | 2004-08-14 01:31:56 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill> | 2004-08-14 01:31:56 +0000 |
commit | 51882c0882fd0388986efd668965a18edfdd0c39 (patch) | |
tree | e9cd91575244cbc254455364699e5f0d624c655a /math | |
parent | 45434c0426e02a5456be58f6029c4189fd7b9f08 (diff) | |
download | pkgsrc-51882c0882fd0388986efd668965a18edfdd0c39.tar.gz |
add octave.mk that can be used by other pkgs to find some paths used by octave
Diffstat (limited to 'math')
-rw-r--r-- | math/octave-current/octave.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/math/octave-current/octave.mk b/math/octave-current/octave.mk new file mode 100644 index 00000000000..3f35734987d --- /dev/null +++ b/math/octave-current/octave.mk @@ -0,0 +1,25 @@ +# $NetBSD: octave.mk,v 1.1 2004/08/14 01:31:56 dmcmahill Exp $ +# + +.include "../../mk/bsd.prefs.mk" + +OCTAVE_CONFIG= ${LOCALBASE}/bin/octave-config + +# OCTAVE_VARS is a list of variables to define in the make environment. +# This may be overridden in an octave add-on package Makefile. +# +OCTAVE_VARS?= LOCALVERFCNFILEDIR LOCALVEROCTFILEDIR LOCALVERARCHLIBDIR VERSION + +# Set OCT_<var> to the value of <var> as returned by octave-config. +.if !empty(PHASES_AFTER_EXTRACT:M${PKG_PHASE}) +. if exists(${OCTAVE_CONFIG}) +. for _var_ in ${OCTAVE_VARS} +. if !defined(OCT_${_var_}) +OCT_${_var_}!= ${OCTAVE_CONFIG} -p ${_var_} +. endif +. endfor +. undef _var_ +. endif +.endif + + |