debian/0000775000000000000000000000000012255201564007172 5ustar debian/rules0000775000000000000000000000236611750047004010255 0ustar #!/usr/bin/make -f BUILDDIR = $(CURDIR)/debian/build %: dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --parallel extra_flags = \ -DCMAKE_INSTALL_PREFIX=/usr \ -DRESOURCEDIR=/usr/share/freemat \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_FLAGS="-Wall $(shell dpkg-buildflags --get CFLAGS)" \ -DCMAKE_C_FLAGS_DEBUG="-Wall $(shell dpkg-buildflags --get CFLAGS)" \ -DCMAKE_C_FLAGS_RELEASE="-Wall $(shell dpkg-buildflags --get CFLAGS) -DNDEBUG" \ -DCMAKE_SKIP_RPATH=ON \ -DUSE_LLVM=OFF \ -DFORCE_BUNDLED_PCRE=OFF \ -DFORCE_BUNDLED_UMFPACK=OFF \ -DFORCE_BUNDLED_PORTAUDIO=OFF \ -DFORCE_BUNDLED_ZLIB=OFF \ -DFORCE_BUNDLED_AMD=OFF override_dh_auto_clean: dh_auto_clean dh_clean CMakeCache.txt dependencies/volpack-1.0c7/config.log dependencies/volpack-1.0c7/config.status debian/freemat.xpm find . -name '*.moc.cpp' -delete rm -rf $(BUILDDIR) override_dh_auto_configure: dh_auto_configure -- $(extra_flags) cp images/freemat-2.xpm debian/freemat.xpm override_dh_installchangelogs: dh_installchangelogs ChangeLog override_dh_install-arch: mv debian/tmp/usr/bin/FreeMat debian/tmp/usr/bin/freemat dh_install -a override_dh_build-indep: cd help/latex && rm FreeMat-4.0.pdf &&pdflatex FreeMat-4.0.tex && pdflatex FreeMat-4.0.tex debian/watch0000664000000000000000000000022611744062201010216 0ustar version=3 opts="filenamemangle=s/FreeMat/freemat/,dversionmangle=s/.dfsg//,uversionmangle=s/.Source//" \ http://sf.net/freemat/FreeMat-(.*)\.tar\.gz debian/freemat.10000664000000000000000000000351311744062201010674 0ustar .TH freemat 1 "June 28, 2007" .SH NAME freemat \- Mathematics Framework .SH SYNOPSIS .B freemat .SH DESCRIPTION This manual page documents briefly the .B freemat command. This manual page was written for the Debian distribution because the original program does not have a manual page. .PP \fBfreemat\fP 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 is available under the GPL license. .SH OPTIONS .B freemat follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-f Runs freemat in command mode. freemat will startup, run the given command, and then quit. Note that this option uses the remainder of the command line, so use it last. .TP .B \-nogui Suppress the GUI for freemat. .TP .B \-noplastique Do not force the plastique style for GUI. .TP .B \-noX Disables the graphics subsystem. .TP .B \-e uses a dumb terminal interface (no command line editing, etc.) This flag is primarily used when you want to capture input/output to freemat from another application. .TP .B \-i Install freemat - provide the path to the freemat data directory (containing the scripts, help and other files.). Normally these are installed in /usr/share/freemat but regardless, you must run freemat \-i once to indicate the location of this directory. Note that in this mode, freemat will only update its internal configuration and then exit. .TP .B \-p .TP .B \-help Show summary of options. .SH AUTHOR freemat was written by Samit Basu .PP This manual page was written by Giuseppe Iuculano , for the Debian project (but may be used by others). debian/freemat-help.doc-base0000664000000000000000000000064511744062201013142 0ustar Document: freemat Title: freemat Documentation Author: Samit Basu Abstract: FreeMat is a free environment for rapid engineering and scientific prototyping and data processing. Section: Science/Mathematics Format: text Files: /usr/share/freemat/help/text/*.mdc Format: HTML Index: /usr/share/freemat/help/html/index.html Files: /usr/share/freemat/help/html/*.html Format: PDF Files: /usr/share/freemat/help/pdf/*.pdf debian/changelog0000664000000000000000000001412512255201560011043 0ustar freemat (4.0-5build1) trusty; urgency=medium * No-change rebuild for suitesparse transition. -- Logan Rosen Fri, 20 Dec 2013 21:56:31 -0500 freemat (4.0-5) unstable; urgency=critical * [960f60c] Fix installing a binaries during arch-build. (Closes: #671059) -- Anton Gladky Tue, 01 May 2012 22:55:00 +0200 freemat (4.0-4) unstable; urgency=low * [f13aab7] Fix typo in the .desktop file (Closes: #620152). Thanks: Andrea Carpineti * [67a26ec] [8492f95] Simplify debian/rules. * [3357d89] Use compat-level 9. * [c4d59b1] Use Standards-Version: 3.9.3. No changes. * [ede0939] Use DEP-5 for copyright file. * [a1ed7bf] Fix FTBFS against Qt 4.8. (Closes: #662708) * [285ed97] Add myself to uploaders. * [afad98d] Enable DM-Upload-Allowed flag. * [7e76544] Regenerate pdf during build. [ Sylvestre Ledru ] * Team upload (no upload for the last two years) -- Anton Gladky Thu, 19 Apr 2012 21:06:00 +0200 freemat (4.0-3) unstable; urgency=low * [8eea3c8] Added ${misc:Depends} in Depends * [5d89a81] Switch to dpkg-source 3.0 (quilt) format * [387779e] Remove *.moc.cpp files on clean, they don't work with current Qt and cause FTBFS. (Closes: #572821, #581280) - thanks to Ilya Barygin * [baaac84] Fix ftbfs with gcc-4.5 (Closes: #564988) * [7e3aab3] Bump Standards-Version, no changes needed -- Giuseppe Iuculano Fri, 04 Jun 2010 14:05:41 +0200 freemat (4.0-2) unstable; urgency=low * [abc05c0] Maintain freemat with the Debian Science team * [c41f178] Forced disable of llvm (Closes: #554618), force to use system lib (PCRE,UMFPACK,PORTAUDIO,ZLIB,AMD) * [4b908af] Add libvolpack1-dev in Build-depends -- Giuseppe Iuculano Wed, 09 Dec 2009 16:40:09 +0100 freemat (4.0-1) unstable; urgency=low * [0e4c370] Updated watch file * [546bcbb] Imported Upstream version 4.0 * [224721e] Updated my email address and removed DM-Upload-Allowed control field * [4d1e047] Updated to Standards-Version 3.8.3 (no changes needed) * [b3f2cac] Removed old patches no more needed * [fb6e2c0] Added cmake and llvm-dev in Build-Depends * [02aa598] Adjust debian/rules to use cmake * [f8c94c7] Rename FreeMat.conf to FreeMat v4.0.conf * [3dc2f7b] Move /etc/xdg/FreeMat/FreeMat.conf in /etc/xdg/FreeMat/FreeMat v4.0.conf without triggering a dpkg question -- Giuseppe Iuculano Thu, 15 Oct 2009 21:07:05 +0200 freemat (3.6+dfsg-8) unstable; urgency=low * [da4aa11] debian/patches/11_svn_fixes.patch: Backport some fixes from svn: + Fixed zooming in figures with axis image attribute set. + [f4dbd34] Don't change axis directions. + [479845b] removed trailing spaces when copy and paste from Command Window * [25184bb] debian/control: freemat package now depends on freemat-data (= ${source:Version}) * [6e1ad18] Bump to debhelper 7 compatibility levels * [7bbb9f2] debian/rules: Use dh_prep instead of dh_clean -k * [6bbf295] debian/control: Updated VCS control field -- Giuseppe Iuculano Tue, 03 Mar 2009 21:18:45 +0100 freemat (3.6+dfsg-7) unstable; urgency=low * [9d84234] debian/control: libarpack2-dev is missing in alpha, so build-depending on "libarpack2-dev [!alpha]" * [7c42d28] debian/copyright: use © symbol and fix new lintian warning -- Giuseppe Iuculano Fri, 09 Jan 2009 14:04:44 +0100 freemat (3.6+dfsg-6) unstable; urgency=low * [1666c43] debian/patches/06_fix_ftbfs_on_alpha.dpatch: Apply this patch to all archs * [f845eaa] Switch to quilt * [b7536af] debian/README.source: Updated with quilt info * [fb36291] debian/patches/09_warning.patch: ask in the warning if freemat-help was installed (Closes: #510115) * [fdd126d] debian/rules: rebuild main.pdf from source (Closes: #495747) * [2d9689e] debian/patches/10_pdf.patch: escape "_" and fix pdf build failure * [559ad18] debian/control: Added texlive in Build-Depends -- Giuseppe Iuculano Mon, 29 Dec 2008 23:34:55 +0100 freemat (3.6+dfsg-5) unstable; urgency=low * debian/control: Added Vcs-Git and Vcs-Browser control field * debian/control: libarpack2-dev is back, added again in Build-depends * debian/README.source: document dpatch usage, as required by Debian Policy since 3.8.0 -- Giuseppe Iuculano Thu, 04 Dec 2008 00:22:03 +0100 freemat (3.6+dfsg-4) unstable; urgency=low * debian/patches/06_fix_ftbfs_on_alpha.dpatch: Attempt to fix FTBFS on alpha * debian/control: Set DM-Upload-Allowed: yes control field * debian/patches/07_fix_FTBFS_with_GCC_4.4.dpatch: Fix FTBFS with GCC 4.4 (Closes: #505135) * debian/patches/08_fix_editor_freeze.dpatch: Fix freeze on editor closing, thanks to Chuong Nguyen (LP: #295093) * debian/FreeMat.conf: install a simple conf file to avoid the initial freemat -i command * debian/README.Debian: Removed. -- Giuseppe Iuculano Sat, 29 Nov 2008 11:36:25 +0100 freemat (3.6+dfsg-3) unstable; urgency=high * Removed libarpack2-dev from Build-Depends due to license issue, this disable Eigenvalues for Sparse Matrices functions. (Closes: #497723) -- Giuseppe Iuculano Wed, 03 Sep 2008 23:37:08 +0200 freemat (3.6+dfsg-2) unstable; urgency=low * debian/freemat.1: + Fix defualt freemat data path + Typo, remove a .TP before AUTHOR section. * Added a README.Debian to explain freemat -i /usr/share/freemat command * debian/patches/05_nostrip.dpatch: do not strip binaries * Added debian/freemat.desktop, and added dh_desktop in debian/rules * debian/copyright: Fixed some debian-copyright-line-too-long lintian warning * debian/control: move freemat-data from Recommends to Depends, freemat really needs it -- Giuseppe Iuculano Sat, 19 Jul 2008 11:24:52 +0200 freemat (3.6+dfsg-1) unstable; urgency=low * Initial release (Closes: #391887) -- Giuseppe Iuculano Fri, 27 Jun 2008 17:10:28 +0200 debian/compat0000664000000000000000000000000211744062201010363 0ustar 9 debian/freemat.desktop0000664000000000000000000000050111744062201012177 0ustar [Desktop Entry] Comment=A free environment for rapid engineering and scientific prototyping and data processing Exec=freemat GenericName=Scientific Software Package Icon=/usr/share/pixmaps/freemat/freemat.xpm Name=FreeMat StartupNotify=false Terminal=false Type=Application Categories=Education;Science;Math;Engineering; debian/README.source0000664000000000000000000000162211744062201011345 0ustar freemat ------- The source was downloaded from http://freemat.sourceforge.net/download.html and repackaged: wget http://switch.dl.sourceforge.net/sourceforge/freemat/FreeMat-3.6.tar.gz tar -xzf FreeMat-3.6.tar.gz rm FreeMat-3.6/libs/libFN/*.f mv FreeMat-3.6 freemat-3.6+dfsg.orig GZIP=--best tar -czf freemat_3.6+dfsg.orig.tar.gz freemat-3.6+dfsg.orig This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. See /usr/share/doc/quilt/README.source for a detailed explanation. ======================= The following lines were moved from copyright-file here. dpmpar.f, enorm.f, fdjac2.f, lmdif1.f, lmdif.f, lmpar.f, qrfac.f, qrsolv.f have been removed because of licence issues and because there is no good reason for two packages to distribute identical source code. ======================= debian/freemat.manpages0000664000000000000000000000002111744062201012316 0ustar debian/freemat.1 debian/freemat.menu0000664000000000000000000000025111744062201011474 0ustar ?package(freemat):needs="X11" section="Applications/Science/Mathematics"\ title="FreeMat" command="/usr/bin/freemat" \ icon="/usr/share/pixmaps/freemat/freemat.xpm" debian/copyright0000664000000000000000000001227611744062201011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: FreeMat Source: http://freemat.sourceforge.net/ Upstream-Contact: Samit Basu Files: * Copyright: 2008 Samit Basu License: GPL This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. Files: debian/* Copyright: 2008 Giuseppe Iuculano License: GPL On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. Files: dependencies/bin/fftw3.h Copyright: 2003, 2006 Matteo Frigo 2003, 2006 Massachusetts Institute of Technology License: MIT/X11 (BSD like) The following statement of license applies *only* to this header file, and *not* to the other files distributed with FFTW or derived therefrom: . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: libs/libCore/RanLib/RanLib.cpp Copyright: 1997 - 2002, Makoto Matsumoto and Takuji Nishimura License: MIT/X11 (BSD like) Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: libs/libCore/IO.cpp libs/libCore/Sparse.cpp Copyright: 2002-2006 Samit Basu 2006 Thomas Beutlich License: GPL On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. Files: libs/libCore/Cstruct.cpp Copyright: 2007 GE Global Research License: GPL On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. Files: toolbox/array/squeeze.m src/toolbox/array/squeeze.m Copyright: 2004-2005, 2006 Brian Yanoff, Dirk Beque License: GPL On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. Files: toolbox/array/rref.m src/toolbox/array/rref.m Copyright: 2000 Paul Kienzle License: GPL On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. debian/source/0000775000000000000000000000000011744062201010465 5ustar debian/source/format0000664000000000000000000000001411744062201011673 0ustar 3.0 (quilt) debian/freemat.preinst0000664000000000000000000000117711744062201012224 0ustar #!/bin/sh set -e # Prepare to move a conffile without triggering a dpkg question prep_mv_conffile() { local PKGNAME="$1" local CONFFILE="$2" [ -e "$CONFFILE" ] || return 0 local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')" local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | \ sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")" if [ "$md5sum" = "$old_md5sum" ]; then rm -f "$CONFFILE" fi } case "$1" in install|upgrade) if dpkg --compare-versions "$2" le "4.0-1"; then prep_mv_conffile freemat "/etc/xdg/FreeMat/FreeMat.conf" fi esac #DEBHELPER# debian/freemat-data.install0000664000000000000000000000007311744062201013107 0ustar debian/tmp/usr/share/FreeMat-4.0/toolbox usr/share/freemat debian/freemat.install0000664000000000000000000000022611744062201012200 0ustar usr/bin/freemat debian/freemat.desktop /usr/share/applications/ debian/FreeMat*.conf /etc/xdg/FreeMat/ debian/freemat.xpm /usr/share/pixmaps/freemat/ debian/freemat-help.install0000664000000000000000000000007011744062201013123 0ustar debian/tmp/usr/share/FreeMat-4.0/help usr/share/freemat debian/FreeMat v4.0.conf0000664000000000000000000000004211744062201012023 0ustar [General] root=/usr/share/freemat debian/freemat.postinst0000664000000000000000000000100711744062201012413 0ustar #!/bin/sh set -e # Move a conffile without triggering a dpkg question mv_conffile() { local OLDCONFFILE="$1" local NEWCONFFILE="$2" [ -e "$OLDCONFFILE" ] || return 0 echo "Preserving user changes to $NEWCONFFILE ..." mv -f "$NEWCONFFILE" "$NEWCONFFILE".dpkg-new mv -f "$OLDCONFFILE" "$NEWCONFFILE" } case "$1" in configure) if dpkg --compare-versions "$2" le "4.0-1"; then mv_conffile "/etc/xdg/FreeMat/FreeMat.conf" "/etc/xdg/FreeMat/FreeMat v4.0.conf" fi esac #DEBHELPER# debian/control0000664000000000000000000000427412255201562010602 0ustar Source: freemat Section: math Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Science Maintainers Uploaders: Giuseppe Iuculano , Anton Gladky Build-Depends: debhelper (>= 9), autotools-dev, autoconf, automake, gfortran, libpcre3-dev, libncurses5-dev, libfftw3-dev, libqt4-dev, libqt4-opengl-dev, libsuitesparse-dev, zlib1g-dev, portaudio19-dev, libglu1-mesa-dev, libffcall1-dev, minpack-dev, pkg-config, libarpack2-dev, cmake, libvolpack1-dev Build-Depends-Indep: texlive Build-Conflicts: libqt3-dev Standards-Version: 3.9.3 DM-Upload-Allowed: yes Homepage: http://freemat.sourceforge.net Vcs-Git: git://git.debian.org/debian-science/packages/freemat.git Vcs-Browser: http://git.debian.org/?p=debian-science/packages/freemat.git Package: freemat Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, freemat-data (= ${source:Version}) Recommends: freemat-help Description: mathematics framework (mostly matlab compatible) 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 is available under the GPL license. Package: freemat-data Architecture: all Depends: ${misc:Depends} Recommends: freemat Description: freemat data files 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 is available under the GPL license. . This package install freemat data files Package: freemat-help Architecture: all Depends: ${misc:Depends} Recommends: freemat Description: freemat help files 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 is available under the GPL license. . This package install freemat help files debian/patches/0000775000000000000000000000000011744062201010614 5ustar debian/patches/07_fix_FTBFS_with_GCC_4.4.patch0000664000000000000000000000050711744062201015753 0ustar Author: Giuseppe Iuculano Description: Fix FTBFS with GCC 4.4: missing #include (Closes: #505135) --- a/libs/libFreeMat/IEEEFP.cpp +++ b/libs/libFreeMat/IEEEFP.cpp @@ -17,6 +17,7 @@ * */ #include "IEEEFP.hpp" +#include static bool endianDetected = false; static bool bigEndian = false; debian/patches/09_warning.patch0000664000000000000000000000342511744062201013616 0ustar ask in the warning if freemat-help was installed --- a/libs/libCore/helpwidget.cpp +++ b/libs/libCore/helpwidget.cpp @@ -148,7 +148,7 @@ HelpWidget::HelpWidget(QString url, Help // Populate the list widget QFile *file = new QFile(url + "/modules.txt"); if (!file->open(QFile::ReadOnly | QIODevice::Text)) - QMessageBox::warning(this,"Cannot Find Module List","The file modules.txt is missing from the directory "+url+" where I think help files should be. The Topic List widget will not function properly.",QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton); + QMessageBox::warning(this,"Cannot Find Module List","The file modules.txt is missing from the directory "+url+" where I think help files should be (Have you installed freemat-help package?). The Topic List widget will not function properly.",QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton); else { QTextStream t(file); while (!t.atEnd()) { @@ -177,7 +177,7 @@ HelpWidget::HelpWidget(QString url, Help file = new QFile(url + "/sectable.txt"); QRegExp reg("\\+\\s*\\((\\b\\w+\\b)\\)\\s*(\\b.*)"); if (!file->open(QFile::ReadOnly | QIODevice::Text)) - QMessageBox::warning(this,"Cannot Find Section Index","The file sectable.txt is missing from the directory "+url+" where I think help files should be. The Index widget will not function properly.",QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton); + QMessageBox::warning(this,"Cannot Find Section Index","The file sectable.txt is missing from the directory "+url+" where I think help files should be (Have you installed freemat-help package?). The Index widget will not function properly.",QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton); else { QTextStream t(file); QTreeWidgetItem *prev = NULL; debian/patches/gcc4.5.patch0000664000000000000000000002166411744062201012631 0ustar Fix FTBFS with gcc4.5 --- a/libs/libFreeMat/Array.cpp +++ b/libs/libFreeMat/Array.cpp @@ -465,7 +465,7 @@ void Array::resize(index_t size) { void Array::set(const QString& field, ArrayVector& data) { if (isEmpty() && m_type.Class != Struct) - *this = Array::Array(Struct); + *this = Array(Struct); if (m_type.Class != Struct) throw Exception("Unsupported type for A.field=B"); StructArray &rp(structPtr()); if (isEmpty()) --- a/libs/libFreeMat/Math.cpp +++ b/libs/libFreeMat/Math.cpp @@ -1590,9 +1590,9 @@ static bool notfunc(bool t) { Array Not(const Array& A) { if (A.isScalar()) - return Array::Array(!A.toClass(Bool).constRealScalar()); + return Array(!A.toClass(Bool).constRealScalar()); const Array &Abool(A.toClass(Bool)); - return Array::Array(Apply(Abool.constReal(),notfunc)); + return Array(Apply(Abool.constReal(),notfunc)); } Array Plus(const Array& A) { --- a/libs/libFreeMat/Operators.hpp +++ b/libs/libFreeMat/Operators.hpp @@ -142,11 +142,11 @@ Array DotOp(const Array &Ain, const Arra if (!Bcast.isScalar()) Bcast = Bcast.asDenseArray(); if (Acast.isScalar() && Bcast.isScalar()) { if (Acast.allReal() && Bcast.allReal()) { - F = Array::Array(Op::func(Acast.constRealScalar(), + F = Array(Op::func(Acast.constRealScalar(), Bcast.constRealScalar())); } else { Acast.forceComplex(); Bcast.forceComplex(); - F = Array::Array(T(0),T(0)); + F = Array(T(0),T(0)); Op::func(Acast.constRealScalar(), Acast.constImagScalar(), Bcast.constRealScalar(), @@ -155,7 +155,7 @@ Array DotOp(const Array &Ain, const Arra } } else if (Acast.isScalar()) { if (Acast.allReal() && Bcast.allReal()) { - F = Array::Array(Tclass,Bcast.dimensions()); + F = Array(Tclass,Bcast.dimensions()); T* ret = F.real().data(); const T& Ap = Acast.constRealScalar(); const T* Bp = Bcast.constReal().constData(); @@ -163,7 +163,7 @@ Array DotOp(const Array &Ain, const Arra for (uint64 i=0;i().data(); T* Ci = F.imag().data(); const T& Ar = Acast.constRealScalar(); @@ -175,7 +175,7 @@ Array DotOp(const Array &Ain, const Arra } } else if (Bcast.isScalar()) { if (Bcast.allReal() && Acast.allReal()) { - F = Array::Array(Tclass,Acast.dimensions()); + F = Array(Tclass,Acast.dimensions()); T* ret = F.real().data(); const T* Ap = Acast.constReal().constData(); const T& Bp = Bcast.constRealScalar(); @@ -183,7 +183,7 @@ Array DotOp(const Array &Ain, const Arra for (uint64 i=0;i().data(); T* Ci = F.imag().data(); const T* Ar = Acast.constReal().constData(); @@ -197,7 +197,7 @@ Array DotOp(const Array &Ain, const Arra if (Acast.dimensions() != Bcast.dimensions()) throw Exception("size mismatch in arguments to binary operator"); if (Bcast.allReal() && Acast.allReal()) { - F = Array::Array(Tclass,Acast.dimensions()); + F = Array(Tclass,Acast.dimensions()); T* ret = F.real().data(); const T* Ap = Acast.constReal().constData(); const T* Bp = Bcast.constReal().constData(); @@ -205,7 +205,7 @@ Array DotOp(const Array &Ain, const Arra for (uint64 i=0;i().data(); T* Ci = F.imag().data(); const T* Ar = Acast.constReal().constData(); @@ -328,17 +328,17 @@ static inline Array CmpOp(const Array &A if (!Acast.isScalar()) Acast = Acast.asDenseArray(); if (!Bcast.isScalar()) Bcast = Bcast.asDenseArray(); if (Acast.isScalar() && Bcast.isScalar()) { - F = Array::Array(Op::func(Acast.constRealScalar(), + F = Array(Op::func(Acast.constRealScalar(), Bcast.constRealScalar())); } else if (Acast.isScalar()) { - F = Array::Array(Bool,Bcast.dimensions()); + F = Array(Bool,Bcast.dimensions()); bool* ret = F.real().data(); const T& Ap = Acast.constRealScalar(); const T* Bp = Bcast.constReal().constData(); uint64 q = uint64(Bcast.length()); for (uint64 i=0;i().data(); const T* Ap = Acast.constReal().constData(); const T& Bp = Bcast.constRealScalar(); @@ -347,7 +347,7 @@ static inline Array CmpOp(const Array &A } else { if (Acast.dimensions() != Bcast.dimensions()) throw Exception("size mismatch in arguments to binary operator"); - F = Array::Array(Bool,Acast.dimensions()); + F = Array(Bool,Acast.dimensions()); bool* ret = F.real().data(); const T* Ap = Acast.constReal().constData(); const T* Bp = Bcast.constReal().constData(); @@ -395,18 +395,18 @@ static inline Array EqOp(const Array &Ai if (!Bcast.isScalar()) Bcast = Bcast.asDenseArray(); if (Acast.isScalar() && Bcast.isScalar()) { if (Acast.allReal() && Bcast.allReal()) { - F = Array::Array(Op::func(Acast.constRealScalar(), + F = Array(Op::func(Acast.constRealScalar(), Bcast.constRealScalar())); } else { Acast.forceComplex(); Bcast.forceComplex(); - F = Array::Array(Op::func(Acast.constRealScalar(), + F = Array(Op::func(Acast.constRealScalar(), Acast.constImagScalar(), Bcast.constRealScalar(), Bcast.constImagScalar())); } } else if (Acast.isScalar()) { if (Acast.allReal() && Bcast.allReal()) { - F = Array::Array(Bool,Bcast.dimensions()); + F = Array(Bool,Bcast.dimensions()); bool* ret = F.real().data(); const T& Ap = Acast.constRealScalar(); const T* Bp = Bcast.constReal().constData(); @@ -414,7 +414,7 @@ static inline Array EqOp(const Array &Ai for (uint64 i=0;i().data(); const T& Ar = Acast.constRealScalar(); const T& Ai = Acast.constImagScalar(); @@ -425,7 +425,7 @@ static inline Array EqOp(const Array &Ai } } else if (Bcast.isScalar()) { if (Bcast.allReal() && Acast.allReal()) { - F = Array::Array(Bool,Acast.dimensions()); + F = Array(Bool,Acast.dimensions()); bool* ret = F.real().data(); const T* Ap = Acast.constReal().constData(); const T& Bp = Bcast.constRealScalar(); @@ -433,7 +433,7 @@ static inline Array EqOp(const Array &Ai for (uint64 i=0;i().data(); const T* Ar = Acast.constReal().constData(); const T* Ai = Acast.constImag().constData(); @@ -446,7 +446,7 @@ static inline Array EqOp(const Array &Ai if (Acast.dimensions() != Bcast.dimensions()) throw Exception("size mismatch in arguments to binary operator"); if (Bcast.allReal() && Acast.allReal()) { - F = Array::Array(Bool,Acast.dimensions()); + F = Array(Bool,Acast.dimensions()); bool* ret = F.real().data(); const T* Ap = Acast.constReal().constData(); const T* Bp = Bcast.constReal().constData(); @@ -454,7 +454,7 @@ static inline Array EqOp(const Array &Ai for (uint64 i=0;i().data(); const T* Ar = Acast.constReal().constData(); const T* Ai = Acast.constImag().constData(); @@ -533,9 +533,9 @@ static inline Array UnaryOp(const Array if (!Acast.isScalar()) Acast = Acast.asDenseArray(); if (Acast.isScalar()) { if (Acast.allReal()) { - F = Array::Array(Op::func(Acast.constRealScalar())); + F = Array(Op::func(Acast.constRealScalar())); } else { - F = Array::Array(T(0),T(0)); + F = Array(T(0),T(0)); Op::func(Acast.constRealScalar(), Acast.constImagScalar(), F.realScalar(),F.imagScalar()); debian/patches/series0000664000000000000000000000016611744062201012034 0ustar 01_gcc_includes.patch 07_fix_FTBFS_with_GCC_4.4.patch 09_warning.patch 10_llvm.patch gcc4.5.patch 11_ftbfs_qt48.patch debian/patches/01_gcc_includes.patch0000664000000000000000000001771711744062201014574 0ustar Author: Giuseppe Iuculano Description: Includes and gcc-4.3 fixes, taken from http://sourceforge.net/tracker/index.php?func=detail&aid=1968128&group_id=91526&atid=597448 --- a/libs/libCore/Directory.cpp +++ b/libs/libCore/Directory.cpp @@ -20,7 +20,7 @@ #include "Array.hpp" #include "Interpreter.hpp" #include "Utils.hpp" -#include +#include #include "System.hpp" #include #include "Algorithms.hpp" --- a/libs/libCore/RanLib.cpp +++ b/libs/libCore/RanLib.cpp @@ -18,11 +18,9 @@ */ #include "Exception.hpp" -#include -#include -#include +#include +#include #include -#include #include "RanLib.hpp" /* @@ -68,7 +66,6 @@ email: matumoto@math.keio.ac.jp */ -#include /* Period parameters */ #define N 624 --- a/libs/libCore/Random.cpp +++ b/libs/libCore/Random.cpp @@ -19,7 +19,7 @@ #include "Exception.hpp" #include -#include +#include #include "RanLib.hpp" #include "Operators.hpp" #include "Utils.hpp" --- a/libs/libFreeMat/Context.hpp +++ b/libs/libFreeMat/Context.hpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include "DebugStream.hpp" /** --- a/libs/libFreeMat/EigenDecompose.cpp +++ b/libs/libFreeMat/EigenDecompose.cpp @@ -19,8 +19,8 @@ #include "EigenDecompose.hpp" #include "LAPACK.hpp" -#include -#include +#include +#include #include "MemPtr.hpp" #include "Complex.hpp" #include "Math.hpp" --- a/libs/libFreeMat/Exception.cpp +++ b/libs/libFreeMat/Exception.cpp @@ -17,9 +17,9 @@ * */ -#include -#include -#include +#include +#include +#include #include #include "Exception.hpp" #include "Interpreter.hpp" --- a/libs/libFreeMat/File.hpp +++ b/libs/libFreeMat/File.hpp @@ -19,7 +19,7 @@ #ifndef __File_hpp__ #define __File_hpp__ -#include +#include #include "Stream.hpp" #include --- a/libs/libFreeMat/FunctionDef.cpp +++ b/libs/libFreeMat/FunctionDef.cpp @@ -22,7 +22,7 @@ #include "Parser.hpp" #include "Exception.hpp" #include -#include +#include #include "SymbolTable.hpp" #include "Types.hpp" #include "MexInterface.hpp" --- a/libs/libFreeMat/Interpreter.cpp +++ b/libs/libFreeMat/Interpreter.cpp @@ -18,8 +18,8 @@ */ #include "Interpreter.hpp" -#include -#include +#include +#include #include "Exception.hpp" #include "Math.hpp" #include "Array.hpp" @@ -29,14 +29,14 @@ #include "Token.hpp" #include "Module.hpp" #include "File.hpp" -#include +#include #include "Class.hpp" #include "Print.hpp" #include "MemPtr.hpp" #include #include #include -#include +#include #include "JIT.hpp" #include "JITFunc.hpp" #include "JITInfo.hpp" --- a/libs/libFreeMat/LAPACK.hpp +++ b/libs/libFreeMat/LAPACK.hpp @@ -20,7 +20,7 @@ #ifndef __FMLAPACK_hpp__ #define __FMLAPACK_hpp__ -#include +#include // Lapack routines used are declared here extern "C" { --- a/libs/libFreeMat/LeastSquaresSolver.cpp +++ b/libs/libFreeMat/LeastSquaresSolver.cpp @@ -19,8 +19,8 @@ #include "LeastSquaresSolver.hpp" #include "LAPACK.hpp" -#include -#include +#include +#include #include "MemPtr.hpp" #include "Algorithms.hpp" --- a/libs/libFreeMat/LinearEqSolver.cpp +++ b/libs/libFreeMat/LinearEqSolver.cpp @@ -19,8 +19,8 @@ #include "LinearEqSolver.hpp" #include "LAPACK.hpp" -#include -#include +#include +#include #include #include "MemPtr.hpp" #include "SparseCCS.hpp" --- a/libs/libFreeMat/Malloc.cpp +++ b/libs/libFreeMat/Malloc.cpp @@ -19,9 +19,9 @@ #include "Malloc.hpp" #include "Exception.hpp" -#include -#include -#include +#include +#include +#include void* Malloc(int count) { void* ptr; --- a/libs/libFreeMat/Math.cpp +++ b/libs/libFreeMat/Math.cpp @@ -28,7 +28,7 @@ #include "SparseMatrix.hpp" #include "Complex.hpp" #include "Operators.hpp" -#include +#include #include "IEEEFP.hpp" template --- a/libs/libFreeMat/Print.hpp +++ b/libs/libFreeMat/Print.hpp @@ -23,8 +23,8 @@ #include #include #include -#include -#include +#include +#include #include "Array.hpp" class Interpreter; --- a/libs/libFreeMat/QRDecompose.cpp +++ b/libs/libFreeMat/QRDecompose.cpp @@ -19,8 +19,8 @@ #include "QRDecompose.hpp" #include "LAPACK.hpp" -#include -#include +#include +#include #include "Malloc.hpp" #define MIN(a,b) (((a) < (b)) ? (a) : (b)) --- a/libs/libFreeMat/Scanner.cpp +++ b/libs/libFreeMat/Scanner.cpp @@ -18,9 +18,10 @@ */ #include "Scanner.hpp" #include -#include -#include -#include +#include +#include +#include +#include #include "Exception.hpp" #include #include --- a/libs/libFreeMat/Scope.hpp +++ b/libs/libFreeMat/Scope.hpp @@ -24,6 +24,7 @@ * A Scope is a combination of a variable hashtable and a function hashtable. */ #include +#include #include #include #include --- a/libs/libFreeMat/Serialize.cpp +++ b/libs/libFreeMat/Serialize.cpp @@ -21,7 +21,7 @@ #include "Exception.hpp" #include "Algorithms.hpp" #include "Struct.hpp" -#include +#include #include "SparseCCS.hpp" #include --- a/libs/libFreeMat/Token.cpp +++ b/libs/libFreeMat/Token.cpp @@ -18,8 +18,8 @@ */ #include "Token.hpp" #include "Serialize.hpp" -#include -#include +#include +#include Token::Token(TokenValueType tok, unsigned pos, QString text) : m_tok(tok), m_pos(pos), m_text(text) { } --- a/libs/libGraphics/HandleCommands.cpp +++ b/libs/libGraphics/HandleCommands.cpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include "HandleLineSeries.hpp" #include "HandleObject.hpp" --- a/libs/libMex/mxArray.cpp +++ b/libs/libMex/mxArray.cpp @@ -17,8 +17,8 @@ * */ #include "mex.h" -#include -#include +#include +#include #include #include --- a/libs/libXP/System.cpp +++ b/libs/libXP/System.cpp @@ -18,7 +18,7 @@ */ #include "System.hpp" #include "Exception.hpp" -#include +#include #include #include #ifdef Q_OS_WIN32 --- a/src/DumbTerminal.cpp +++ b/src/DumbTerminal.cpp @@ -20,7 +20,7 @@ #include "DumbTerminal.hpp" #include #include -#include +#include #if !defined(_MSC_VER ) #include #else --- a/src/MainApp.cpp +++ b/src/MainApp.cpp @@ -51,7 +51,7 @@ static FMEditor *edit = NULL; #include #include #include -#include +#include #include #include --- a/src/Terminal.cpp +++ b/src/Terminal.cpp @@ -19,14 +19,14 @@ #include #include "Serialize.hpp" #include "Terminal.hpp" -#include +#include #if !defined(_MSC_VER ) #include #endif -#include -#include -#include +#include +#include +#include #ifdef Q_WS_X11 #include #include --- a/src/main.cpp +++ b/src/main.cpp @@ -25,9 +25,9 @@ #include #include #endif -#include -#include -#include +#include +#include +#include #include "MainApp.hpp" #include #include "Exception.hpp" debian/patches/10_llvm.patch0000664000000000000000000000245711744062201013117 0ustar Force llvm version to 2.6 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -281,7 +281,7 @@ IF( USE_LLVM ) ${LIB_LLVMScalarOpts} ${LIB_LLVMTransformUtils} ${LIB_LLVMipa} ${LIB_LLVMAnalysis} ${LIB_LLVMTarget} ${LIB_LLVMCore} ${LIB_LLVMSupport} ${LIB_LLVMSystem} CACHE STRING "LLVM Link Libraries" ) - set(LLVM_VERSION "2.5" CACHE STRING "LLVM Version found") + set(LLVM_VERSION "2.6" CACHE STRING "LLVM Version found") endif (LLVM_INCLUDE_DIR) else (MSVC) find_program(LLVM_CONFIG llvm-config) @@ -291,15 +291,15 @@ IF( USE_LLVM ) execute_process(COMMAND ${LLVM_CONFIG} --version OUTPUT_VARIABLE LLVM_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) separate_arguments(LLVM_LIBS) endif (MSVC) - if (NOT LLVM_VERSION STREQUAL "2.5") - message(FATAL_ERROR "LLVM version 2.5 required.") + if (NOT LLVM_VERSION STREQUAL "2.6") + message(FATAL_ERROR "LLVM version 2.6 required.") set(USE_LLVM FALSE) - else (NOT LLVM_VERSION STREQUAL "2.5") + else (NOT LLVM_VERSION STREQUAL "2.6") set(LLVM_FOUND TRUE) include_directories( ${LLVM_INCLUDE_DIR} ) add_definitions( -DHAVE_LLVM ) SET(OPTIONAL_LIBS ${OPTIONAL_LIBS} ${LLVM_LIBS}) - endif (NOT LLVM_VERSION STREQUAL "2.5") + endif (NOT LLVM_VERSION STREQUAL "2.6") ENDIF (USE_LLVM) debian/patches/11_ftbfs_qt48.patch0000664000000000000000000000072211744062201014123 0ustar Description: Include glu.h to fix build with qt4.8 Author: Andreas Moog Bug-Ubuntu: https://launchpad.net/bugs/935092 --- freemat-4.0.orig/libs/libGraphics/GLRenderEngine.cpp +++ freemat-4.0/libs/libGraphics/GLRenderEngine.cpp @@ -22,6 +22,7 @@ #include #include #include "IEEEFP.hpp" +#include GLRenderEngine::GLRenderEngine(QGLWidget *widget, double x1, double y1, double width, double height) {