Ticket #39598: patch-harfbuzz-Portfile.diff

File patch-harfbuzz-Portfile.diff, 1.2 KB (added by ajdudman, 11 years ago)

fix libtool library and header installation for harfbuzz-icu subport

  • Portfile

    old new  
    6161}
    6262
    6363subport harfbuzz-icu {
    64     revision 1
     64    revision        2 
    6565
    6666    description     HarfBuzz ICU support library
    6767   
     
    7979                    --with-icu
    8080   
    8181    destroot.dir    ${worksrcpath}/src
    82     destroot {
    83         eval xinstall -W ${destroot.dir}/.libs \
    84                     [glob ${destroot.dir}/.libs/libharfbuzz-icu.*.dylib] \
    85                     libharfbuzz-icu.la \
    86                     ${destroot}${prefix}/lib
    87 
    88         # TODO: These reinplace hacks are bad.  Use the appropriate make install target instead...
    89 
    90         reinplace "s|${destroot.dir}|${prefix}/lib|g" ${destroot}${prefix}/lib/libharfbuzz-icu.la
    91         reinplace "s|installed=no|installed=yes|" ${destroot}${prefix}/lib/libharfbuzz-icu.la
    92         copy ${destroot.dir}/.libs/libharfbuzz-icu.dylib ${destroot}${prefix}/lib
    93         xinstall -m 644 ${destroot.dir}/hb-icu.h ${destroot}${prefix}/include
    94         xinstall -m 644 ${destroot.dir}/harfbuzz-icu.pc ${destroot}${prefix}/lib/pkgconfig
    95     }
     82    destroot.args   nodist_pkginclude_HEADERS= pkginclude_HEADERS=hb-icu.h lib_LTLIBRARIES=libharfbuzz-icu.la pkgconfig_DATA=harfbuzz-icu.pc
    9683}