Ticket #31286: p5-perlmagick.diff

File p5-perlmagick.diff, 643 bytes (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

proposed patch

  • Portfile

     
    3232if {${perl5.major} != ""} {
    3333depends_lib-append          port:ImageMagick
    3434post-patch {
    35     if {[variant_isset universal]} {
    36         set archflags ${configure.universal_cflags}
    37     } else {
    38         set archflags ${configure.cc_archflags}
    39     }
    40     reinplace "s|@ARCHFLAGS@|${archflags}|g" ${worksrcpath}/Makefile.PL
     35    reinplace "s|@ARCHFLAGS@|[get_canonical_archflags]|g" ${worksrcpath}/Makefile.PL
    4136    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile.PL
    4237}
    4338}