wxMaxima
Loading...
Searching...
No Matches
Functions
PackagePrefixes.h File Reference

Declares wxm::PackagePrefixes(), where on macOS to look for Maxima and gnuplot. More...

#include <vector>
#include <wx/string.h>
Include dependency graph for PackagePrefixes.h:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Declares wxm::PackagePrefixes(), where on macOS to look for Maxima and gnuplot.

Function Documentation

◆ PackagePrefixes()

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.

Parameters
installPrefixThe prefix wxMaxima was configured with. Empty entries and trailing slashes are ignored; a prefix that is already in the list is not repeated.
Returns
The prefixes, without trailing slash; each has a bin/ subdirectory the programs are searched in.