[132225] trunk/dports/math/octave/Portfile
michaelld at macports.org
michaelld at macports.org
Mon Jan 26 13:46:09 PST 2015
Revision: 132225
https://trac.macports.org/changeset/132225
Author: michaelld at macports.org
Date: 2015-01-26 13:46:09 -0800 (Mon, 26 Jan 2015)
Log Message:
-----------
octave: select the default graphics toolkit depending on the +gui variant.
Modified Paths:
--------------
trunk/dports/math/octave/Portfile
Modified: trunk/dports/math/octave/Portfile
===================================================================
--- trunk/dports/math/octave/Portfile 2015-01-26 21:44:13 UTC (rev 132224)
+++ trunk/dports/math/octave/Portfile 2015-01-26 21:46:09 UTC (rev 132225)
@@ -260,9 +260,15 @@
}
post-destroot {
- system "echo 'graphics_toolkit(\"gnuplot\");' >> ${destroot}${prefix}/share/octave/site/m/startup/octaverc"
+ # select the default graphics toolkit depending on the +gui variant
if {[variant_isset gui]} {
+ system "echo 'graphics_toolkit(\"fltk\");' >> ${destroot}${prefix}/share/octave/site/m/startup/octaverc"
+ } else {
+ system "echo 'graphics_toolkit(\"gnuplot\");' >> ${destroot}${prefix}/share/octave/site/m/startup/octaverc"
+ }
+
+ if {[variant_isset gui]} {
set appdir ${destroot}${applications_dir}/Octave.app
xinstall -d ${appdir}/Contents/MacOS
xinstall -d ${appdir}/Contents/Resources
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150126/457a2b35/attachment-0001.html>
More information about the macports-changes
mailing list