[Lunar-commits] <moonbase> GMT: Adjusting the DEPENDS and the BUILD. See comment in BUILD.

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Fri Dec 2 15:04:21 CET 2011


commit da0ff70ecf120035d3bdac314c53f666679aa0e7
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Fri Dec 2 09:04:21 2011 -0500

    GMT: Adjusting the DEPENDS and the BUILD. See comment in BUILD.
---
 science/GMT/BUILD   |    9 +++++++--
 science/GMT/DEPENDS |    1 +
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/science/GMT/BUILD b/science/GMT/BUILD
index 625fc2b..1428f7c 100644
--- a/science/GMT/BUILD
+++ b/science/GMT/BUILD
@@ -1,12 +1,17 @@
 (
 
+  OPTS+=" --enable-shared --enable-eps --enable-netcdf=/usr --disable-update" &&
+
   if [ `arch` == "x86_64" ] ; then 
       OPTS+=" --enable-64"
     else
-     OPTS+=" -disable-64"
+      OPTS+=" --disable-64"
   fi &&
 
-  OPTS+=" --enable-shared --enable-eps --enable-netcdf=/usr" &&
+# So lunar fix does not bark about some octave shared objects not found.
+  if in_depends $MODULE octave ; then
+     LDFLAGS+=" $LDFLAGS -Wl,-rpath,/usr/lib/octave/`lvu version octave`"
+  fi &&
 
   default_build
 
diff --git a/science/GMT/DEPENDS b/science/GMT/DEPENDS
index 0066c74..825ab37 100644
--- a/science/GMT/DEPENDS
+++ b/science/GMT/DEPENDS
@@ -1,3 +1,4 @@
 depends netcdf
 
 optional_depends octave "--enable-octave" "--disable-octave" "for numerical computations support"
+optional_depends gdal   "--enable-gdal"   "--disable-gdal"   "experimental support for grid input via GDAL"


More information about the Lunar-commits mailing list