diff options
author | jtb <jtb> | 2002-05-04 01:10:02 +0000 |
---|---|---|
committer | jtb <jtb> | 2002-05-04 01:10:02 +0000 |
commit | 601be111da3ab28c0765c3369b467d051290cafe (patch) | |
tree | 799e45150a8421dd8485e063ea22404d9ac6b453 /math | |
parent | 81aafbe72e2af13261e2de8dcffbc4d91ddba49a (diff) | |
download | pkgsrc-601be111da3ab28c0765c3369b467d051290cafe.tar.gz |
Initial import of algae.
Algae is an interpreted language for numerical analysis. Algae
borrows ideas from languages like MATLAB, APL, and C, but it was
developed in response to a need for a free, efficient, and versatile
high-level language with large problem capability.
Diffstat (limited to 'math')
-rw-r--r-- | math/algae/DESCR | 4 | ||||
-rw-r--r-- | math/algae/Makefile | 22 | ||||
-rw-r--r-- | math/algae/PLIST | 98 | ||||
-rw-r--r-- | math/algae/distinfo | 9 | ||||
-rw-r--r-- | math/algae/patches/patch-aa | 45 | ||||
-rw-r--r-- | math/algae/patches/patch-ab | 106 | ||||
-rw-r--r-- | math/algae/patches/patch-ac | 13 | ||||
-rw-r--r-- | math/algae/patches/patch-ad | 13 | ||||
-rw-r--r-- | math/algae/patches/patch-ae | 20 |
9 files changed, 330 insertions, 0 deletions
diff --git a/math/algae/DESCR b/math/algae/DESCR new file mode 100644 index 00000000000..ed0599f915f --- /dev/null +++ b/math/algae/DESCR @@ -0,0 +1,4 @@ +Algae is an interpreted language for numerical analysis. Algae +borrows ideas from languages like MATLAB, APL, and C, but it was +developed in response to a need for a free, efficient, and versatile +high-level language with large problem capability. diff --git a/math/algae/Makefile b/math/algae/Makefile new file mode 100644 index 00000000000..80bc60203af --- /dev/null +++ b/math/algae/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/05/04 01:10:02 jtb Exp $ + +DISTNAME= algae-3.6.2 +CATEGORIES= math +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=algae/} + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://algae.sourceforge.net/ +COMMENT= Interpreted language for numerical analysis + +DEPENDS+= gnuplot>=3.5:../../graphics/gnuplot + +GNU_CONFIGURE= # defined +USE_FORTRAN= # defined +USE_BUILDLINK_ONLY= # defined +USE_GNU_READLINE= # uses history_truncate_file + +INFO_FILES= algae.info + +.include "../../devel/readline/buildlink.mk" +.include "../../mk/texinfo.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/algae/PLIST b/math/algae/PLIST new file mode 100644 index 00000000000..32735cb638c --- /dev/null +++ b/math/algae/PLIST @@ -0,0 +1,98 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/04 01:10:03 jtb Exp $ +bin/algae +bin/${PKGNAME} +@unexec ${INSTALL_INFO} --delete --info-dir=%D/info %D/info/algae.info +info/algae.info +info/algae.info-1 +info/algae.info-2 +info/algae.info-3 +info/algae.info-4 +info/algae.info-5 +info/algae.info-6 +@exec ${INSTALL_INFO} --info-dir=%D/info %D/info/algae.info +lib/algae/${PKGVERSION}/algae.A +lib/algae/${PKGVERSION}/tools/all.A +lib/algae/${PKGVERSION}/tools/arg.A +lib/algae/${PKGVERSION}/tools/autosrc.A +lib/algae/${PKGVERSION}/tools/brent.A +lib/algae/${PKGVERSION}/tools/combine.A +lib/algae/${PKGVERSION}/tools/diff.A +lib/algae/${PKGVERSION}/tools/equal.A +lib/algae/${PKGVERSION}/tools/eval.A +lib/algae/${PKGVERSION}/tools/first.A +lib/algae/${PKGVERSION}/tools/grep.A +lib/algae/${PKGVERSION}/tools/help.A +lib/algae/${PKGVERSION}/tools/ident.A +lib/algae/${PKGVERSION}/tools/info.A +lib/algae/${PKGVERSION}/tools/inv.A +lib/algae/${PKGVERSION}/tools/label.A +lib/algae/${PKGVERSION}/tools/last.A +lib/algae/${PKGVERSION}/tools/load.A +lib/algae/${PKGVERSION}/tools/log10.A +lib/algae/${PKGVERSION}/tools/logspace.A +lib/algae/${PKGVERSION}/tools/magic.A +lib/algae/${PKGVERSION}/tools/max.A +lib/algae/${PKGVERSION}/tools/merge.A +lib/algae/${PKGVERSION}/tools/message.A +lib/algae/${PKGVERSION}/tools/monte.A +lib/algae/${PKGVERSION}/tools/ode4.A +lib/algae/${PKGVERSION}/tools/pick.A +lib/algae/${PKGVERSION}/tools/plot.A +lib/algae/${PKGVERSION}/tools/product.A +lib/algae/${PKGVERSION}/tools/prof.A +lib/algae/${PKGVERSION}/tools/provide.A +lib/algae/${PKGVERSION}/tools/randn.A +lib/algae/${PKGVERSION}/tools/require.A +lib/algae/${PKGVERSION}/tools/reverse.A +lib/algae/${PKGVERSION}/tools/roots.A +lib/algae/${PKGVERSION}/tools/save.A +lib/algae/${PKGVERSION}/tools/select.A +lib/algae/${PKGVERSION}/tools/seq.A +lib/algae/${PKGVERSION}/tools/shape.A +lib/algae/${PKGVERSION}/tools/show.A +lib/algae/${PKGVERSION}/tools/sign.A +lib/algae/${PKGVERSION}/tools/solve.A +lib/algae/${PKGVERSION}/tools/sources.A +lib/algae/${PKGVERSION}/tools/spline.A +lib/algae/${PKGVERSION}/tools/src.A +lib/algae/${PKGVERSION}/tools/ssi.A +lib/algae/${PKGVERSION}/tools/string.A +lib/algae/${PKGVERSION}/tools/sum.A +lib/algae/${PKGVERSION}/tools/surprise.A +lib/algae/${PKGVERSION}/tools/tmp_file.A +lib/algae/${PKGVERSION}/tools/tools.algae +lib/algae/${PKGVERSION}/tools/tri.A +lib/algae/${PKGVERSION}/tools/umin.A +lib/algae/${PKGVERSION}/tools/unlabel.A +lib/algae/${PKGVERSION}/tools/what.A +lib/algae/${PKGVERSION}/tools/who.A +lib/algae/html +man/man1/algae.1 +share/doc/algae/COPYING +share/doc/algae/LICENSE +share/doc/algae/algae.html +share/doc/algae/algae_1.html +share/doc/algae/algae_10.html +share/doc/algae/algae_11.html +share/doc/algae/algae_12.html +share/doc/algae/algae_13.html +share/doc/algae/algae_14.html +share/doc/algae/algae_15.html +share/doc/algae/algae_16.html +share/doc/algae/algae_2.html +share/doc/algae/algae_3.html +share/doc/algae/algae_4.html +share/doc/algae/algae_5.html +share/doc/algae/algae_6.html +share/doc/algae/algae_7.html +share/doc/algae/algae_8.html +share/doc/algae/algae_9.html +share/doc/algae/algae_abt.html +share/doc/algae/algae_toc.html +share/doc/algae/icon.gif +share/doc/algae/index.html +share/doc/algae/info.db +@dirrm share/doc/algae +@dirrm lib/algae/3.6.2/tools +@dirrm lib/algae/3.6.2 +@dirrm lib/algae diff --git a/math/algae/distinfo b/math/algae/distinfo new file mode 100644 index 00000000000..aba79f5e157 --- /dev/null +++ b/math/algae/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/05/04 01:10:02 jtb Exp $ + +SHA1 (algae-3.6.2.tar.gz) = 3a346630431316a04d407feaa79145e344c1bcf6 +Size (algae-3.6.2.tar.gz) = 1335329 bytes +SHA1 (patch-aa) = c9808abd82f27eb9b41358d8b962553446b473b8 +SHA1 (patch-ab) = b6810598837288df7519a775c026a8283c273b1d +SHA1 (patch-ac) = 3f276084ea91fe9df8fa457744fada0f43f67359 +SHA1 (patch-ad) = 07a2ef16a2b69530b99f2492ca97044dc1514ce9 +SHA1 (patch-ae) = b215290525a6ac7d51d0c80f1bf009165ffb826a diff --git a/math/algae/patches/patch-aa b/math/algae/patches/patch-aa new file mode 100644 index 00000000000..7d4774df678 --- /dev/null +++ b/math/algae/patches/patch-aa @@ -0,0 +1,45 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/05/04 01:10:03 jtb Exp $ + +--- /dev/null Tue Jan 2 02:09:36 2001 ++++ fpe/netbsd1.5.c +@@ -0,0 +1,40 @@ ++#if HAVE_CONFIG_H ++#include <config.h> ++#endif ++ ++#include <stdio.h> ++#include <math.h> ++#include <errno.h> ++#include <ieeefp.h> ++#include <setjmp.h> ++#include <signal.h> ++ ++#if !SKIP_LOCAL_INCLUDES ++#include "exception.h" ++#include "message.h" ++#endif ++ ++static void ++catch_sigfpe (int sig, int code, struct sigcontext *scp) ++{ ++ fail ("Floating point exception."); ++ raise_exception (); ++} ++ ++void ++enable_fpe_traps () ++{ ++ struct sigaction act; ++ ++ act.sa_handler = (void (*)(int)) catch_sigfpe; ++ sigemptyset (&act.sa_mask); ++ act.sa_flags = 0; ++ ++ if (sigaction (SIGFPE, &act, NULL)) ++ wipeout ("Bad sigaction call."); ++ ++ sigaddset (&act.sa_mask, SIGFPE); ++ sigprocmask (SIG_UNBLOCK, &act.sa_mask, NULL); ++ ++ fpsetmask (FP_X_INV | FP_X_DZ | FP_X_OFL); ++} diff --git a/math/algae/patches/patch-ab b/math/algae/patches/patch-ab new file mode 100644 index 00000000000..755ae08e869 --- /dev/null +++ b/math/algae/patches/patch-ab @@ -0,0 +1,106 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/05/04 01:10:04 jtb Exp $ + +--- configure.orig Wed Apr 17 02:47:02 2002 ++++ configure Wed Apr 17 02:51:35 2002 +@@ -597,7 +597,7 @@ + LIBS="$LIBS -lm" + f77_compile='${F77-f77} $FFLAGS -c conftest.f 1>&5 2>&5' + f77_make='make F77="${F77-f77}" FFLAGS="$FFLAGS" -f conftest.mak conftest.o 1>&5 2>&5' +-c_f77_link='(${F77-f77} $FFLAGS -c conftestf.f && ${CC-cc} $CFLAGS $CPPFLAGS conftest.c conftestf.o -o conftest $LDFLAGS $LIBS) 1>&5 2>&5' ++c_f77_link='(${F77-f77} $FFLAGS -c conftestf.f && ${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c && ${F77-f77} conftest.o conftestf.o -o conftest $LDFLAGS $LIBS) 1>&5 2>&5' + + # The next two don't include LDFLAGS, because some loser f77 compilers + # (like on hp) do their own thing with the -L option. +@@ -2344,24 +2344,24 @@ + #--------------------------------------------------------------------- + + # Check whether --with-fortran-libs or --without-fortran-libs was given. +-if test "${with_fortran_libs+set}" = set; then +- withval="$with_fortran_libs" +- fortran_libs="${withval}" +-else +- # The patterns are not necessarily exclusive, so their order is important. +- case "$host" in +- sparc-sun-sunos4* ) +- fortran_libs="/usr/lang/SC1.0" ;; +- sparc-sun-solaris2* ) +- fortran_libs=`/bin/ls -d /opt/SUNWspro/SC* | head -1`/lib ;; +- alpha*-*-osf* ) +- fortran_libs="/usr/lib" ;; +- *-hp-hpux1* ) +- fortran_libs="/opt/fortran/lib" ;; +- * ) +- fortran_libs="" ;; +- esac +-fi ++# if test "${with_fortran_libs+set}" = set; then ++# withval="$with_fortran_libs" ++# fortran_libs="${withval}" ++# else ++# # The patterns are not necessarily exclusive, so their order is important. ++# case "$host" in ++# sparc-sun-sunos4* ) ++# fortran_libs="/usr/lang/SC1.0" ;; ++# sparc-sun-solaris2* ) ++# fortran_libs=`/bin/ls -d /opt/SUNWspro/SC* | head -1`/lib ;; ++# alpha*-*-osf* ) ++# fortran_libs="/usr/lib" ;; ++# *-hp-hpux1* ) ++# fortran_libs="/opt/fortran/lib" ;; ++# * ) ++# fortran_libs="" ;; ++# esac ++# fi + + + #--------------------------------------------------------------------- +@@ -2369,23 +2369,23 @@ + # are not necessarily exclusive, so their order is important. + #--------------------------------------------------------------------- + +-case "$host" in +- alpha* ) f77_lib_names="Futil ots for Ufor" ;; +- *-aix* ) f77_lib_names="xlf xlf90" ;; +- *-hpux1* ) f77_lib_names="cl U77" ;; +- *-hpux9* ) f77_lib_names="f U77" ;; +- *-hpux* ) f77_lib_names="F77 I77 IO77" ;; +- *-dec-ultrix* ) f77_lib_names="for i util ots I77 U77 F77" ;; +- mips-sgi-irix*) f77_lib_names="F77 I77 U77 isam fpe" ;; +- mips-* ) f77_lib_names="F77 I77 U77 isam" ;; +- *-solaris2* ) f77_lib_names="F77 M77 sunmath" ;; +- *-sunos4* ) f77_lib_names="F77 V77" ;; +- titan-* ) f77_lib_names="iF77 uF77 mF77" ;; +- *-unicos* ) f77_lib_names="F77 I77 sci f" ;; +- * ) f77_lib_names="F77 I77" ;; +-esac +-f77_lib_names="$f77_lib_names g2c f2c" +-for f in $f77_lib_names; do reversed_names="$f $reversed_names"; done ++# case "$host" in ++# alpha* ) f77_lib_names="Futil ots for Ufor" ;; ++# *-aix* ) f77_lib_names="xlf xlf90" ;; ++# *-hpux1* ) f77_lib_names="cl U77" ;; ++# *-hpux9* ) f77_lib_names="f U77" ;; ++# *-hpux* ) f77_lib_names="F77 I77 IO77" ;; ++# *-dec-ultrix* ) f77_lib_names="for i util ots I77 U77 F77" ;; ++# mips-sgi-irix*) f77_lib_names="F77 I77 U77 isam fpe" ;; ++# mips-* ) f77_lib_names="F77 I77 U77 isam" ;; ++# *-solaris2* ) f77_lib_names="F77 M77 sunmath" ;; ++# *-sunos4* ) f77_lib_names="F77 V77" ;; ++# titan-* ) f77_lib_names="iF77 uF77 mF77" ;; ++# *-unicos* ) f77_lib_names="F77 I77 sci f" ;; ++# * ) f77_lib_names="F77 I77" ;; ++# esac ++# f77_lib_names="$f77_lib_names g2c f2c" ++# for f in $f77_lib_names; do reversed_names="$f $reversed_names"; done + + #--------------------------------------------------------------------- + # On linux (and perhaps other GNU systems), the linker has trouble +@@ -2393,7 +2393,7 @@ + #--------------------------------------------------------------------- + + cat >> confdefs.h <<\EOF +-#if linux ++#if defined (linux) || defined (__NetBSD__) + void MAIN__ (void) {abort();} + void etime_ (void) {abort();} + #endif diff --git a/math/algae/patches/patch-ac b/math/algae/patches/patch-ac new file mode 100644 index 00000000000..1f3fe5e572b --- /dev/null +++ b/math/algae/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/05/04 01:10:03 jtb Exp $ + +--- src/Makefile.in.orig Wed Apr 17 02:53:08 2002 ++++ src/Makefile.in Wed Apr 17 02:53:32 2002 +@@ -126,7 +126,7 @@ + # <<<< This section is deleted in the "binary" distribution. + + algae: $(OBJECTS) +- $(CC) $(CFLAGS) $(LDFLAGS) -o algae $(OBJECTS) $(LIBS) ++ $(FC) $(CFLAGS) $(LDFLAGS) -o algae $(OBJECTS) $(LIBS) + + Makefile: Makefile.in ../config.status + cd ..; ./config.status diff --git a/math/algae/patches/patch-ad b/math/algae/patches/patch-ad new file mode 100644 index 00000000000..9c3cd98a027 --- /dev/null +++ b/math/algae/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/05/04 01:10:03 jtb Exp $ + +--- src/main.c.orig Sat May 3 07:25:04 1997 ++++ src/main.c +@@ -375,7 +375,7 @@ + * references from the Fortran libraries. + */ + +-#if linux ++#if defined (linux) || defined (__NetBSD__) + + void + MAIN__ (void) diff --git a/math/algae/patches/patch-ae b/math/algae/patches/patch-ae new file mode 100644 index 00000000000..1e8c3b29d1a --- /dev/null +++ b/math/algae/patches/patch-ae @@ -0,0 +1,20 @@ +$NetBSD: patch-ae,v 1.1.1.1 2002/05/04 01:10:03 jtb Exp $ + +--- Makefile.in.orig Wed Apr 17 03:57:06 2002 ++++ Makefile.in Wed Apr 17 03:57:30 2002 +@@ -78,13 +78,13 @@ + manext = 1 + + # Directory in which to install the Info files. +-infodir = $(prefix)/share/info ++infodir = $(prefix)/info + + # Directory in which to install the algae tools. + tooldir = $(datadir)/algae/$(VERSION_NUMBER)/tools + + # Directory in which to install the algae html files. +-htmldir = $(datadir)/algae/$(VERSION_NUMBER)/html ++htmldir = $(prefix)/share/doc/algae + + # Directory and name of the startup file. This is compiled into the + # executable, so don't change either assignment if you have a binary |