#47426: Add OpenCoarrays dependency for gcc5 -----------------------+-------------------------------- Reporter: damian@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gcc5 | -----------------------+-------------------------------- Comment (by ryandesign@…): I see you submitted an updated version of this portfile in #47806. Replying to [comment:6 fanfarillo.gcc@…]:
With the Portfile attached I'm able to download and build correctly but Macports saves the library (libcaf_mpi.a) in / (which generates a warning). How can I save the file in a different location?
It depends on the build system; every build system is different. If the build system cannot be coerced to put the file where you want it, you can move it in a post-destroot block, or you can override the destroot phase entirely, like you did in the portfile you submitted in #47806.
How can I set the LIBRARY_PATH environment variable from the Portfile?
Sounds like you want to modify the user's environment, outside of what happens in MacPorts? MacPorts cannot do that. The user has to do it on their own. The port can use the `notes` command to display text to the user advising them what they must do. -- Ticket URL: <https://trac.macports.org/ticket/47426#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X