Ignore:
Timestamp:
Jun 8, 2010, 1:01:34 AM (10 years ago)
Author:
dports@…
Message:

Copy existing texlive ports into my sandbox

Location:
users/dports/ports/tex/texlive_base
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • users/dports/ports/tex/texlive_base/Portfile

    r65139 r68610  
    55name            texlive_base
    66version         2007
    7 revision        8
     7revision        9
    88categories      tex
    99maintainers     nomaintainer
     
    1818platforms       darwin
    1919
    20 master_sites    openbsd:distfiles \
    21                 http://students.dec.bournemouth.ac.uk/ebarrett/texlive/distfiles/
    22 distname        ${name}-${version}-src
    23 worksrcdir      ${name}-${version}
    24 use_bzip2       yes
     20replaced_by     texlive-common
    2521
    26 # Bug #17555
    27 universal_variant no
    28 
    29 # Bug #18303
    30 use_parallel_build no
    31 
    32 checksums       md5 db006e9f0f63e9be72bd5c45d07905f6 \
    33                 sha1 f6f0192c200473c361aedfa8d34691a99e4f7065
    34 depends_lib     port:freetype port:fontconfig port:ncurses port:zlib \
    35                 port:libpng port:texinfo port:texi2html port:ghostscript \
    36                 port:texlive_texmf-minimal port:texlive_texmf-full \
    37                 port:xorg-libXp
    38 
    39 conflicts       pTeX ps2eps
    40 
    41 depends_build   path:bin/perl:perl5
    42 
    43 configure.args  --mandir=${prefix}/share/man \
    44                 --infodir=${prefix}/share/info \
    45                 --with-system-freetype2 --with-system-ncurses \
    46                 --with-freetype2-libdir=${prefix}/lib \
    47                 --with-freetype2-include=${prefix}/include \
    48                 --with-system-pnglib --with-system-zlib \
    49                 --with-system-gd --with-fontconfig=${prefix} \
    50                 --disable-multiplatform --without-texinfo \
    51                 --without-xdvipdfmx --without-texi2html \
    52                 --without-psutils --without-system-icu \
    53                 --x-includes=${prefix}/include \
    54                 --x-libraries=${prefix}/lib
    55 
    56 configure.cppflags-delete   -I${prefix}/include
    57 configure.cppflags-append   -isystem${prefix}/include
    58 
    59 post-destroot   {
    60     copy ${destroot}${prefix}/share/texmf/web2c/texmf.cnf \
    61         ${destroot}${prefix}/share/texmf/web2c/texmf.cnf-dist
    62     reinplace "s/^TEXMFSYSCONFIG = .*/TEXMFSYSCONFIG = \$TEXMFMAIN/g" \
    63         ${destroot}${prefix}/share/texmf/web2c/texmf.cnf
    64 #
    65 #   if there is no graphics support (no_x11) then only mf is built
    66 #   not mf-nowin.  if mf-nowin does not exist, make a link to mf named mf-nowin for scripts
    67 #   that expect to have it
    68 #
    69     if {![file exists ${destroot}${prefix}/bin/mf-nowin]} {
    70         file link ${destroot}${prefix}/bin/mf-nowin ${destroot}${prefix}/bin/mf
    71     }
     22pre-fetch {
     23    ui_msg "$name is no longer used; install texlive instead."
     24    return -code error "$name cannot be installed"
    7225}
    7326
    74 post-activate   {
    75         system "mktexlsr"
    76         system "fmtutil-sys --all"
    77         system "updmap-sys --syncwithtrees"
    78 }
     27use_configure   no
     28build           {}
     29destroot        {}
     30livecheck.type  none
    7931
    80 if {![variant_isset no_x11] && ![variant_isset motif] && ![variant_isset xaw] && ![variant_isset xaw3d] && ![variant_isset nextaw]} {
    81     default_variants    +motif
    82 }
    83 
    84 variant no_x11 conflicts xaw motif xaw3d nextaw {
    85     depends_lib-delete port:xorg-libXp
    86     configure.args-append --without-x --without-pdfopen
    87     configure.args-delete  --x-includes=${prefix}/include \
    88                            --x-libraries=${prefix}/lib
    89 }
    90 variant motif conflicts no_x11 xaw xaw3d nextaw description {Use Motif to build xdvi} {
    91      depends_lib-append lib:libXm:openmotif
    92      configure.args-append --with-xdvi-x-toolkit=motif
    93 }
    94 variant xaw conflicts no_x11 motif xaw3d nextaw description {Use Xaw to build xdvi} {
    95     depends_lib-append port:xorg-libXaw
    96     configure.args-append --with-xdvi-x-toolkit=xaw
    97 }
    98 variant xaw3d conflicts no_x11 motif xaw nextaw description {Use Xaw3d to build xdvi} {
    99     depends_lib-append port:Xaw3d
    100     configure.args-append --with-xdvi-x-toolkit=xaw3d
    101 }
    102 variant nextaw conflicts no_x11 motif xaw xaw3d description {Use neXtaw to build xdvi} {
    103     depends_lib-append port:neXtaw
    104     configure.args-append --with-xdvi-x-toolkit=neXtaw
    105 }
    106 
    107 livecheck.type      regex
    108 livecheck.url       ${homepage}acquire.html
    109 livecheck.regex     "TeX Live (\[0-9\]+) "
    110 
    111 post-patch {
    112     # Allow configure script to find libraries which end in .dylib.
    113     reinplace "s|for ac_extension in a so sl; do|for ac_extension in a so sl dylib; do|" \
    114         ${worksrcpath}/configure
    115 
    116     # Ensure correct compilers are used
    117     reinplace "s|CXX = c++|CXX = @CXX@|" \
    118         ${worksrcpath}/texk/xdv2pdf/Makefile.in
    119     reinplace "s|OBJC = cc|OBJC = \$(CC)|" \
    120         ${worksrcpath}/texk/xdv2pdf/Makefile.in
    121 
    122     # The check for Carbon is actually used for ATSU which is deprecated, force freetype
    123     reinplace "s|has_carbon=yes|has_carbon=no|" ${worksrcpath}/texk/web2c/configure
    124     reinplace "s|has_carbon=yes|has_carbon=no|" ${worksrcpath}/texk/xdv2pdf/configure
    125 }
    126 
    127 post-configure {
    128     # Ensure correct compiler is used
    129     reinplace "s|gcc -ObjC++ |\$(CC) -ObjC++ |" \
    130         ${worksrcpath}/texk/web2c/Makefile
    131 }
    132 
    133 pre-configure {
    134     reinplace "s|@echo|@/bin/echo|" ${worksrcpath}/libs/icu-xetex/config/mh-darwin
    135 }
    136 
    137 #Include all openBSD patches. Make texlive honor DESTDIR.
    138 patchfiles      patch-Makefile_in\
    139     patch-libs_icu-xetex_Makefile_in\
    140     patch-libs_icu-xetex_layout_KernTable_cpp\
    141     patch-texk_afm2pl_Makefile_in\
    142     patch-texk_bibtex8_Makefile_in\
    143     patch-texk_cjkutils_conv_Makefile_in\
    144     patch-texk_cjkutils_hbf2gf_Makefile_in\
    145     patch-texk_cjkutils_scripts_Makefile_in\
    146     patch-texk_detex_Makefile_in\
    147     patch-texk_dtl_Makefile_in\
    148     patch-texk_dvi2tty_Makefile_in\
    149     patch-texk_dvidvi_Makefile_in\
    150     patch-texk_dviljk_Makefile_in\
    151     patch-texk_dvipdfm_Makefile_in\
    152     patch-texk_dvipos_Makefile_in\
    153     patch-texk_dvipsk_Makefile_in\
    154     patch-texk_gsftopk_Makefile_in\
    155     patch-texk_kpathsea_Makefile_in\
    156     patch-texk_lacheck_Makefile_in\
    157     patch-texk_make_man_mk\
    158     patch-texk_makeindexk_Makefile_in\
    159     patch-texk_musixflx_Makefile_in\
    160     patch-texk_ps2pkm_Makefile_in\
    161     patch-texk_seetexk_Makefile_in\
    162     patch-texk_tetex_Makefile_in\
    163     patch-texk_tetex_texlinks\
    164     patch-texk_tex4htk_Makefile_in\
    165     patch-texk_texlive_Makefile_in\
    166     patch-texk_ttf2pk_Makefile_in\
    167     patch-texk_web2c_Makefile_in\
    168     patch-texk_web2c_alephdir_aleph_mk\
    169     patch-texk_web2c_doc_Makefile_in\
    170     patch-texk_web2c_mpware_Makefile_in\
    171     patch-texk_web2c_omegadir_omega_mk\
    172     patch-texk_web2c_omegafonts_Makefile_in\
    173     patch-texk_web2c_otps_Makefile_in\
    174     patch-texk_web2c_pdftexdir_pdftex_mk\
    175     patch-texk_web2c_texmfmem_h\
    176     patch-texk_web2c_xetexdir_XeTeX_ext_c\
    177     patch-texk_web2c_xetexdir_XeTeX_ext_h\
    178     patch-texk_web2c_xetexdir_XeTeX_mac_c\
    179     patch-texk_web2c_xetexdir_jpegimage_c\
    180     patch-texk_web2c_xetexdir_xetex-new_ch\
    181     patch-texk_web2c_xetexdir_xetex_defines\
    182     patch-texk_web2c_xetexdir_xetex_h\
    183     patch-texk_web2c_xetexdir_xetex_mk\
    184     patch-texk_xdv2pdf_Makefile_in\
    185     patch-texk_xdvik_configure.diff\
    186     patch-texk_xdvik_Makefile_in\
    187     patch-texk_xdvipdfmx_src_tt_cmap_c\
    188     patch-utils_dialog_Makefile_in\
    189     patch-utils_ps2eps_Makefile_in\
    190     patch-utils_psutils_Makefile_in\
    191     patch-texk_web2c_omegafonts_pl_l.diff
    192 
    193 # MP patches... kept separate from OpenBSD patches for maintainability
    194 patchfiles-append \
    195     XeTeX_mac-loadAATfont.patch
Note: See TracChangeset for help on using the changeset viewer.