[BACK]Return to octave.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / math / octave

File: [cvs.NetBSD.org] / pkgsrc / math / octave / octave.mk (download)

Revision 1.5, Mon Jul 10 22:59:26 2006 UTC (17 years, 7 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4, pkgsrc-2006Q3-base, pkgsrc-2006Q3
Changes since 1.4: +7 -9 lines

Completely nuke the concept of PKG_PHASE from pkgsrc except for the
purposes of caching MAKEVARS within bsd.pkg.mk and bsd.makevars.mk.

# $NetBSD: octave.mk,v 1.5 2006/07/10 22:59:26 jlam 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 exists(${OCTAVE_CONFIG})
.  for _var_ in ${OCTAVE_VARS}
.    if !defined(OCT_${_var_})
OCT_${_var_}!=	${OCTAVE_CONFIG} -p ${_var_}
.    endif
.  endfor
.endif