pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/octave-current add octave.mk that can be used by ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/73a62ac2995a
branches:  trunk
changeset: 479413:73a62ac2995a
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Sat Aug 14 01:31:56 2004 +0000

description:
add octave.mk that can be used by other pkgs to find some paths used by octave

diffstat:

 math/octave-current/octave.mk |  25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diffs (29 lines):

diff -r 4960a3d9e21e -r 73a62ac2995a math/octave-current/octave.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/octave-current/octave.mk     Sat Aug 14 01:31:56 2004 +0000
@@ -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 
+
+



Home | Main Index | Thread Index | Old Index