Metaport

vincent habchi vince at macports.org
Mon Oct 19 03:31:03 PDT 2009


Le 15 oct. 2009 à 18:08, Ryan Schmidt a écrit :

> This is possible without needing to do anything complicated. You can  
> just set the merger_configure_args list with the desired values.  
> There are some existing ports that use this, which you can look at  
> for examples: nspr uses it to add "--enable-64bit" on 64-bit  
> architectures. fontconfig uses it to specify the architecture in a  
> "--with-arch" flag. tiff uses it to ensure "--with-apple-opengl- 
> framework" is not used on 64-bit architectures on Tiger. gtk2 adds  
> "--disable-cups" on 64-bit architectures on Tiger. fftw-3 adds "-- 
> enable-fma" on PowerPC systems and "--enable-sse2" on Intel systems.

Ok, I tried this but it does not work. Well, it works, but this is not  
what I need. I need to be able to access a variable in the pre- 
configure phase that is either 32 or 64 depending on what arch the  
code is being compiled for. And that variable is to be used in a  
replace statement, so I really must be able to access it, not to  
include it implicitly via merger_configure_args(XXX).

Vincent


More information about the macports-dev mailing list