From 698155a9529d5a049dd18ac8acfdbef2225bd7de Mon Sep 17 00:00:00 2001 From: makc Date: Thu, 24 Oct 2013 16:44:52 +0000 Subject: - Fix build with UMFPACK [1] - Update patch to really fix configure after hdf5-18 update [2] PR: ports/177364 [1] Submitted by: truckman [1] Submitted by: Mamoru Iwaki <1wkmmr at gmail.com> via ports maillist [2] --- math/scilab/Makefile | 2 +- math/scilab/files/patch-configure | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'math/scilab') diff --git a/math/scilab/Makefile b/math/scilab/Makefile index f133adfb55da..cd0188327dad 100644 --- a/math/scilab/Makefile +++ b/math/scilab/Makefile @@ -201,7 +201,7 @@ post-extract: post-patch: @# Configure fixes @${REINPLACE_CMD} -e 's|-ldl | |' ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|-lumfpack|-lumfpack -lamd -lcholmod -lcolamd $$LAPACK_LIBS $$BLAS_LIBS|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|-lumfpack|-lumfpack -lsuitesparseconfig -lamd -lcholmod -lcolamd $$LAPACK_LIBS $$BLAS_LIBS|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|TCLTK_LIBS=" -ldl"|TCLTK_LIBS=" "|' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|"x=" ==|"x" =|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|"x" ==|"x" =|g' ${WRKSRC}/configure diff --git a/math/scilab/files/patch-configure b/math/scilab/files/patch-configure index fa5df8b0e352..d0079959df09 100644 --- a/math/scilab/files/patch-configure +++ b/math/scilab/files/patch-configure @@ -1,5 +1,23 @@ --- ./configure.orig 2011-07-20 08:15:42.000000000 +0000 +++ ./configure 2013-10-23 11:59:48.722499060 +0000 +@@ -12226,14 +12226,15 @@ + + public class conftest { + public static void main(String[] argv) { +- String minVersion="1.8.4"; ++ int minVersion=10804; + int[] vers = new int[3]; + try { H5.H5get_libversion(vers); } + catch (Throwable ex) {System.exit(-1);} + String ver = vers[0] + "."+ vers[1] +"."+vers[2]; ++ int Version = 10000*vers[0] + 100*vers[1] + vers[2]; + + System.out.println(ver); +- if (minVersion.compareTo(ver) > 0) { ++ if (minVersion > Version) { + System.exit(-1); + } + @@ -12281,14 +12281,15 @@ public class conftest { -- cgit