head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.40 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.38 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.36 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.34 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.32 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.30 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.28 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.26 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.24 pkgsrc-2008Q2-base:1.5 pkgsrc-2008Q1:1.5.0.22 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.20 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.18 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.16 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.14 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.12 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.10 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.8 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.6 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.4 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.2 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.4.0.4 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.2 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.3.0.2 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.1.1.1.0.2 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2005.08.04.13.13.17; author adam; state dead; branches; next 1.4; 1.4 date 2005.03.14.04.08.42; author dmcmahill; state Exp; branches; next 1.3; 1.3 date 2004.12.05.09.03.42; author adam; state dead; branches; next 1.2; 1.2 date 2004.10.30.06.56.04; author dmcmahill; state Exp; branches; next 1.1; 1.1 date 2004.08.14.13.29.56; author dmcmahill; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.08.14.13.29.56; author dmcmahill; state Exp; branches; next ; desc @@ 1.5 log @Changes 2005-06-13: * textread now returns cell arrays * use new gnuplot interface for functions * fix rand bug on non-intel architectures * more econometrics functions * new functions: randg, cellfun, cell2mat, bwarea, imresize, savepath * bug fixes and improvements (see ChangeLog for details) @ text @$NetBSD: patch-ae,v 1.4 2005/03/14 04:08:42 dmcmahill Exp $ --- Makeconf.base.orig 2004-11-16 05:31:57.000000000 -0500 +++ Makeconf.base @@@@ -6,7 +6,7 @@@@ OCTAVE_FORGE = 1 -SHELL = /bin/sh +SHELL = @@SHELL@@ canonical_host_type = @@canonical_host_type@@ prefix = @@prefix@@ @ 1.4 log @- don't hard code /bin/sh (use the configured shell). Needed to get a working shell on solaris. - fix a header file - avoid passing invalid parameters to mkoctfile. octave-forge now works on solaris too. @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Changes 2004.11.16: * initial econometrics toolbox * updated protein databank (extra/pdb) functions * new functions: wavread wavwrite hann strfind randp sprandn conv2nan * many bug fixes and improvements @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.2 2004/10/30 06:56:04 dmcmahill Exp $ d3 3 a5 4 --- extra/mex/mex.in.orig Thu Sep 9 11:48:44 2004 +++ extra/mex/mex.in @@@@ -34,6 +34,7 @@@@ else fi d7 1 a7 8 # default the name of the octave function from the first filename +dir=`dirname $first` first=`basename $first` #echo "first= $first" ext=`echo $first | sed 's;.*\.;.;g'` @@@@ -52,6 +53,16 @@@@ case "$ext" in ;; esac d9 2 a10 12 +# search for a .m file which will be used for the help string +# in the mex function. +if test -f $dir/$name.m ; then + mfile=$dir/$name.m +elif test -f ./$name.m ; then + mfile=./$name.m +else + mfile="" +fi + cat < mex_$name.cc #include d12 2 a13 30 @@@@ -63,10 +74,28 @@@@ extern "C" { const char *mexFunctionName = "$name"; } ; -DEFUN_DLD($name, args, nargout, "\ +DEFUN_DLD($name, args, nargout, +EOF + +if test "X$mfile" = "X" ; then + cat <> mex_$name.cc +"\ $name not directly documented. Try the following:\n\ type(file_in_loadpath('$name.m'))\n\ ") +EOF +else + @@_AWK_@@ 'BEGIN{print "\"\\"} + /^[ \t]*$/ {exit} + {gsub(/^%/,""); + gsub(/\\/,"\\\\"); + gsub(/"/,"\\\""); + print $0 "\\n\\"} + END{print "\")"}' \ + $mfile >> mex_$name.cc +fi + +cat <> mex_$name.cc { octave_value_list $invoke(const octave_value_list &, const int); return $invoke(args, nargout); @ 1.2 log @Update to octave-forge-2004.09.09. The most notable change is that this version now works with octave-current-2.1.59 which is what's currently in pkgsrc. Other than than, many minor bug fixes. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Initial revision @ text @d3 4 a6 9 --- extra/mex/Makefile.orig Fri Feb 6 17:05:11 2004 +++ extra/mex/Makefile @@@@ -58,7 +58,7 @@@@ endif @@if test -d $(bindir) ; then \ echo installing mex/mex in $(bindir) ; \ $(RM) $(bindir)/mex ; \ - $(INSTALL_PROGRAM) mex $(bindir)/mex ; \ + $(INSTALL_SCRIPT) mex $(bindir)/mex ; \ fi d8 52 a59 1 clean: ; $(RM) mex mex_* $(MEXLIB) *.o *.oct core octave-core *~ @ 1.1.1.1 log @import octave-forge-2004.07.07 The octave-forge project contains functions for Octave which are not in the main distribution. While the main Octave distribution is conservative about accepting new functions and changes, octave-forge is very open. As a result, be prepared for some lower quality code and more rapidly changing interfaces to the functions in octave-forge. @ text @@