Ticket #45250: wakeonlan.diff

File wakeonlan.diff, 1.0 KB (added by ryandesign (Ryan Carsten Schmidt), 10 years ago)
  • Portfile

     
    44
    55name                wakeonlan
    66version             0.41
     7revision            1
    78categories          net
    89maintainers         mww
    910platforms           darwin freebsd
     
    2021                    rmd160  ddbc2af097bb46bd8afd2c37007c5ed5291ee0e7 \
    2122                    sha256  581b1b27a7e810ab72668cce4bd9aa9b3e0cea34b2db24dd1a44c09d63ddda98
    2223
    23 depends_lib         path:bin/perl:perl5
     24set perl_version    5.16
    2425
     26depends_lib         port:perl${perl_version}
     27
    2528installs_libs       no
    2629
    2730patch {
    28     reinplace -locale C "s|/usr/bin/perl -w|${prefix}/bin/perl -w|g" ${worksrcpath}/wakeonlan
     31    reinplace -locale C "s|/usr/bin/perl -w|${prefix}/bin/perl${perl_version} -w|g" ${worksrcpath}/wakeonlan
    2932}
    3033
    3134configure {
    32     system -W ${worksrcpath} "perl Makefile.PL"
     35    system -W ${worksrcpath} "${prefix}/bin/perl${perl_version} Makefile.PL"
    3336}
    3437
    3538destroot {