Ticket #13961: perl5.8-universal.diff

File perl5.8-universal.diff, 1.6 KB (added by blb@…, 16 years ago)

patch to perl5.8

  • files/patch-hints_darwin.sh.diff

     
     1--- hints/darwin.sh.orig        2008-05-25 15:13:01.000000000 -0600
     2+++ hints/darwin.sh     2009-04-20 00:49:12.000000000 -0600
     3@@ -173,11 +173,7 @@
     4    lddlflags="${ldflags} -bundle -undefined suppress"
     5    ;;
     6 *)
     7-   lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
     8-   case "$ld" in
     9-       *MACOSX_DEVELOPMENT_TARGET*) ;;
     10-       *) ld="env MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;
     11-   esac
     12+   lddlflags="${ldflags} @@UNIVARCHS@@ -bundle -undefined dynamic_lookup"
     13    ;;
     14 esac
     15 ldlibpthname='DYLD_LIBRARY_PATH';
  • Portfile

     
    7373    }
    7474}
    7575
    76 universal_variant   no
    77 
    7876test.run            yes
    7977
    8078post-destroot {
     
    104102    }
    105103}
    106104
     105variant universal {
     106    global univarchs
     107    set univarchs ""
     108    foreach arch ${configure.universal_archs} {
     109        set univarchs "${univarchs} -arch ${arch}"
     110    }
     111    configure.post_args-append -Accflags="-isysroot ${configure.universal_sysroot} ${univarchs}" \
     112        -Aldflags="-Wl,-syslibroot ${configure.universal_sysroot} ${univarchs}"
     113    patchfiles-append patch-hints_darwin.sh.diff
     114    post-patch {
     115        reinplace "s|@@UNIVARCHS@@|${univarchs}|g" ${worksrcpath}/hints/darwin.sh
     116    }
     117}
     118
    107119livecheck.check regex
    108120livecheck.url   http://www.cpan.org/src
    109121livecheck.regex {perl-(5\.8\.\d)\.}