diff --git a/math/freemat/Makefile b/math/freemat/Makefile index fa99a3e0d29..ba06bb9d741 100644 --- a/math/freemat/Makefile +++ b/math/freemat/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.6 2007/03/24 14:14:50 martynas Exp $ +# $OpenBSD: Makefile,v 1.7 2007/03/27 20:12:59 martynas Exp $ COMMENT= "environment for rapid engineering and scientific processing" V= 3.0 DISTNAME= FreeMat-${V} -PKGNAME= freemat-${V} +PKGNAME= freemat-${V}p0 CATEGORIES= graphics math diff --git a/math/freemat/patches/patch-libs_libFreeMat_Print_cpp b/math/freemat/patches/patch-libs_libFreeMat_Print_cpp index 1d9223e4f8c..07c91d80153 100644 --- a/math/freemat/patches/patch-libs_libFreeMat_Print_cpp +++ b/math/freemat/patches/patch-libs_libFreeMat_Print_cpp @@ -1,7 +1,25 @@ -$OpenBSD: patch-libs_libFreeMat_Print_cpp,v 1.1 2007/03/24 14:14:50 martynas Exp $ +$OpenBSD: patch-libs_libFreeMat_Print_cpp,v 1.2 2007/03/27 20:12:59 martynas Exp $ --- libs/libFreeMat/Print.cpp.orig Tue Jan 2 00:31:44 2007 -+++ libs/libFreeMat/Print.cpp Sat Mar 24 15:46:48 2007 -@@ -417,7 +417,7 @@ void PrintSheet(ArrayFormat format, Interpreter*io, in ++++ libs/libFreeMat/Print.cpp Tue Mar 27 18:03:27 2007 +@@ -27,7 +27,7 @@ int GetNominalWidthInteger(const T*array, int count) { + int maxdigit = 0; + for (int i=0;i=maxdigit) + j++; +@@ -39,7 +39,7 @@ int GetNominalWidthInteger(const T*array, int count) { + template + void PrintIntegers(const T*array, int count, int width) { + for (int i=0;i +@@ -417,12 +417,12 @@ void PrintSheet(ArrayFormat format, Interpreter*io, in // the terminal width int colsPerPage; if (aclass != FM_STRING) @@ -10,3 +28,9 @@ $OpenBSD: patch-libs_libFreeMat_Print_cpp,v 1.1 2007/03/24 14:14:50 martynas Exp else colsPerPage = termWidth; colsPerPage = (colsPerPage < 1) ? 1 : colsPerPage; + int pageCount; +- pageCount = (int) ceil(columns/((float)colsPerPage)); ++ pageCount = (int) ceil(columns/((double)colsPerPage)); + for (int k=0;k