[105373] trunk/dports/lang/perl5.12

Joshua Root jmr at macports.org
Fri Apr 19 03:27:12 PDT 2013


> Revision: 105373
>           https://trac.macports.org/changeset/105373
> Author:   dh at macports.org
> Date:     2013-04-18 23:14:37 -0700 (Thu, 18 Apr 2013)
> Log Message:
> -----------
> Correctly set MACOSX_DEVELOPMENT_TARGET on darwin versions 11 and 12 for perl5.12
> 
> Modified Paths:
> --------------
>     trunk/dports/lang/perl5.12/Portfile
>     trunk/dports/lang/perl5.12/files/patch-hints_darwin.sh.diff
> 
> Modified: trunk/dports/lang/perl5.12/Portfile
> ===================================================================
> --- trunk/dports/lang/perl5.12/Portfile	2013-04-19 01:00:48 UTC (rev 105372)
> +++ trunk/dports/lang/perl5.12/Portfile	2013-04-19 06:14:37 UTC (rev 105373)
> @@ -5,7 +5,7 @@
>  
>  name            perl5.12
>  version         5.12.4
> -revision        1
> +revision        2
>  set branch      [join [lrange [split ${version} .] 0 1] .]
>  categories      lang
>  license         {Artistic-1 GPL}
> 
> Modified: trunk/dports/lang/perl5.12/files/patch-hints_darwin.sh.diff
> ===================================================================
> --- trunk/dports/lang/perl5.12/files/patch-hints_darwin.sh.diff	2013-04-19 01:00:48 UTC (rev 105372)
> +++ trunk/dports/lang/perl5.12/files/patch-hints_darwin.sh.diff	2013-04-19 06:14:37 UTC (rev 105373)
> @@ -8,7 +8,7 @@
>   so='dylib';
>   dlext='bundle';
>   usedl='define';
> -@@ -172,6 +171,20 @@ case "$osvers" in
> +@@ -172,6 +171,34 @@ case "$osvers" in
>      ldflags="${ldflags} -flat_namespace"
>      lddlflags="${ldflags} -bundle -undefined suppress"
>      ;;
> @@ -26,6 +26,20 @@
>  +       *) ld="env MACOSX_DEPLOYMENT_TARGET=10.6 ${ld}" ;;
>  +   esac
>  +   ;;
> ++11.*)
> ++   lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
> ++   case "$ld" in
> ++       *MACOSX_DEVELOPMENT_TARGET*) ;;
> ++       *) ld="env MACOSX_DEPLOYMENT_TARGET=10.7 ${ld}" ;;
> ++   esac
> ++   ;;
> ++12.*)
> ++   lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
> ++   case "$ld" in
> ++       *MACOSX_DEVELOPMENT_TARGET*) ;;
> ++       *) ld="env MACOSX_DEPLOYMENT_TARGET=10.8 ${ld}" ;;
> ++   esac
> ++   ;;
>   *) 
>      lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
>      case "$ld" in

What problem does this fix? Base always sets MACOSX_DEPLOYMENT_TARGET
when running any command; why isn't that enough?

- Josh


More information about the macports-dev mailing list