Ticket #30745: texlive-bin-Portfile.diff

File texlive-bin-Portfile.diff, 2.2 KB (added by pguyot (Paul Guyot), 13 years ago)

Patch for texlive-bin

  • Portfile

     
    100100        reinplace "s|kpse_cv_have_Carbon=yes|kpse_cv_have_Carbon=no|" ${worksrcpath}/texk/xdv2pdf/configure
    101101    }
    102102   
    103     # Do the same for xdvipdfmx regardless of whether +atsui is set,
    104     # because it will want to use deprecated fontconfig APIs that are
    105     # only available if fontconfig is compiled with
    106     # --with-old-mac-fonts
    107     reinplace "s|kpse_cv_have_ApplicationServices=yes|kpse_cv_have_ApplicationServices=no|" ${worksrcpath}/texk/xdvipdfmx/configure
     103    # Force xdvipdfmx configure to believe ApplicationServices is not
     104    # available, unless variant with_old_mac_fonts is selected -- and ensure
     105    # that freetype with the same variant is installed, as it will want to use
     106    # deprecated freetype APIs that are only available if freetype is compiled
     107    # with --with-old-mac-fonts
     108    if {![variant_isset with_old_mac_fonts]} {
     109        reinplace "s|kpse_cv_have_ApplicationServices=yes|kpse_cv_have_ApplicationServices=no|" ${worksrcpath}/texk/xdvipdfmx/configure
     110    } else {
     111        set freetype_libs_private [exec ${prefix}/bin/pkg-config freetype2 --libs --static]
     112        if {![string match "*ApplicationServices*" ${freetype_libs_private}]} {
     113            ui_error "To install texlive-bin +with_old_mac_fonts, freetype must be installed with the same variant."
     114            return -code error "incompatible freetype installation"
     115        }
     116    }
    108117}
    109118
    110 
    111119# We use MacPorts-provided libraries instead of the ones included in
    112120# texlive whenever possible, to avoid redundancy and to better keep
    113121# current with respect to security updates and the like.
     
    234242    }
    235243}
    236244
     245variant with_old_mac_fonts description {Add support for .dfont and resource-based fonts} {
     246}
     247
    237248if {![variant_isset "atsui"]} {
    238249    notes-append "XeTeX is built without support for Apple Type Services for Unicode Imaging (ATSUI) or Apple Advanced Typography (AAT). To enable it, build texlive-bin with the +atsui variant. Note that this will force texlive and all of its dependencies to be built 32-bit."
    239250}