aboutsummaryrefslogtreecommitdiffstats
path: root/math/mpexpr/files
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-10-06 10:43:46 +0800
committeredwin <edwin@FreeBSD.org>2003-10-06 10:43:46 +0800
commit81c04604da51829086e87b6993affbad24e02d4f (patch)
tree542a86378da425eaa4912c3eef3f94020139836f /math/mpexpr/files
parent00f7389d50d794dbc15c8c52ff76699e04db2b75 (diff)
downloadfreebsd-ports-gnome-81c04604da51829086e87b6993affbad24e02d4f.tar.gz
freebsd-ports-gnome-81c04604da51829086e87b6993affbad24e02d4f.tar.zst
freebsd-ports-gnome-81c04604da51829086e87b6993affbad24e02d4f.zip
new port for mpexpr
Mpexpr adds two new commands to Tcl, 'mpexpr' and 'mpformat'. Mpexpr works much like Tcl's native 'expr', but does all calculations using an arbitrary precision math package. Mpexpr numbers can be any number of digits, with any decimal precision. Final precision is controlled by a Tcl variable 'mp_precision', which can be any reasonable integer, limiting only the number of digits to the right of the decimal point. PR: ports/48764 Submitted by: chein@GeekDude.com <chein@GeekDude.Com>
Diffstat (limited to 'math/mpexpr/files')
-rw-r--r--math/mpexpr/files/patch-aa51
-rw-r--r--math/mpexpr/files/patch-ab100
2 files changed, 151 insertions, 0 deletions
diff --git a/math/mpexpr/files/patch-aa b/math/mpexpr/files/patch-aa
new file mode 100644
index 000000000000..e1cf4af6ded2
--- /dev/null
+++ b/math/mpexpr/files/patch-aa
@@ -0,0 +1,51 @@
+*** configure.orig Fri Dec 4 16:04:23 1998
+--- configure Fri May 11 17:31:55 2001
+***************
+*** 21,26 ****
+--- 21,28 ----
+ # Initialize some variables set by options.
+ # The variables have the same names as the options, with
+ # dashes changed to underlines.
++ TCL_EXEC=tclsh8.3
++ WISH_EXEC=wish8.3
+ build=NONE
+ cache_file=./config.cache
+ exec_prefix=NONE
+***************
+*** 704,711 ****
+
+ # find include/tcl.h
+ for f in $prefix_locations ; do
+! if test -r "$f/include/tcl.h"; then
+! TCL_INC_DIR=$f/include
+ echo "$ac_t""setting TCL_INC_DIR to $TCL_INC_DIR" 1>&6
+ break
+ fi
+--- 706,713 ----
+
+ # find include/tcl.h
+ for f in $prefix_locations ; do
+! if test -r "$f/include/tcl8.3/tcl.h"; then
+! TCL_INC_DIR=$f/include/tcl8.3
+ echo "$ac_t""setting TCL_INC_DIR to $TCL_INC_DIR" 1>&6
+ break
+ fi
+***************
+*** 713,720 ****
+
+ # find lib/tclConfig.sh
+ for f in $exec_prefix_locations ; do
+! if test -r "$f/lib/tclConfig.sh"; then
+! TCL_LIB_DIR=$f/lib
+ echo "$ac_t""setting TCL_LIB_DIR to $TCL_LIB_DIR" 1>&6
+ break
+ fi
+--- 715,722 ----
+
+ # find lib/tclConfig.sh
+ for f in $exec_prefix_locations ; do
+! if test -r "$f/lib/tcl8.3/tclConfig.sh"; then
+! TCL_LIB_DIR=$f/lib/tcl8.3
+ echo "$ac_t""setting TCL_LIB_DIR to $TCL_LIB_DIR" 1>&6
+ break
+ fi
diff --git a/math/mpexpr/files/patch-ab b/math/mpexpr/files/patch-ab
new file mode 100644
index 000000000000..632f872ecc8e
--- /dev/null
+++ b/math/mpexpr/files/patch-ab
@@ -0,0 +1,100 @@
+*** Makefile.in.orig Fri Dec 4 16:04:23 1998
+--- Makefile.in Thu Feb 27 18:37:45 2003
+***************
+*** 83,95 ****
+ #------------------------------------------------------------------------------
+ # define names for Mpexpr tclsh/tcl executable
+
+! TCL_EXEC = tclsh
+ TCLX_EXEC = tcl
+
+ #------------------------------------------------------------------------------
+ # define name for Mpexpr wish/wishx executable
+
+! WISH_EXEC = wish
+ WISHX_EXEC = wishx
+
+ #------------------------------------------------------------------------------
+--- 83,95 ----
+ #------------------------------------------------------------------------------
+ # define names for Mpexpr tclsh/tcl executable
+
+! TCL_EXEC = tclsh8.3
+ TCLX_EXEC = tcl
+
+ #------------------------------------------------------------------------------
+ # define name for Mpexpr wish/wishx executable
+
+! WISH_EXEC = wish8.3
+ WISHX_EXEC = wishx
+
+ #------------------------------------------------------------------------------
+***************
+*** 210,226 ****
+ # a make clobber and try LITTLE_ENDIAN. If that fails, ask a wizard
+ # for help.
+ #
+! BYTE_ORDER=
+ #BYTE_ORDER= BIG_ENDIAN
+! #BYTE_ORDER= LITTLE_ENDIAN
+
+ # Determine the number of bits in a long
+ #
+ # If in doubt, leave LONG_BITS empty. This makefile will run
+ # the longbits program to determine the length.
+ #
+! LONG_BITS=
+! #LONG_BITS= 32
+ #LONG_BITS= 64
+
+
+--- 210,226 ----
+ # a make clobber and try LITTLE_ENDIAN. If that fails, ask a wizard
+ # for help.
+ #
+! #BYTE_ORDER=
+ #BYTE_ORDER= BIG_ENDIAN
+! BYTE_ORDER= LITTLE_ENDIAN
+
+ # Determine the number of bits in a long
+ #
+ # If in doubt, leave LONG_BITS empty. This makefile will run
+ # the longbits program to determine the length.
+ #
+! #LONG_BITS=
+! LONG_BITS= 32
+ #LONG_BITS= 64
+
+
+***************
+*** 473,486 ****
+ #------------------------------------------------------------------------------
+ # install targets
+
+! install: @INSTALL_TARGET@ install-man install-tools
+
+ install-shared: $(LIB_SH_MPEXPR)
+ @echo installing $(LIB_SH_MPEXPR)
+ $(INSTALL_PROGRAM) $(LIB_SH_MPEXPR) $(LIB_DIR)/$(LIB_SH_MPEXPR)
+ @echo installing pkgIndex.tcl
+ -mkdir $(LIB_DIR)/Mpexpr$(MPEXPR_LIBVER)
+! $(INSTALL_PROGRAM) pkgIndex.tcl $(LIB_DIR)/Mpexpr$(MPEXPR_LIBVER)/pkgIndex.tcl
+
+ install-static: @PROGS@ $(LIB_MPEXPR)
+ @for f in $(T_EXEC) $(W_EXEC) ; do \
+--- 473,487 ----
+ #------------------------------------------------------------------------------
+ # install targets
+
+! #install: @INSTALL_TARGET@ install-man install-tools
+! install: @INSTALL_TARGET@ install-man
+
+ install-shared: $(LIB_SH_MPEXPR)
+ @echo installing $(LIB_SH_MPEXPR)
+ $(INSTALL_PROGRAM) $(LIB_SH_MPEXPR) $(LIB_DIR)/$(LIB_SH_MPEXPR)
+ @echo installing pkgIndex.tcl
+ -mkdir $(LIB_DIR)/Mpexpr$(MPEXPR_LIBVER)
+! $(INSTALL_DATA) pkgIndex.tcl $(LIB_DIR)/Mpexpr$(MPEXPR_LIBVER)/pkgIndex.tcl
+
+ install-static: @PROGS@ $(LIB_MPEXPR)
+ @for f in $(T_EXEC) $(W_EXEC) ; do \