import FreeMat 2.0

FreeMat is a free environment for rapid engineering and scientific
prototyping and data processing. It is similar to commercial systems
such as MATLAB from Mathworks, and IDL from Research Systems, but is
Open Source. FreeMat includes several novel features such as a codeless
interface to external C/C++/FORTRAN code, parallel/distributed
algorithm development (via MPI), and plotting and visualization
capabilities.
This commit is contained in:
steven 2006-10-28 19:53:04 +00:00
parent 6dcd897f59
commit 962f82cedc
23 changed files with 1594 additions and 0 deletions

50
math/freemat/Makefile Normal file
View File

@ -0,0 +1,50 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/10/28 19:53:04 steven Exp $
COMMENT= "environment for rapid engineering and scientific processing"
VERSION= 2.0
DISTNAME= FreeMat-${VERSION}
PKGNAME= freemat-${VERSION}
CATEGORIES= math
HOMEPAGE= http://freemat.sourceforge.net/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= GL GLU ICE SM X11 Xcursor Xext Xfixes Xi Xinerama Xrandr \
Xrender c curses fontconfig freetype g2c glib-2.0 \
m png pthread stdc++ z amd
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freemat/}
MODULES= x11/qt4 devel/gettext
BUILD_DEPENDS= ::devel/pkgconfig
LIB_DEPENDS= avcall::devel/ffcall \
arpack.>=1::math/arpack \
blas.>=1::math/blas \
fftw3.>=4::math/fftw3,double \
fftw3f.>=4::math/fftw3,float \
lapack.>=1::math/lapack \
matio::math/matio \
umfpack::math/umfpack
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= F77=${FC} \
CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/amd -I${LOCALBASE}/include/umfpack -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
PKG_CONFIG_LIBDIR="${LOCALBASE}/lib/qt4"
MAKE_FLAGS= MYDEFS="-DBASEPATH=\\\"../share/${DISTNAME}\\\""
post-install:
@rm -f ${PREFIX}/share/${DISTNAME}/mfiles
@cd ${PREFIX}/share/${DISTNAME} && ln -sf help/MFiles mfiles
@cd ${PREFIX}/bin && mv FreeMat freemat
.include <bsd.port.mk>

4
math/freemat/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (FreeMat-2.0.tar.gz) = 9325893a4babe0b4912c475afd9729e6
RMD160 (FreeMat-2.0.tar.gz) = 16a4e72a72cce9c7eae26b944fa904ac0b4c05c1
SHA1 (FreeMat-2.0.tar.gz) = d56540137c67215c3466366d7e37962f52003023
SIZE (FreeMat-2.0.tar.gz) = 16338697

View File

@ -0,0 +1,32 @@
$OpenBSD: patch-configure,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- configure.orig Tue Jun 6 03:29:51 2006
+++ configure Thu Oct 19 11:44:29 2006
@@ -4887,8 +4887,8 @@ esac
eval $_lcl_result_var='$_lcl_result_tmp'
done
-CPPFLAGS="$CPPFLAGS -I$cdir/extern/Root/include -DBASEPATH=\\\"$bin_to_data/FreeMat-$VERSION\\\""
-FOO=`echo $QT_LIBS | sed -e 's/-L/-Wl,-rpath,/g' | sed -e 's/-l\w*//g'`
+CPPFLAGS="$CPPFLAGS -I$cdir/extern/Root/include"
+FOO=`echo $QT_LIBS`
{ echo "$as_me:$LINENO: Extra lib flags added $FOO" >&5
echo "$as_me: Extra lib flags added $FOO" >&6;}
LDFLAGS="$LDFLAGS -L$cdir/extern/Root/lib $FOO"
@@ -5476,7 +5476,7 @@ if test "${ac_cv_lib_umfpack_umfpack_zl_
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lumfpack $LIBS"
+LIBS="-lumfpack -lblas $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -5541,7 +5541,7 @@ else
fi
if test x"$found_umfpack" == xyes; then
- LIBS="-lumfpack $LIBS"
+ LIBS="-lumfpack -lblas $LIBS"
fi
echo "$as_me:$LINENO: checking for fftwf_malloc in -lfftw3f" >&5
echo $ECHO_N "checking for fftwf_malloc in -lfftw3f... $ECHO_C" >&6

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libCore_Directory_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libCore/Directory.cpp.orig Thu Oct 19 14:33:10 2006
+++ libs/libCore/Directory.cpp Thu Oct 19 14:33:19 2006
@@ -238,7 +238,7 @@ namespace FreeMat {
//@>
//!
ArrayVector PrintWorkingDirectoryFunction(int nargout, const ArrayVector& arg) {
- char buffer[1000];
+ char buffer[PATH_MAX];
getcwd(buffer,sizeof(buffer));
ArrayVector retval;
retval.push_back(Array::stringConstructor(buffer));

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-libs_libCore_IO_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libCore/IO.cpp.orig Mon May 29 22:24:21 2006
+++ libs/libCore/IO.cpp Thu Oct 19 14:13:39 2006
@@ -31,6 +31,13 @@
#include "matio.h"
#include "Sparse.hpp"
+/* expecting an earlier version of matio, which includes these
+ prototypes in matio.h */
+EXTERN int mat_snprintf(char *str,size_t count,const char *fmt,...);
+EXTERN int mat_asprintf(char **ptr,const char *format, ...);
+EXTERN int mat_vsnprintf(char *str,size_t count,const char *fmt,va_list args);
+EXTERN int mat_vasprintf(char **ptr,const char *format,va_list ap);
+
namespace FreeMat {
class FilePtr {
public:
@@ -2189,7 +2196,7 @@ namespace FreeMat {
Mat_LogInit("dummy");
mat_t *mat = Mat_Open(fname, MAT_ACC_RDONLY);
if (!mat) {
- mat = Mat_Open(fname, MAT_ACC_RDONLY | MAT_V4);
+ mat = Mat_Open(fname, MAT_ACC_RDONLY | MAT_FT_MAT4);
}
if (mat) {
matvar_t *matvar;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libCore_Inspect_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libCore/Inspect.cpp.orig Tue Jun 6 01:31:17 2006
+++ libs/libCore/Inspect.cpp Sat Oct 21 18:17:34 2006
@@ -149,7 +149,7 @@ namespace FreeMat {
if (inBundleMode()) {
dir = QDir(QString(io->getAppPath().c_str()) + "/../Resources/help/html");
} else {
- dir = QDir(QString(BASEPATH)+"/html");
+ dir = QDir(QApplication::applicationDirPath()+"/"+QString(BASEPATH)+"/help/html");
}
HelpWindow *m_helpwin = new HelpWindow(dir.canonicalPath());
m_helpwin->show();

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libCore_Makefile_in,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libCore/Makefile.in.orig Tue Jun 6 03:29:48 2006
+++ libs/libCore/Makefile.in Thu Oct 19 12:40:54 2006
@@ -66,7 +66,7 @@ DEFAULT_INCLUDES = -I. -I$(srcdir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+ $(AM_CPPFLAGS) $(MYDEFS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(CXX)
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
-o $@

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libCore_helpwidget_moc_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libCore/helpwidget.moc.cpp.orig Wed Oct 18 11:01:47 2006
+++ libs/libCore/helpwidget.moc.cpp Wed Oct 18 11:01:55 2006
@@ -7,7 +7,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../../../libs/libCore/helpwidget.hpp"
+#include "helpwidget.hpp"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'helpwidget.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libFreeMat_Module_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libFreeMat/Module.cpp.orig Thu Oct 19 14:16:02 2006
+++ libs/libFreeMat/Module.cpp Thu Oct 19 14:16:16 2006
@@ -366,7 +366,7 @@ namespace FreeMat {
"return type, argument list");
libfile = arg[0].getContentsAsCString();
libfullpath = psearch.ResolvePath(libfile);
- char buffer[1000];
+ char buffer[PATH_MAX];
// Prepend the current working directory... ugly, but necessary
#ifdef WIN32
_getcwd(buffer,sizeof(buffer));

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-libs_libFreeMat_WalkTree_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libFreeMat/WalkTree.cpp.orig Wed Oct 18 09:49:23 2006
+++ libs/libFreeMat/WalkTree.cpp Wed Oct 18 09:49:36 2006
@@ -21,6 +21,7 @@
#include <stack>
#include <math.h>
#include <stdio.h>
+#include <unistd.h>
#include "Exception.hpp"
#include "Math.hpp"
#include "Reserved.hpp"

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libGraphics_HandleAxis_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libGraphics/HandleAxis.cpp.orig Wed Oct 18 11:15:41 2006
+++ libs/libGraphics/HandleAxis.cpp Wed Oct 18 11:16:31 2006
@@ -28,6 +28,8 @@
#include "HandleCommands.hpp"
#include <qgl.h>
+#define log2(x) (log(x)/M_LN2)
+
// Property list & status
// activepositionproperty
// alim

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libXP_Editor_moc_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libXP/Editor.moc.cpp.orig Wed Oct 18 10:03:38 2006
+++ libs/libXP/Editor.moc.cpp Wed Oct 18 10:03:45 2006
@@ -7,7 +7,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../../../libs/libXP/Editor.hpp"
+#include "Editor.hpp"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'Editor.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libXP_FileTool_moc_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libXP/FileTool.moc.cpp.orig Wed Oct 18 10:06:37 2006
+++ libs/libXP/FileTool.moc.cpp Wed Oct 18 10:06:43 2006
@@ -7,7 +7,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../../../libs/libXP/FileTool.hpp"
+#include "FileTool.hpp"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'FileTool.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libXP_HistoryWidget_moc_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libXP/HistoryWidget.moc.cpp.orig Wed Oct 18 10:08:35 2006
+++ libs/libXP/HistoryWidget.moc.cpp Wed Oct 18 10:08:41 2006
@@ -7,7 +7,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../../../libs/libXP/HistoryWidget.hpp"
+#include "HistoryWidget.hpp"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'HistoryWidget.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libXP_KeyManager_moc_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libXP/KeyManager.moc.cpp.orig Wed Oct 18 10:01:50 2006
+++ libs/libXP/KeyManager.moc.cpp Wed Oct 18 10:02:02 2006
@@ -7,7 +7,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../../../libs/libXP/KeyManager.hpp"
+#include "KeyManager.hpp"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'KeyManager.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libXP_PathTool_moc_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libXP/PathTool.moc.cpp.orig Wed Oct 18 10:04:48 2006
+++ libs/libXP/PathTool.moc.cpp Wed Oct 18 10:04:55 2006
@@ -7,7 +7,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../../../libs/libXP/PathTool.hpp"
+#include "PathTool.hpp"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'PathTool.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libXP_QTTerm_moc_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libXP/QTTerm.moc.cpp.orig Wed Oct 18 10:02:59 2006
+++ libs/libXP/QTTerm.moc.cpp Wed Oct 18 10:03:08 2006
@@ -7,7 +7,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../../../libs/libXP/QTTerm.hpp"
+#include "QTTerm.hpp"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'QTTerm.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libXP_ToolDock_moc_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libXP/ToolDock.moc.cpp.orig Wed Oct 18 10:05:13 2006
+++ libs/libXP/ToolDock.moc.cpp Wed Oct 18 10:05:19 2006
@@ -7,7 +7,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../../../libs/libXP/ToolDock.hpp"
+#include "ToolDock.hpp"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'ToolDock.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libXP_VariablesTool_moc_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libXP/VariablesTool.moc.cpp.orig Wed Oct 18 10:05:30 2006
+++ libs/libXP/VariablesTool.moc.cpp Wed Oct 18 10:05:36 2006
@@ -7,7 +7,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../../../libs/libXP/VariablesTool.hpp"
+#include "VariablesTool.hpp"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'VariablesTool.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_libXP_highlighter_moc_cpp,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- libs/libXP/highlighter.moc.cpp.orig Wed Oct 18 10:05:47 2006
+++ libs/libXP/highlighter.moc.cpp Wed Oct 18 10:05:56 2006
@@ -7,7 +7,7 @@
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../../../libs/libXP/highlighter.hpp"
+#include "highlighter.hpp"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'highlighter.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2006/10/28 19:53:05 steven Exp $
--- src/Makefile.in.orig Tue Jun 6 03:29:49 2006
+++ src/Makefile.in Thu Oct 19 12:40:35 2006
@@ -79,7 +79,7 @@ DEFAULT_INCLUDES = -I. -I$(srcdir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+ $(AM_CPPFLAGS) $(MYDEFS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(CXX)
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
-o $@

7
math/freemat/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
FreeMat is a free environment for rapid engineering and scientific
prototyping and data processing. It is similar to commercial systems
such as MATLAB from Mathworks, and IDL from Research Systems, but is
Open Source. FreeMat includes several novel features such as a codeless
interface to external C/C++/FORTRAN code, parallel/distributed
algorithm development (via MPI), and plotting and visualization
capabilities.

1272
math/freemat/pkg/PLIST Normal file

File diff suppressed because it is too large Load Diff