diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-06-01 11:47:52 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-06-01 11:47:52 +0800 |
commit | 0092ce50fbacb23dcd9c0547ef82872062c1dc05 (patch) | |
tree | 6918f0acb9761a7571a45710bf0eabedc05f53ee /math | |
parent | 6876c059d2a6d5a4bab95cd5504b4233215de6b5 (diff) | |
download | freebsd-ports-gnome-0092ce50fbacb23dcd9c0547ef82872062c1dc05.tar.gz freebsd-ports-gnome-0092ce50fbacb23dcd9c0547ef82872062c1dc05.tar.zst freebsd-ports-gnome-0092ce50fbacb23dcd9c0547ef82872062c1dc05.zip |
add spar
A modular math parser
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/spar/Makefile | 28 | ||||
-rw-r--r-- | math/spar/distinfo | 1 | ||||
-rw-r--r-- | math/spar/files/patch-spar::readline.c | 10 | ||||
-rw-r--r-- | math/spar/pkg-comment | 1 | ||||
-rw-r--r-- | math/spar/pkg-descr | 22 | ||||
-rw-r--r-- | math/spar/pkg-plist | 35 |
7 files changed, 98 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 0d954f4d1960..0aa71dcf18a0 100644 --- a/math/Makefile +++ b/math/Makefile @@ -99,6 +99,7 @@ SUBDIR += simpack SUBDIR += slsc SUBDIR += snns + SUBDIR += spar SUBDIR += spin SUBDIR += ss SUBDIR += superlu diff --git a/math/spar/Makefile b/math/spar/Makefile new file mode 100644 index 000000000000..8d4e7d508cd1 --- /dev/null +++ b/math/spar/Makefile @@ -0,0 +1,28 @@ +# ex:ts=8 +# New ports collection makefile for: spar +# Date created: Jun 1, 2001 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= spar +PORTVERSION= 0.5.1 +CATEGORIES= math devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= ijliao@FreeBSD.org + +LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt + +GNU_CONFIGURE= yes +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt" +INSTALLS_SHLIB= yes + +MAN1= spar.1 + +post-patch: + @${PERL} -pi -e "s,-ldl,,g" ${WRKSRC}/lib/Makefile.in + +.include <bsd.port.mk> diff --git a/math/spar/distinfo b/math/spar/distinfo new file mode 100644 index 000000000000..d978439108d6 --- /dev/null +++ b/math/spar/distinfo @@ -0,0 +1 @@ +MD5 (spar-0.5.1.tar.gz) = 767856a532b6cbada739255cd6c25f25 diff --git a/math/spar/files/patch-spar::readline.c b/math/spar/files/patch-spar::readline.c new file mode 100644 index 000000000000..4c1fc29c64c1 --- /dev/null +++ b/math/spar/files/patch-spar::readline.c @@ -0,0 +1,10 @@ +--- spar/readline.c.orig Fri Jun 1 11:25:10 2001 ++++ spar/readline.c Fri Jun 1 11:25:24 2001 +@@ -30,6 +30,7 @@ + #include "cmd_table.h" + + #ifdef HAVE_READLINE_HISTORY_H ++#include <stdio.h> + #include <readline/history.h> + + int diff --git a/math/spar/pkg-comment b/math/spar/pkg-comment new file mode 100644 index 000000000000..90601cfdd6a7 --- /dev/null +++ b/math/spar/pkg-comment @@ -0,0 +1 @@ +A modular math parser diff --git a/math/spar/pkg-descr b/math/spar/pkg-descr new file mode 100644 index 000000000000..062d1c867baa --- /dev/null +++ b/math/spar/pkg-descr @@ -0,0 +1,22 @@ +Spar is a modular math parser that comes with a fully featured text frontend, +something like an interactive calculator. It also provides a simple but +complete API for C/C++ programmers. This API provide a complete interface to +a top down parser that supports: variables, constants, functions, modules and +a libc based math library. This math library overrides standard functions with +a "custom" version (such as. deg, rad auto conversion, infinite symbol, +function domain...). + +Spar, can be easily extended with modules. A module is a "user" extensions, +written in C/C++, to the basic features of the Simple Parser. Here you can +find the module definition: is a C structure that contains only few data +member: + - module name + - module version + - module description + - a pointer to the module main function + +The modules are loaded at run-time by the module loader (that is a high level +layer of the module manager): you can load your modules, simply, coping theirs +paths into the .spar_modules (or any other file, with the -c option). + +WWW: http://spar.sourceforge.net/ diff --git a/math/spar/pkg-plist b/math/spar/pkg-plist new file mode 100644 index 000000000000..e4df291ba292 --- /dev/null +++ b/math/spar/pkg-plist @@ -0,0 +1,35 @@ +bin/spar +include/sl/sl.h +include/sl/sl_chartype.h +include/sl/sl_conf.h +include/sl/sl_constant.h +include/sl/sl_error.h +include/sl/sl_function.h +include/sl/sl_init.h +include/sl/sl_input.h +include/sl/sl_memory.h +include/sl/sl_module.h +include/sl/sl_module_loader.h +include/sl/sl_module_manager.h +include/sl/sl_parser.h +include/sl/sl_util.h +include/sl/sl_variable.h +include/sl/sl_writer.h +include/sl_math.h +include/sl_math_library.h +include/sl_poly.h +include/sl_sort.h +include/sl_table.h +lib/libspar.a +lib/libspar.la +lib/libspar.so +lib/spar/solve_c.a +lib/spar/solve_c.la +lib/spar/solve_c.so +lib/spar/solve_q.a +lib/spar/solve_q.la +lib/spar/solve_q.so +share/spar/modules_config +@dirrm include/sl +@dirrm lib/spar +@dirrm share/spar |