Metaport

vincent habchi vince at macports.org
Mon Oct 19 12:20:00 PDT 2009


Ryan,

> I don't know about that, but the other thing is that pre- and post-  
> blocks can be defined multiple times. They don't override one  
> another. So if the portgroup defines a pre-configure phase, and the  
> portfile defines a pre-configure phase, MacPorts would happily call  
> both of them.

Ah, that's something I was not aware of. It might be a solution. Yet,  
I admit I have some difficulty to understand the current structure of  
muniversal. What is the benefit of running a small loop for each step  
rather than one big loop over all steps?

> Perhaps muniversal could do this in a post-extract phase. That way,  
> you could write a (single) pre-configure phase, and in it, you would  
> loop over the list of requested architectures and do your  
> reinplacing in each one.

Yes, I'll try this.

> I haven't used fortran. Does fortran not offer something equivalent  
> to C's preprocessor directives?

I am not a Fortran specialist. Basically, I am pretty much like you  
might be: I compile Fortran code, but I'm far to be able to write even  
the most basic program in Fortran. But I haven't encountered anything  
like a preprocessor in Fortran. I think that just does not exist.

Vincent


More information about the macports-dev mailing list