Ticket #34826: Portfile

File Portfile, 2.1 KB (added by gustafn, 11 years ago)

Updated version of fix, had to add include path for configure to avoid conflict with newer installed version of Tcl

Line 
1# -*- Tcl -*-
2# $Id: Portfile 87064 2011-11-09 01:07:37Z mww@macports.org $
3
4PortSystem 1.0
5
6name          tcl84
7version       8.4.19
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           md5     ade2c033a7b545ee108f3fdfeb629fcf \
24                    sha1    ed25c5a206bcd603c2d5e58790354b9be178f331 \
25                    rmd160  6e3d2991e8e44a2e32f0da8fdf7ab07aa9b8202f
26
27dist_subdir     tcltk
28distname        tcl${version}-src
29worksrcdir      tcl${version}/unix
30
31configure.cflags "-I${workpath}/tcl8.4.19/generic -I${workpath}/tcl8.4.19/unix"
32configure.args  --mandir=${prefix}/share/man --includedir=--disable-corefoundation --enable-threads
33
34destroot.post_args \
35   INSTALL_ROOT=${destroot} \
36   INCLUDE_INSTALL_DIR=${destroot}${prefix}/include/tcl84 \
37   LIB_INSTALL_DIR=${destroot}${prefix}/lib/tcl84 \
38   MAN_INSTALL_DIR=${destroot}${prefix}/share/man/tcl84
39
40post-destroot {
41    #ln -s tclsh8.4 ${destroot}${prefix}/bin/tclsh
42    ln -s ${prefix}/lib/tcl84/libtcl8.4.dylib ${destroot}${prefix}/lib/libtcl8.4.dylib
43    ln -s ${prefix}/lib/tcl84/libtclstub8.4.a ${destroot}${prefix}/lib/libtclstub8.4.a
44    reinplace "s|${prefix}/include|${prefix}/include/tcl84|g" ${destroot}${prefix}/lib/tcl84/tclConfig.sh
45}
46
47variant memdebug description {enable memory debugging support} {
48    configure.args-append --enable-symbols=mem
49}
50
51platform darwin {
52    configure.args-append tcl_cv_type_64bit="long long"
53}
54
55# Files with failing tests: socket.test
56test.run      yes
57
58livecheck.type  regex
59livecheck.regex {Tcl/Tk (\d+(?:\.\d+)*)</a>}