summaryrefslogtreecommitdiff
path: root/math/octave-current/octave.mk
blob: 449af13f75c2c0e7529d4ad1f29ca35341d3943f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $NetBSD: octave.mk,v 1.5 2006/01/06 22:41:48 adam 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
.  endif
.endif