[83556] trunk/dports/lang/erlang/Portfile

Ryan Schmidt ryandesign at macports.org
Mon Sep 5 17:28:30 PDT 2011


On Sep 5, 2011, at 18:13, bfulgham at macports.org wrote:

> Revision: 83556
>          http://trac.macports.org/changeset/83556
> Author:   bfulgham at macports.org
> Date:     2011-09-05 16:13:28 -0700 (Mon, 05 Sep 2011)
> Log Message:
> -----------
> Update to allow wxWidgets version of Erlang to be built and run under
> 64-bit OS.
> 
> Note you must build libxml2 and libxslt as universal libraries for this
> to work properly.  Unfortunately, there is no way to specify that Erlang
> depends on a specific variant of another port.
> 
> Modified Paths:
> --------------
>    trunk/dports/lang/erlang/Portfile

> platform darwin {
>     if {${configure.build_arch} == "x86_64" || ${configure.build_arch} == "ppc64"} {
> -        configure.args-append --enable-darwin-64bit
> +        if {[variant_isset wxwidgets]} {
> +            configure.args-append --disable-darwin-64-bit
> +            if {${configure.build_arch} == "x86_64"i} {
> +                configure.build_arch = i386
> +            } else if {${configure.build_arch} == "ppc"} {
> +                configure.build_arch = ppc
> +            }
> +        } else {
> +            configure.args-append --enable-darwin-64bit
> +        }

Doesn't this block which is already in the portfile already take care of most of this:

platform macosx {
    if {[variant_isset wxwidgets]} {
        # wxMac is 32-bit only
        supported_archs i386 ppc
    }
}

This should automatically set build_arch to the appropriate 32-bit arch, and rebuild dependencies 32-bit as need. Was this not happening?





More information about the macports-dev mailing list