#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 damian@…): Replying to [comment:7 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.
I think this finally corrects my previous misinterpretation that Macports could edit my login profile (~/.profile), which contains lines such as the one below. I now realize these lines must have been placed there when Macports itself was installed. Based on what you're saying, Macports cannot edit login profiles. Correct? Damian ## # Your previous /Users/rouson/.profile file was backed up as /Users/rouson/.profile.macports-saved_2013-03-12_at_14:43:25 ## # MacPorts Installer addition on 2013-03-12_at_14:43:25: adding an appropriate PATH variable for use with MacPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH # Finished adapting your PATH environment variable for use with MacPorts. -- Ticket URL: <https://trac.macports.org/ticket/47426#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X