port callback example

Daniel J. Luke dluke at geeklair.net
Tue Feb 8 14:45:47 PST 2011


On Feb 8, 2011, at 5:38 PM, James Gregurich wrote:
> 
> muniversal overrides configure. In that function, there is a loop over universal_archs_to_use. I want the portfile to be able intercept each iteration of that loop and take an action based on the current configure.XXX variables.

I don't know why you need a callback for that.

muniversal just runs the configure (build, and destroot) phase multiple times. If you really need to, you can probably inspect the variables and do what you need to inside of the configure phase

> the reason for the need:
> 
> To build the boost port for arm, I need to use muniversal since the "combined" architecture setting is specific to powerpc/intel.  In the boost portfile, I need a user-config.jam for each arch.
> 
> NOTE: I have looked into modifying the boost build system so that "combined" works for armv6 and armv7. It should be doable, but I want to get the system working for the existing structure of boost since the whole point of this exercise is to prove the existing structure of macports can be extended to cover the needs of various ports.

... and this probably belongs on -dev and not -users

--
Daniel J. Luke                                                                   
+========================================================+                        
| *---------------- dluke at geeklair.net ----------------* |                          
| *-------------- http://www.geeklair.net -------------* |                          
+========================================================+                        
|   Opinions expressed are mine and do not necessarily   |                          
|          reflect the opinions of my employer.          |                          
+========================================================+





More information about the macports-users mailing list