[Lunar-commits] <moonbase> octave: Adding an optional_depends and adjusting the BUILD.

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Thu Feb 10 03:26:22 CET 2011


commit c194e6499b7c607266f2177be7cbb24c8b903a14
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Wed Feb 9 21:26:22 2011 -0500

    octave: Adding an optional_depends and adjusting the BUILD.
---
 science/octave/BUILD   |    5 +++++
 science/octave/DEPENDS |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/science/octave/BUILD b/science/octave/BUILD
index fc9bd6f..8e88c56 100644
--- a/science/octave/BUILD
+++ b/science/octave/BUILD
@@ -1,6 +1,11 @@
 (
 
   sedit "s:suitesparse:SuiteSparse:g" configure &&
+
+  if in_depends $MODULE SuiteSparse ; then
+    export LIBS+=" -lcamd -lmetis"
+  fi &&
+
   CXXFLAGS="-lpthread" &&
 
   ./configure  --sysconfdir=/etc        \
diff --git a/science/octave/DEPENDS b/science/octave/DEPENDS
index b7ae47d..bb3f580 100644
--- a/science/octave/DEPENDS
+++ b/science/octave/DEPENDS
@@ -1,5 +1,6 @@
 depends gnuplot
 
+optional_depends "SuiteSparse" "" "" "for matrix support, Recommended."
 optional_depends "gperf"    ""                  ""                   "if you need to recreate oct-gperf.h"
 optional_depends "qhull"    ""                  "--without-qhull"    "for qhull support"
 optional_depends "zlib"     "--with-z"          "--without-z"        "for lossless compression support"


More information about the Lunar-commits mailing list