| 1 | # $Id: Portfile 41095 2008-10-22 22:16:07Z jann@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name tcl |
|---|
| 6 | version 8.4.19 |
|---|
| 7 | # Tk (x11/tk) port depends on this version |
|---|
| 8 | categories lang |
|---|
| 9 | maintainers mww openmaintainer |
|---|
| 10 | platforms darwin freebsd |
|---|
| 11 | description Tool Command Language |
|---|
| 12 | long_description \ |
|---|
| 13 | Tcl (Tool Command Language) is a very powerful but easy to learn dynamic \ |
|---|
| 14 | programming language, suitable for a very wide range of uses, including web \ |
|---|
| 15 | and desktop applications, networking, administration, testing and many more. \ |
|---|
| 16 | Open source and business-friendly, Tcl is a mature yet evolving language \ |
|---|
| 17 | that is truly cross platform, easily deployed and highly extensible. |
|---|
| 18 | |
|---|
| 19 | homepage http://www.tcl.tk/ |
|---|
| 20 | master_sites sourceforge |
|---|
| 21 | |
|---|
| 22 | checksums \ |
|---|
| 23 | md5 ade2c033a7b545ee108f3fdfeb629fcf \ |
|---|
| 24 | sha1 ed25c5a206bcd603c2d5e58790354b9be178f331 \ |
|---|
| 25 | rmd160 6e3d2991e8e44a2e32f0da8fdf7ab07aa9b8202f |
|---|
| 26 | |
|---|
| 27 | dist_subdir tcltk |
|---|
| 28 | distname ${name}${version}-src |
|---|
| 29 | worksrcdir ${name}${version}/unix |
|---|
| 30 | configure.args --mandir=${prefix}/share/man |
|---|
| 31 | configure.cppflags |
|---|
| 32 | configure.ldflags |
|---|
| 33 | |
|---|
| 34 | destroot.destdir INSTALL_ROOT=${destroot} |
|---|
| 35 | post-destroot { |
|---|
| 36 | ln -s ${prefix}/bin/tclsh8.4 ${destroot}${prefix}/bin/tclsh |
|---|
| 37 | ln -s ${prefix}/lib/libtcl8.4.dylib ${destroot}${prefix}/lib/libtcl.dylib |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 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 |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | variant memdebug description {enable memory debugging support} { |
|---|
| 47 | configure.args-append --enable-symbols=mem |
|---|
| 48 | } |
|---|
| 49 | |
|---|
| 50 | # Files with failing tests: socket.test |
|---|
| 51 | test.run yes |
|---|
| 52 | |
|---|
| 53 | livecheck.check freshmeat |
|---|
| 54 | livecheck.name tcltk |
|---|