Ticket #1011: libiconv-1.9.1-Portfile.patch

File libiconv-1.9.1-Portfile.patch, 1000 bytes (added by simon@…, 21 years ago)

Portfile patch

  • Portfile

     
    1616                http://wuarchive.wustl.edu/mirrors/gnu/${portname}/
    1717checksums       md5 0c99a05e0c3c153bac1c960f78711155
    1818
    19 post-patch      { reinplace "s|/doc/libiconv|/share/doc/libiconv|g" \
    20                     ${worksrcpath}/man/Makefile.in }
     19post-patch      { reinplace "s|@\mandir@|$\(prefix)/man|g" \
     20                                ${worksrcpath}/Makefile.in
     21                        reinplace "s|@\mandir@|$\(prefix)/man|g" \
     22                                ${worksrcpath}/man/Makefile.in
     23                        reinplace "s|$\(datadir)/doc/${portname}|$\(prefix)/share/doc/${portname}|g" \
     24                                ${worksrcpath}/man/Makefile.in }
     25
     26configure.env           CFLAGS=-no-cpp-precomp \
     27                                        LDFLAGS=-L${prefix}/lib \
     28                                        CPPFLAGS=-I${prefix}/include
    2129
    2230configure.args  --enable-static
    2331
    24 pre-destroot    { system "install -o root -m 755 -d \
    25                     ${destroot}${prefix}/share/doc/libiconv" }
     32pre-destroot    { system "install -m 755 -d \
     33                                        ${destroot}${prefix}/share/doc/${portname}" }
    2634
    2735destroot.destdir prefix=${destroot}${prefix}