port callback example

James Gregurich bayoubengal at mac.com
Tue Feb 8 14:38:05 PST 2011

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.

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.


On Feb 8, 2011, at 2:26 PM, Daniel J. Luke wrote:

> On Feb 8, 2011, at 5:11 PM, James Gregurich wrote:
>> I'm trying to figure out how to add a callback to a port such that the function gets called if it exists. Can someone point me to an example of how to properly set that pattern up?
> It might help if you would explain what you're actually trying to accomplish (as there may be an alternate way of achieving what you want).
> --
> 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.          |                          
> +========================================================+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20110208/aed7f498/attachment.html>

More information about the macports-users mailing list