Ticket #20404: Portfile.diff

File Portfile.diff, 890 bytes (added by jmroot (Joshua Root), 14 years ago)

perl5.8 portfile patch

  • Portfile

     
    4040configure.env       LC_ALL=C
    4141configure.cmd       /bin/sh Configure
    4242configure.pre_args
     43configure.universal_args-delete --disable-dependency-tracking
    4344configure.args \
    4445    -des \
    4546    -D prefix='${prefix}' \
    4647    -D scriptdir='${prefix}/bin' \
    4748    -D cppflags="\${CPPFLAGS}" \
     49    -D ccflags="\${CFLAGS}" \
    4850    -D ldflags="\${LDFLAGS}" \
    4951    -D vendorprefix='${prefix}' \
    5052    -D man1ext='1pm' \
     
    7476    }
    7577}
    7678
    77 universal_variant   no
    78 
    7979test.run            yes
    8080
     81if {[variant_isset universal]} {
     82    post-configure {
     83        system "cd ${worksrcpath} && ed - ${worksrcpath}/config.h < ${filespath}/config.h.ed"
     84    }
     85}
     86
    8187post-destroot {
    8288    ln -s perl${version} ${destroot}${prefix}/bin/$name
    8389}