From 51882c0882fd0388986efd668965a18edfdd0c39 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Sat, 14 Aug 2004 01:31:56 +0000 Subject: add octave.mk that can be used by other pkgs to find some paths used by octave --- math/octave-current/octave.mk | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 math/octave-current/octave.mk (limited to 'math/octave-current') 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_ to the value of 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 + + -- cgit v1.2.3