1 | # $Id: Portfile 41100 2008-10-23 00:07:51Z jann@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name tk |
---|
6 | version 8.4.19 |
---|
7 | categories x11 |
---|
8 | maintainers mww openmaintainer |
---|
9 | description Tcl Tool Kit |
---|
10 | homepage http://www.tcl.tk/ |
---|
11 | long_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 | |
---|
16 | platforms darwin |
---|
17 | master_sites sourceforge:tcl |
---|
18 | dist_subdir tcltk |
---|
19 | distname ${name}${version}-src |
---|
20 | worksrcdir ${name}${version}/unix |
---|
21 | checksums \ |
---|
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. |
---|
27 | distfiles-append tcl${version}-src${extract.suffix} |
---|
28 | checksums-append \ |
---|
29 | tcl${version}-src${extract.suffix} \ |
---|
30 | md5 ade2c033a7b545ee108f3fdfeb629fcf \ |
---|
31 | sha1 ed25c5a206bcd603c2d5e58790354b9be178f331 \ |
---|
32 | rmd160 6e3d2991e8e44a2e32f0da8fdf7ab07aa9b8202f |
---|
33 | |
---|
34 | # force usage of DP Tcl |
---|
35 | depends_lib port:tcl lib:libX11.6:XFree86 |
---|
36 | |
---|
37 | post-patch { |
---|
38 | reinplace s|@TCL_SRC_DIR@|${worksrcpath}/../../tcl${version}/|g ${worksrcpath}/Makefile.in |
---|
39 | } |
---|
40 | |
---|
41 | configure.args --mandir=${prefix}/share/man --with-tcl=${prefix}/lib |
---|
42 | configure.cppflags "-I${workpath}/tcl${version}/generic -I${prefix}/include" |
---|
43 | |
---|
44 | destroot.destdir INSTALL_ROOT=${destroot} |
---|
45 | post-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 | |
---|
50 | variant quartz { |
---|
51 | configure.args-append --enable-aqua |
---|
52 | post-destroot { |
---|
53 | delete ${destroot}${prefix}/include/X11 |
---|
54 | } |
---|
55 | } |
---|
56 | |
---|
57 | livecheck.check freshmeat |
---|
58 | livecheck.name tcltk |
---|