From 33ea2cdeef3143853c9054023a7559f896421aa2 Mon Sep 17 00:00:00 2001 From: martynas Date: Sun, 22 Apr 2007 14:43:41 +0000 Subject: [PATCH] 3.2 is a re-release of 3.1 with my RESOURCEDIR diff also, add patch-libs_libCore_IO_cpp (which was ok steven@ some time ago) if you are using freemat3 on amd64 make sure you've got the latest current with floorf() fix --- math/freemat/Makefile | 5 ++--- math/freemat/distinfo | 10 +++++----- math/freemat/patches/patch-libs_libCore_IO_cpp | 12 ++++++++++++ 3 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 math/freemat/patches/patch-libs_libCore_IO_cpp diff --git a/math/freemat/Makefile b/math/freemat/Makefile index f43258456c6..632869eb449 100644 --- a/math/freemat/Makefile +++ b/math/freemat/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.8 2007/04/20 19:11:51 martynas Exp $ +# $OpenBSD: Makefile,v 1.9 2007/04/22 14:43:41 martynas Exp $ COMMENT= "environment for rapid engineering and scientific processing" -V= 3.1 +V= 3.2 DISTNAME= FreeMat-${V} PKGNAME= freemat-${V} @@ -43,7 +43,6 @@ 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= resourcedir="${LOCALBASE}/share/FreeMat-${V}" SUBST_VARS= V diff --git a/math/freemat/distinfo b/math/freemat/distinfo index 3951cd7837e..c4c2114b2f3 100644 --- a/math/freemat/distinfo +++ b/math/freemat/distinfo @@ -1,5 +1,5 @@ -MD5 (FreeMat-3.1.tar.gz) = 0ZUFb6s39nbrzylXo62Crg== -RMD160 (FreeMat-3.1.tar.gz) = d+P6qA3kc8lbs3MqqJ5ympl1OhA= -SHA1 (FreeMat-3.1.tar.gz) = dO0HLKlc722iwhnpDnN/pyLtzjY= -SHA256 (FreeMat-3.1.tar.gz) = klmZ/uiYg58E8tTenhLDVmsw5ExI/KBjnkKzgKTthgg= -SIZE (FreeMat-3.1.tar.gz) = 5264616 +MD5 (FreeMat-3.2.tar.gz) = Ycmc5W/MJEpBCLJrPsttmw== +RMD160 (FreeMat-3.2.tar.gz) = XHAxrYpOpJwPXxtujLKuWAlOTB4= +SHA1 (FreeMat-3.2.tar.gz) = abrhoIA00GJNL7C/92o2RP0lYyg= +SHA256 (FreeMat-3.2.tar.gz) = WUlscnXXBBSfLxlYTGPwq/ONSLGhQ7NmXkVT0b2B5UU= +SIZE (FreeMat-3.2.tar.gz) = 5265284 diff --git a/math/freemat/patches/patch-libs_libCore_IO_cpp b/math/freemat/patches/patch-libs_libCore_IO_cpp new file mode 100644 index 00000000000..b9d3ad7ea2c --- /dev/null +++ b/math/freemat/patches/patch-libs_libCore_IO_cpp @@ -0,0 +1,12 @@ +$OpenBSD: patch-libs_libCore_IO_cpp,v 1.3 2007/04/22 14:43:41 martynas Exp $ +--- libs/libCore/IO.cpp.orig Fri Apr 13 23:07:45 2007 ++++ libs/libCore/IO.cpp Mon Apr 16 11:06:00 2007 +@@ -509,7 +509,7 @@ ArrayVector FreadFunction(int nargout, const ArrayVect + fseek(fptr->fp,0L,SEEK_END); + fsize = ftell(fptr->fp) - fcpos; + fseek(fptr->fp,fcpos,SEEK_SET); +- dp[infiniteDim] = ceil((float)(fsize/elementSize/elementCount)); ++ dp[infiniteDim] = ceil((double)(fsize/elementSize/elementCount)); + elementCount *= (int) dp[infiniteDim]; + } + // Next, we allocate space for the result