New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13961: perl5.8_universal.diff

File perl5.8_universal.diff, 2.5 KB (added by reiffert@…, 4 years ago)
  • perl5.8/Portfile

    diff -Naur /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8/Portfile perl5.8/Portfile
    old new  
    6464    configure.post_args-append  -Dcc=/usr/bin/gcc-4.0 
    6565} 
    6666 
     67variant universal {  
     68                         
     69        configure.post_args-append -Accflags="-arch i386 -arch ppc -nostdinc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc \ 
     70                -B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include \ 
     71                -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks" \ 
     72                -Aldflags="-arch i386 -arch ppc -L/usr/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" \ 
     73                -de  
     74        pre-configure { 
     75                reinplace "s|MACOSX_DEPLOYMENT_TARGET=10.3|MACOSX_DEPLOYMENT_TARGET=10.4|g" "${worksrcpath}/hints/darwin.sh" 
     76        } 
     77        macosx_deployment_target        {10.4}  
     78        patchfiles-delete patch-hints_darwin.sh 
     79        patchfiles-append patch-hints_darwin_universal.sh.diff 
     80} 
     81 
    6782livecheck.check regex 
    6883livecheck.url   ${master_sites} 
    6984livecheck.regex latest_is_(\\d+(?:\\.\\d+)*) 
  • perl5.8/files/patch-hints_darwin_universal.sh.diff

    diff -Naur /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8/files/patch-hints_darwin_universal.sh.diff perl5.8/files/patch-hints_darwin_universal.sh.diff
    old new  
     1--- /Users/thomas/perl-5.8.8/hints/darwin.sh    2005-09-18 17:13:41.000000000 +0200 
     2+++ hints/darwin.sh     2008-01-17 01:24:54.000000000 +0100 
     3@@ -173,7 +173,7 @@ 
     4    lddlflags="${ldflags} -bundle -undefined suppress" 
     5    ;; 
     6 *)  
     7-   lddlflags="${ldflags} -bundle -undefined dynamic_lookup" 
     8+   lddlflags="${ldflags} -arch i386 -arch ppc -bundle -undefined dynamic_lookup" 
     9    case "$ld" in 
     10        *MACOSX_DEVELOPMENT_TARGET*) ;; 
     11        *) ld="env MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;; 
     12@@ -231,6 +231,14 @@ 
     13 esac 
     14 fi 
     15  
     16+# When the bind9 port is installed, its libbind includes dups from 
     17+# /usr/lib/libdl, so remove libbind 
     18+libswanted=`echo $libswanted | sed 's/ bind / /'` 
     19+ 
     20+# When building a universal binary, remove the util lib, as -lutil 
     21+# does not ship with 10.4 SDK and is not available on tiger 
     22+libswanted=`echo $libswanted | sed 's/ util / /'` 
     23+ 
     24 ## 
     25 # System libraries 
     26 ##