Ticket #26636: unzip-20100926.patch

File unzip-20100926.patch, 1.5 KB (added by koma2@…, 14 years ago)
  • archivers/unzip/Portfile

    diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/unzip/Portfile archivers/unzip/Portfile
    old new  
    2020master_sites            sourceforge:infozip
    2121distname                ${name}[strsed $version g/\\.//]
    2222
    23 checksums           md5     62b490407489521db863b523a7f86375 \
     23checksums           ${distname}${extract.suffix} \
     24                    md5     62b490407489521db863b523a7f86375 \
    2425                    sha1    abf7de8a4018a983590ed6f5cbd990d4740f8a22 \
    2526                    rmd160  48af66606e9472e45fbb94bc4e285da23d1b89ba
    2627
     
    5455        }
    5556}
    5657
     58variant iconv description {Add iconv support} {
     59    set iconv_patch    unzip60-alt-iconv-utf8.patch
     60    depends_lib-append port:libiconv
     61    patch_sites-append freebsd:nork
     62    patchfiles-append  ${iconv_patch}
     63    patch.pre_args     -p1
     64    checksums-append \
     65        ${iconv_patch} \
     66            md5    4dcfb2084e9db5a3f411f470d92ab2a4 \
     67            sha1   7cb046b09becd96a3901b8ac35f77741695c4a8a \
     68            rmd160 ff40983550dbef19dab5b1327d3427c742f8117c
     69
     70    set unicode_support_args "-DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -D_MBCS"
     71    append localflags " -I${prefix}/include -DNATIVE ${unicode_support_args}"
     72    build.post_args-append LFLAGS1="-L${prefix}/lib -liconv"
     73}
     74
    5775platform darwin 8 {
    5876    append localflags " -DNO_LCHMOD"
    5977}