Ticket #45482: Portfile.diff

File Portfile.diff, 1.2 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 10 years ago)
  • Portfile

    old new  
    33PortSystem 1.0
    44name             rman
    55version          3.2
     6revision         1
    67categories       textproc
    78license          Artistic-1
    89maintainers      mac.com:lomion
     
    1516homepage         http://polyglotman.sourceforge.net/
    1617platforms        darwin
    1718master_sites     sourceforge:polyglotman
    18 checksums        md5 6d1d67641c6d042595a96a62340d3cc6
    19 patchfiles       patch-Makefile
     19checksums        rmd160  5ec8830466ec478e4470fbda8635d06b8cf967b7 \
     20                 sha256  68a130696b251966db10a4774e2bc8083a0147b83f64c11e9bb4cd654da32d5f
     21use_configure    no
     22build.args-append \
     23    CC=${configure.cc}
    2024
    21 configure {
    22     reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/Makefile
    23     reinplace "s|__DSTROOT|${destroot}${prefix}|g" ${worksrcpath}/Makefile
     25if {[variant_isset universal]} {
     26    build.args-append \
     27        CFLAGS="${configure.cflags} ${configure.universal_cflags}"
     28} else {
     29    build.args-append \
     30        CFLAGS="${configure.cflags} [get_canonical_archflags]"
    2431}
     32
     33destroot.args-append \
     34    BINDIR=${destroot}${prefix}/bin \
     35    MANDIR=${destroot}${prefix}/share/man/man1