pkgsrc/math/octave/octave.mk

19 lines
578 B
Makefile
Raw Normal View History

# $NetBSD: octave.mk,v 1.6 2008/01/11 01:23:43 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.
.if exists(${OCTAVE_CONFIG})
. for var in ${OCTAVE_VARS}
. if !defined(OCT_${var})
OCT_${var}!= ${OCTAVE_CONFIG} -p ${var}
. endif
. endfor
2005-08-04 15:15:13 +02:00
.endif