On Mar 9, 2012, at 15:21, [email protected] wrote:

> Revision: 90606
>          http://trac.macports.org/changeset/90606
> Author:   [email protected]
> Date:     2012-03-09 13:21:00 -0800 (Fri, 09 Mar 2012)
> Log Message:
> -----------
> mit-scheme: fix hardcoded path to SDK directory to support Xcode 4.3
> 
> Modified Paths:
> --------------
>    trunk/dports/lang/mit-scheme/Portfile
> 
> Modified: trunk/dports/lang/mit-scheme/Portfile
> ===================================================================
> --- trunk/dports/lang/mit-scheme/Portfile     2012-03-09 21:12:54 UTC (rev 
> 90605)
> +++ trunk/dports/lang/mit-scheme/Portfile     2012-03-09 21:21:00 UTC (rev 
> 90606)
> @@ -52,6 +52,13 @@
>         ${worksrcpath}/src/swat/c/tk3.2-custom/Makefile \
>         ${worksrcpath}/src/swat/c/tk3.2-custom/tcl/Makefile \
>         ${worksrcpath}/src/swat/scheme/other/btest.scm
> +
> +    if {[vercmp $xcodeversion 4.3] >= 0} {
> +        set sdks_dir 
> "${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs"
> +        reinplace 
> "s|MACOSX_SYSROOT=/Developer/SDKs/|MACOSX_SYSROOT=${sdks_dir}/|" \
> +            ${worksrcpath}/src/configure \
> +            ${worksrcpath}/src/microcode/configure
> +    }

Even before Xcode 4.3, users could elect to install Xcode into directory 
different from /Developer, so hardcoding /Developer into the configure scripts 
seems wrong on any Xcode version.



_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to