How reconcile openmodelica-dvel & octave dependencies on sundials vs. sundials2

Ken Cunningham ken.cunningham.webuse at gmail.com
Wed Jun 6 05:20:43 UTC 2018


Adam, Murray -- This small patch will patch the octave Portfile to make sundials2 support a variant.
If you want to install octave without sundials2 support (so you can use openmodelica which needs sundials) this should allow you to do that.

The command is:

sudo port -v install octave -sundials2

I built octave locally without sundials2 support and it seems to build cleanly.

I don't know how many people might want to install both octave and openmodelica.
If there are enough people, perhaps Marcus /Marius might add something like this into the octave Portfile.

Best,

Ken

------- patch below -------

--- Portfile	2018-06-02 16:18:27.000000000 -0700
+++ Portfile	2018-06-05 22:14:12.000000000 -0700
@@ -295,6 +295,11 @@
     --without-magick        \
     --disable-docs
 
+#default to no sundials support - see variant below
+configure.args-append       \
+    --without-sundials_nvecserial \
+    --without-sundials_ida
+
 # in configure.ac, listed as one of "[p]rograms used when running Octave"
 depends_lib-append port:python27
 configure.python ${prefix}/bin/python2.7
@@ -365,10 +370,6 @@
 configure.args-append --without-openssl
 #depends_lib-append path:lib/libssl.dylib:openssl
 
-#--without-sundials_nvecserial
-#--without-sundials_ida
-depends_lib-append  port:sundials2
-
 # see etc/README.MacOS
 depends_run-append   \
     port:epstool     \
@@ -399,6 +400,13 @@
 #    https://trac.macports.org/ticket/51480
 #default_variants-append +java
 
+variant sundials2 description {build with sundials2 support - not compatible with sundials} {
+    depends_lib-append  port:sundials2
+    configure.args-delete --without-sundials_nvecserial
+    configure.args-delete --without-sundials_ida
+}
+default_variants-append +sundials2
+
 variant qt4 conflicts qt5 description {build the GUI using Qt4} {
     PortGroup qt4 1.0
     depends_lib-append port:qscintilla-qt4



More information about the macports-users mailing list