Nicklas Larsson
Nicklas Larsson
Merged this to main again.
> @alexm98 (perhaps also @nilason): is anything missing here? Would be a pity to see this PR lost. I agree. And by the look of it this is not far...
Other examples to take cues from is https://github.com/macports/macports-ports/blob/master/gis/grass/Portfile (which includes above mentioned app-shell creation) and https://github.com/OSGeo/grass/pull/2661 for config settings.
In GRASS source dir: do `./configure --help` for available options. E.g. no need for `ffmpeg`. Also, why `gcc`, and not `clang`?
I suppose you need `libomp` for `--with-openmp`.
I have no experience with homebrew, so I cannot tell how things are or should be (just have to make that clear). I would test with adding `depends_on "libomp" =>...
Let us return to OpenMP later. Will it work without setting it at all?
Is capital LIB intentional: `"--with-libs=#{HOMEBREW_PREFIX}/LIB",` ?
Please correct it and try with openmp again
Looks like the library is not found. Find out what you have installed: `find /opt/homebrew -name "*omp.dylib"` (or wherever you have HOMEBREW_PREFIX). It is possible it is located in: `--with-openmp-libs=#{HOMEBREW_PREFIX}/lib/libomp`...