Ticket #20345: p5-net-libidn.diff

File p5-net-libidn.diff, 974 bytes (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • files/patch-Makefile.PL.diff

     
     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 @@
     4                return 0;
     5        }
     6 
     7-       foreach my $cc (qw/cc gcc/)
     8+       my $cc = '@CC@';
     9        {
     10                unlink($test);
     11                system "$cc $cflags $ldflags -o $test $test.c";
  • Portfile

     
    1414platforms         darwin
    1515
    1616depends_lib-append      port:libidn
     17
     18patchfiles-append       patch-Makefile.PL.diff
     19
     20post-patch {
     21    reinplace s|@CC@|${configure.cc}|g ${worksrcpath}/Makefile.PL
     22}
     23
    1724configure.env           C_INCLUDE_PATH="${prefix}/include" \
    1825                        LIBRARY_PATH="${prefix}/lib"