[47929] trunk/dports/python

Ryan Schmidt ryandesign at macports.org
Tue Mar 10 09:38:56 PDT 2009


On Mar 10, 2009, at 09:48, snc at macports.org wrote:

> Revision: 47929
>           http://trac.macports.org/changeset/47929
> Author:   snc at macports.org
> Date:     2009-03-10 07:48:04 -0700 (Tue, 10 Mar 2009)
> Log Message:
> -----------
> created py26-wxpython, ticket #18561

[snip]

> +build.env           CC="gcc-mp-4.3" UNICODE="1" WXPORT="mac"  
> PATH="${python.prefix}/lib/wx/config:$env(PATH)"
> +
> +destroot.env        UNICODE="1" WXPORT="mac" PATH="$ 
> {python.prefix}/lib/wx/config:$env(PATH)"

If you require gcc-mp-4.3, then you must declare a dependency on  
port:gcc43. It may need to be a build dependency, or possibly a  
library dependency of one of gcc43's libraries gets linked in. (Use  
"otool -L" on every file installed by the port to find out.)

For the sake of clarity you should also set configure.compiler and  
use ${configure.cc}.

You could also refactor so you only have to define the other env vars  
once.

depends_build-append port:gcc43
configure.compiler macports-gcc-4.3
build.env UNICODE="1" WXPORT="mac" PATH="${python.prefix}/lib/wx/ 
config:$env(PATH)"
destroot.env ${build.env}
build.env-append CC="${configure.cc}"

Or something like that.



More information about the macports-dev mailing list