Well after a lot of local refactoring of the #MacPorts #snac Portfile to the point where I wasn't trusting some of the changes I had made to be worthwhile and was starting to get on the edge of creating new error messages.

I updated the Trac ticket with a version of the Portfile for 2.19 which at least functions on my local system:

https://trac.macports.org/ticket/66751

Maybe others can provide insights on how to improve it better?

#PortGroup #Makefile

#66751 (snac @2.18: use the right compiler and flags) – MacPorts

As I look a bit deeper into creating a #MacPorts #Portfile for #snac2 it appears as if it is recommended to *not* hardcode /opt/local here:

https://trac.macports.org/wiki/PortfileRecipes#hardcode_opt_local

Also, apparently there is a #makefile #PortGroup?

You would think that after a year of toiling with this stuff, I would have it better figured out, but nope: learning something new each time!

Here's my prototype Portfile for snac2:

https://www.codedump.xyz/properties/Y4VV4xiJHqQWMQ86

Still needs improvement!

(sorry @grunfink I will look at this more later)

PortfileRecipes – MacPorts