# $Id: Portfile 33925 2008-02-07 17:32:38Z mww@macports.org $ PortSystem 1.0 name tk version 8.5.1 categories x11 maintainers mww openmaintainer description Tcl Tool Kit homepage http://www.tcl.tk/ long_description \ This is Tk version ${version}, a GUI toolkit for Tcl. The best way to get \ started with Tcl is to read ``Tcl and the Tk Toolkit'' by John K. \ Ousterhout, Addison-Wesley, ISBN 0-201-63337-X. platforms darwin master_sites sourceforge:tcl dist_subdir tcltk distname ${name}${version}-src worksrcdir ${name}${version}/unix checksums \ ${distname}${extract.suffix} \ md5 d95d4a180cd60b3736395bf80c7322c0 \ sha1 3280ca4572f19c5dd379380e9a02d382127f3378 \ rmd160 5e1196db5415771e5a7bf38425cacd7cb0ee1cd8 # suck in Tcl as well so we can use it internally. distfiles-append tcl${version}-src${extract.suffix} checksums-append \ tcl${version}-src${extract.suffix} \ md5 1b5f9a043f53c5828dcde3684e3264d5 \ sha1 53d64b0a65e7dd231c79297ebc79608780bb7eea \ rmd160 c90bfa5b1bbc7dc54429e4fe18b6f77a9ad1c18b # force usage of DP Tcl depends_lib port:tcl lib:libX11.6:XFree86 post-patch { reinplace s|@TCL_SRC_DIR@|${worksrcpath}/../../tcl${version}/|g ${worksrcpath}/Makefile.in } configure.args --mandir=${prefix}/share/man --with-tcl=${prefix}/lib configure.cppflags "-I${workpath}/tcl${version}/generic -I${prefix}/include" destroot.destdir INSTALL_ROOT=${destroot} post-destroot { ln -s ${prefix}/bin/wish8.5 ${destroot}${prefix}/bin/wish ln -s ${prefix}/lib/libtk8.5.dylib ${destroot}${prefix}/lib/libtk.dylib } #variant quartz { # configure.args-append --enable-aqua # post-destroot { # delete ${destroot}${prefix}/include/X11 # } #} livecheck.check freshmeat livecheck.name tcltk