Ticket #14488: Portfile.2

File Portfile.2, 1.8 KB (added by mf2k (Frank Schima), 15 years ago)

tk 8.4.19 portfile

Line 
1# $Id: Portfile 41100 2008-10-23 00:07:51Z jann@macports.org $
2
3PortSystem      1.0
4
5name            tk
6version         8.4.19
7categories      x11
8maintainers     mww openmaintainer
9description     Tcl Tool Kit
10homepage        http://www.tcl.tk/
11long_description \
12  This is Tk version ${version}, a GUI toolkit for Tcl. The best way to get \
13  started with Tcl is to read ``Tcl and the Tk Toolkit'' by John K.         \
14  Ousterhout, Addison-Wesley, ISBN 0-201-63337-X.
15
16platforms       darwin
17master_sites    sourceforge:tcl
18dist_subdir     tcltk
19distname        ${name}${version}-src
20worksrcdir      ${name}${version}/unix
21checksums \
22  ${distname}${extract.suffix} \
23    md5 9b998d0456d1b956eb9da610837a9c47 \
24    sha1 56d09be8a7670b2686d76b7526ff24b0240ca120 \
25    rmd160 c963297655740ad4b29a99c489c35a64e5e817ce
26# suck in Tcl as well so we can use it internally.
27distfiles-append    tcl${version}-src${extract.suffix}
28checksums-append \
29  tcl${version}-src${extract.suffix} \
30    md5 ade2c033a7b545ee108f3fdfeb629fcf \
31    sha1 ed25c5a206bcd603c2d5e58790354b9be178f331 \
32    rmd160 6e3d2991e8e44a2e32f0da8fdf7ab07aa9b8202f
33
34# force usage of DP Tcl
35depends_lib         port:tcl lib:libX11.6:XFree86
36
37post-patch {
38    reinplace s|@TCL_SRC_DIR@|${worksrcpath}/../../tcl${version}/|g ${worksrcpath}/Makefile.in
39}
40
41configure.args      --mandir=${prefix}/share/man --with-tcl=${prefix}/lib
42configure.cppflags  "-I${workpath}/tcl${version}/generic -I${prefix}/include"
43
44destroot.destdir    INSTALL_ROOT=${destroot}
45post-destroot {
46    ln -s ${prefix}/bin/wish8.4 ${destroot}${prefix}/bin/wish
47    ln -s ${prefix}/lib/libtk8.4.dylib ${destroot}${prefix}/lib/libtk.dylib
48}
49
50variant quartz {
51    configure.args-append   --enable-aqua
52    post-destroot {
53        delete ${destroot}${prefix}/include/X11
54    }
55}
56
57livecheck.check freshmeat
58livecheck.name  tcltk