diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/tcl/Portfile lang/tcl84/Portfile
old
|
new
|
|
| 1 | # -*- Tcl -*- |
1 | 2 | # $Id: Portfile 87064 2011-11-09 01:07:37Z mww@macports.org $ |
2 | 3 | |
3 | 4 | PortSystem 1.0 |
4 | 5 | |
5 | | name tcl |
6 | | version 8.5.11 |
7 | | # Tk (x11/tk) port depends on this version |
| 6 | name tcl84 |
| 7 | version 8.4.19 |
8 | 8 | categories lang |
9 | 9 | license Tcl/Tk |
10 | 10 | maintainers mww openmaintainer |
… |
… |
|
20 | 20 | homepage http://www.tcl.tk/ |
21 | 21 | master_sites sourceforge:project/tcl/Tcl/${version} |
22 | 22 | |
23 | | checksums md5 b01a9691c83990b3db0ce62d1012ca67 \ |
24 | | sha1 cb70dcfb7625389afd774e0438a7ade3e7aa13c8 \ |
25 | | rmd160 36140b5e8365c190202132dd6f0dfeb831ea9bc8 |
| 23 | checksums md5 ade2c033a7b545ee108f3fdfeb629fcf \ |
| 24 | sha1 ed25c5a206bcd603c2d5e58790354b9be178f331 \ |
| 25 | rmd160 6e3d2991e8e44a2e32f0da8fdf7ab07aa9b8202f |
26 | 26 | |
27 | 27 | dist_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 |
| 28 | distname tcl${version}-src |
| 29 | worksrcdir tcl${version}/unix |
33 | 30 | |
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 | | } |
| 31 | configure.args --mandir=${prefix}/share/man --disable-corefoundation --enable-threads |
39 | 32 | |
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 |
| 33 | destroot.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 | |
| 39 | post-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 |
44 | 44 | } |
45 | 45 | |
46 | 46 | variant memdebug description {enable memory debugging support} { |