Changeset 68917 for trunk/dports/tex


Ignore:
Timestamp:
Jun 17, 2010, 10:38:38 PM (9 years ago)
Author:
dports@…
Message:

texlive-bin: disable ATSUI for XeTeX font rendering unless explicitly
enabled via the +atsui variant

Re-enable 64-bit builds unless +atsui is specified (forces 32-bit)

Add revision number to banner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/tex/texlive-bin/Portfile

    r68890 r68917  
    88name            texlive-bin
    99version         2009
    10 revision        1
     10revision        2
    1111
    1212categories      tex
     
    3232                rmd160 e467932d53abe418f4e36a56afb683912ab0caec
    3333
    34 # xetex doesn't build 64-bit; force 32-bit for now
    35 supported_archs i386 ppc
    3634universal_variant no
    3735
     
    7371    reinplace "s|@@TEXMFMAIN@@|${texlive_texmfmain}|" ${worksrcpath}/texk/texlive/linked_scripts/Makefile.in
    7472    reinplace "s|@@TEXMFDIST@@|${texlive_texmfdist}|" ${worksrcpath}/texk/texlive/linked_scripts/Makefile.in
     73
     74    if {![variant_isset atsui]} {
     75        # Force configure to believe that Carbon API is
     76        # unavailable. This test is actually used to determine whether
     77        # ATSUI should be used.
     78        reinplace "s|kpse_cv_have_Carbon=yes|kpse_cv_have_Carbon=no|" ${worksrcpath}/texk/web2c/configure
     79        reinplace "s|kpse_cv_have_Carbon=yes|kpse_cv_have_Carbon=no|" ${worksrcpath}/texk/xdv2pdf/configure
     80    }
    7581}
    7682
     
    8793                --disable-native-texlive-build \
    8894                --without-old-mac-fonts \
    89                 --with-tex-banner="TeX Live/MacPorts ${version}" \
     95                --with-tex-banner="TeX Live/MacPorts ${version}_${revision}" \
    9096                --enable-shared \
    9197                --with-system-freetype2 \
     
    115121# work around bug in texlive makefiles where $OBJC is not recorded
    116122# during configure phase
    117 append_list_to_environment_value build "OBJC" ${configure.objc}
    118 append_list_to_environment_value build "OBJCFLAGS" ${configure.objcflags}
    119 append_list_to_environment_value build "OBJCFLAGS" ${configure.objc_archflags}
    120 
     123pre-build {
     124    append_list_to_environment_value build "OBJC" ${configure.objc}
     125    append_list_to_environment_value build "OBJCFLAGS" ${configure.objcflags}
     126    append_list_to_environment_value build "OBJCFLAGS" ${configure.objc_archflags}
     127}
    121128
    122129post-destroot   {
     
    126133    delete ${destroot}${texlive_texmfmain}
    127134    delete ${destroot}${texlive_texmfdist}
     135}
     136
     137post-activate {
     138    system "${prefix}/bin/texhash"
     139}
     140
     141variant atsui description {Use ATSUI instead of freetype for XeTeX font rendering (forces 32-bit)} {
     142    # force 32-bit build
     143    supported_archs i386 ppc
    128144}
    129145
Note: See TracChangeset for help on using the changeset viewer.