source: trunk/dports/lang/tcl/Portfile

Last change on this file was 151783, checked in by mps@…, 15 months ago

tcl, tk: update to version 8.6.6.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 151783 2016-08-21 23:42:43Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name          tcl
6version       8.6.6
7# Tk (x11/tk) port depends on this version
8categories    lang
9license       Tcl/Tk
10maintainers   mww openmaintainer
11platforms     darwin freebsd
12description   Tool Command Language
13long_description \
14  Tcl (Tool Command Language) is a very powerful but easy to learn dynamic \
15  programming language, suitable for a very wide range of uses, including web \
16  and desktop applications, networking, administration, testing and many more. \
17  Open source and business-friendly, Tcl is a mature yet evolving language \
18  that is truly cross platform, easily deployed and highly extensible.
19
20homepage      http://www.tcl.tk/
21master_sites  sourceforge:project/tcl/Tcl/${version}
22
23checksums       rmd160  2386a69eb841f8af51c1b124f68e0b812a225cca \
24                sha256  a265409781e4b3edcc4ef822533071b34c3dc6790b893963809b9fe221befe07
25
26dist_subdir     tcltk
27distname        ${name}${version}-src
28worksrcdir      ${name}${version}/unix
29configure.args  --mandir=${prefix}/share/man \
30                --disable-corefoundation \
31                --disable-threads
32configure.cppflags-delete  -I${prefix}/include
33configure.ldflags-delete   -L${prefix}/lib
34
35post-configure {
36    reinplace -E {s|-arch [^ ]+||g} ${worksrcpath}/tclConfig.sh
37}
38
39destroot.destdir  INSTALL_ROOT=${destroot}
40post-destroot {
41    ln -s tclsh8.6 ${destroot}${prefix}/bin/tclsh
42    ln -s libtcl8.6.dylib ${destroot}${prefix}/lib/libtcl.dylib
43}
44
45# dont enable threads by default as Tcl uses thread-local storage which makes
46# passing Tcl_Obj* around between threads fatal
47variant threads description {add multithreading support} {
48    configure.args-delete --disable-threads
49    configure.args-append --enable-threads
50}
51
52platform macosx {
53    # CF is not fork()-safe and software e.g. using tk and fork() will crash
54    variant corefoundation description {Enable CoreFoundation support (not fork-safe)} {
55        configure.args-delete --disable-corefoundation
56    }
57    # tk +quartz crashes at launch without CF support
58    default_variants-append +corefoundation
59}
60
61variant memdebug description {enable memory debugging support} {
62    configure.args-append --enable-symbols=mem
63}
64
65platform darwin {
66    configure.args-append tcl_cv_type_64bit="long long"
67}
68
69default_variants +threads
70
71platform darwin 8 {
72    # See http://trac.macports.org/ticket/32930 for why this is needed.
73    configure.cppflags-append -DSQLITE_WITHOUT_ZONEMALLOC
74}
75
76test.run      yes
77
78livecheck.type  regex
79livecheck.regex {Tcl/Tk (\d+(?:\.\d+)*)</a>}
Note: See TracBrowser for help on using the repository browser.