Ticket #12671: unrar-universal.2.diff

File unrar-universal.2.diff, 1.7 KB (added by nox@…, 17 years ago)
  • Portfile

     
    11# $Id$
    22
    3 PortSystem 1.0
     3PortSystem        1.0
    44
    55name              unrar
    66version           3.7.6
     
    99maintainers       max@kruschwitz.biz
    1010
    1111description       Extract, view & test RAR archives
     12
    1213long_description  The unRAR utility is a minor part of the RAR archiver and \
    1314                  contains RAR uncompression algorithm. unRAR requires very \
    1415                  small volume of memory to operate.
    15 homepage          http://www.rarlab.com/
    1616
     17homepage          http://www.rarlab.com/
    1718master_sites      ${homepage}rar/
    1819distname          ${name}src-${version}
     20
    1921checksums         md5 c6e1ae41bc140d47f4608c1ab5f01802 \
    2022                  sha1 b75966a564a799a082d1c95de5e4a44e21cf33d1 \
    2123                  rmd160 68f5738b6c9ede8de24061cc1e1e285ad5b0bf16
    2224
    2325worksrcdir        ${name}
    2426
    25 use_configure     no
     27configure {
     28    reinplace -E "/^CXXFLAGS/s|\$| [join ${configure.cflags} " "]\\\n\
     29                LDFLAGS=[join ${configure.ldflags} " "]|" \
     30        ${worksrcpath}/makefile.unix
     31}
    2632
    2733build.args        -f makefile.unix
    2834
    2935destroot {
    3036        set docdir ${prefix}/share/doc/${name}-${version}
    3137
    32         xinstall -m 755 -d ${destroot}${docdir}
    33         xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
    34         xinstall -m 644 ${worksrcpath}/license.txt ${destroot}${docdir}
     38        xinstall -d ${destroot}${docdir}
     39        xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
     40        xinstall -m 0644 ${worksrcpath}/license.txt ${destroot}${docdir}
    3541}
    3642
    37 universal_variant no
    38 
    3943livecheck.check regex
    4044livecheck.url   ${master_sites}?C=M&O=D
    4145livecheck.regex "[strsed ${distname} {/[.0-9]*$//}](\\d+(?:\\.\\d+)*)"