Ticket #34826: tcl84.patch

File tcl84.patch, 2.6 KB (added by gustafn, 12 years ago)
  • Portfile

    diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/tcl/Portfile lang/tcl84/Portfile
    old new  
     1# -*- Tcl -*-
    12# $Id: Portfile 87064 2011-11-09 01:07:37Z mww@macports.org $
    23
    34PortSystem 1.0
    45
    5 name          tcl
    6 version       8.5.11
    7 # Tk (x11/tk) port depends on this version
     6name          tcl84
     7version       8.4.19
    88categories    lang
    99license       Tcl/Tk
    1010maintainers   mww openmaintainer
     
    2020homepage      http://www.tcl.tk/
    2121master_sites  sourceforge:project/tcl/Tcl/${version}
    2222
    23 checksums           md5     b01a9691c83990b3db0ce62d1012ca67 \
    24                     sha1    cb70dcfb7625389afd774e0438a7ade3e7aa13c8 \
    25                     rmd160  36140b5e8365c190202132dd6f0dfeb831ea9bc8
     23checksums           md5     ade2c033a7b545ee108f3fdfeb629fcf \
     24                    sha1    ed25c5a206bcd603c2d5e58790354b9be178f331 \
     25                    rmd160  6e3d2991e8e44a2e32f0da8fdf7ab07aa9b8202f
    2626
    2727dist_subdir     tcltk
    28 distname        ${name}${version}-src
    29 worksrcdir      ${name}${version}/unix
    30 configure.args  --mandir=${prefix}/share/man --disable-corefoundation
    31 configure.cppflags-delete  -I${prefix}/include
    32 configure.ldflags-delete   -L${prefix}/lib
     28distname        tcl${version}-src
     29worksrcdir      tcl${version}/unix
    3330
    34 destroot.destdir  INSTALL_ROOT=${destroot}
    35 post-destroot {
    36     ln -s tclsh8.5 ${destroot}${prefix}/bin/tclsh
    37     ln -s libtcl8.5.dylib ${destroot}${prefix}/lib/libtcl.dylib
    38 }
     31configure.args  --mandir=${prefix}/share/man --disable-corefoundation --enable-threads
    3932
    40 # dont enable threads by default as Tcl uses thread-local storage which makes
    41 # passing Tcl_Obj* around between threads fatal
    42 variant threads description {add multithreading support} {
    43     configure.args-append --enable-threads
     33destroot.post_args \
     34   INSTALL_ROOT=${destroot} \
     35   INCLUDE_INSTALL_DIR=${destroot}${prefix}/include/tcl84 \
     36   LIB_INSTALL_DIR=${destroot}${prefix}/lib/tcl84 \
     37   MAN_INSTALL_DIR=${destroot}${prefix}/share/man/tcl84
     38
     39post-destroot {
     40    #ln -s tclsh8.4 ${destroot}${prefix}/bin/tclsh
     41    ln -s ${prefix}/lib/tcl84/libtcl8.4.dylib ${destroot}${prefix}/lib/libtcl8.4.dylib
     42    ln -s ${prefix}/lib/tcl84/libtclstub8.4.a ${destroot}${prefix}/lib/libtclstub8.4.a
     43    reinplace "s|${prefix}/include|${prefix}/include/tcl84|g" ${destroot}${prefix}/lib/tcl84/tclConfig.sh
    4444}
    4545
    4646variant memdebug description {enable memory debugging support} {