Ticket #13419: Portfile.diff

File Portfile.diff, 1.3 KB (added by ecronin (Eric Cronin), 17 years ago)

Portfile as patch

  • Portfile

    old new  
    3434    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/bkb
    3535    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/sub.c
    3636    reinplace "s|/usr/local|\$\(DESTDIR\)/${prefix}|g" ${worksrcpath}/asn/Makefile
    37     reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/asn/asn
     37    reinplace "s|/usr/local/bin|${prefix}/bin/blackbag|g" ${worksrcpath}/asn/asn
     38    reinplace "s|shift|#shift|g" ${worksrcpath}/asn/asn
    3839    reinplace "s|-I../third-party/libevent-1.0b||g" ${worksrcpath}/Makefile
    3940    reinplace "s|-L../third-party/libevent-1.0b||g" ${worksrcpath}/Makefile
    4041    reinplace "s|-g||g" ${worksrcpath}/common.mk
     
    4445    system "touch ${worksrcpath}/sub.macros"
    4546}
    4647
     48post-build {
     49    cd ${worksrcpath}/asn
     50    system "${build.cmd}"   
     51}
     52
    4753post-destroot {
     54    cd ${worksrcpath}/asn
     55    file rename asn asn1
     56    system "${build.cmd} install ${build.target} DESTDIR=${destroot}"
    4857    xinstall -m 755 -d  ${destroot}${prefix}/share/doc/${name}
    4958    xinstall -m 0644 ${worksrcpath}/README \
    5059        ${destroot}${prefix}/share/doc/${name}/README
    5160}
    5261
     62
    5363platform darwin 9 {
    5464    post-patch {
    5565        reinplace "s|setpgrp|setpgid|g" ${worksrcpath}/tsec.c