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 | } |