New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80733


Ignore:
Timestamp:
07/16/11 10:06:26 (4 years ago)
Author:
jeremyhu@…
Message:

p5-net-libidn: Build fix for building -universal with a +universal perl. Dev ack via email.

Location:
trunk/dports/perl/p5-net-libidn
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/perl/p5-net-libidn/Portfile

    r79929 r80733  
    2222 
    2323post-patch { 
    24     reinplace "s|@CC@|${configure.cc} ${configure.cppflags}|g" ${worksrcpath}/Makefile.PL 
     24    reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile.PL 
     25 
     26    if {[variant_isset universal]} { 
     27        reinplace "s|@CFLAGS@|${configure.cppflags} ${configure.universal_cflags}|g" ${worksrcpath}/Makefile.PL 
     28    } else { 
     29        reinplace "s|@CFLAGS@|${configure.cppflags} ${configure.cc_archflags}|g" ${worksrcpath}/Makefile.PL 
     30    } 
    2531} 
    26  
    27 configure.env           C_INCLUDE_PATH="${prefix}/include" \ 
    28                         LIBRARY_PATH="${prefix}/lib" 
  • trunk/dports/perl/p5-net-libidn/files/patch-Makefile.PL.diff

    r54248 r80733  
    1 --- Makefile.PL.orig    2007-12-12 16:28:08.000000000 -0600 
    2 +++ Makefile.PL 2009-07-17 02:01:17.000000000 -0500 
    3 @@ -167,7 +167,7 @@ 
     1--- Makefile.PL.orig    2011-07-15 22:50:57.000000000 -0700 
     2+++ Makefile.PL 2011-07-15 22:53:15.000000000 -0700 
     3@@ -65,7 +65,7 @@ sub InitMakeParams 
     4                $Params{INC} = ''; 
     5        } 
     6  
     7-       my $libidn = CheckLibidn($Params{INC}, $Params{LIBS}); 
     8+       my $libidn = CheckLibidn("@CFLAGS@", "-lidn"); 
     9  
     10        unless($libidn) 
     11        { 
     12@@ -165,7 +165,7 @@ sub CheckCCode 
    413                return 0; 
    514        } 
     
    918        { 
    1019                unlink($test); 
    11                 system "$cc $cflags $ldflags -o $test $test.c"; 
     20                system "$cc $cflags -o $test $test.c $ldflags"; 
Note: See TracChangeset for help on using the changeset viewer.