|
wxMaxima
|
Declares wxm::PackagePrefixes(), where on macOS to look for Maxima and gnuplot. More...
#include <vector>#include <wx/string.h>Go to the source code of this file.
Functions | |
| std::vector< wxString > | wxm::PackagePrefixes (const wxString &installPrefix) |
| The installation prefixes to search for Maxima and gnuplot on macOS, best first. | |
Declares wxm::PackagePrefixes(), where on macOS to look for Maxima and gnuplot.
| std::vector< wxString > wxm::PackagePrefixes | ( | const wxString & | installPrefix | ) |
The installation prefixes to search for Maxima and gnuplot on macOS, best first.
A GUI program started from the Finder gets a minimal PATH that contains none of the places package managers install to, so wxMaxima has to know them.
The first entry is the prefix wxMaxima itself was configured with (CMAKE_INSTALL_PREFIX): a package manager that builds wxMaxima – MacPorts passes its own prefix, /opt/local by default – installs Maxima and gnuplot there as well. That replaces the OSX_MACPORTS_PREFIX/OSX_MACPORTS_PREFER macros the MacPorts port used to patch into the source (GH #1347). After that come Homebrew (/opt/homebrew on Apple silicon, /usr/local on Intel) and MacPorts' default prefix, for a wxMaxima that came from somewhere else.
| installPrefix | The prefix wxMaxima was configured with. Empty entries and trailing slashes are ignored; a prefix that is already in the list is not repeated. |