pkgsrc-wip/octave/octave.mk
crocusino 219554e3fa Now based on math/octave - but removed all libtool stuff
(works, but needs LD_LIBRARY_PATH to be set - how to get rid of this?)
2010-10-21 20:25:03 +00:00

29 lines
869 B
Makefile

# $NetBSD: octave.mk,v 1.1 2010/10/21 20:25:04 crocusino 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
# fix shebang line.
#
# REPLACE_OCTAVE replace shebang line of specified files.
#
.if defined(REPLACE_OCTAVE)
REPLACE_INTERPRETER+= octave
REPLACE.octave.old= .*octave
REPLACE.octave.new= ${LOCALBASE}/bin/octave
REPLACE_FILES.octave= ${REPLACE_OCTAVE}
.endif # defined(REPLACE_OCTAVE)