# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
homepage https://www.tcl-lang.org/
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.
master_sites sourceforge:project/tcl/Tcl/${version}
#distname ${name}${version}-src
distname ${name}${version}.1-src
checksums rmd160 34ec51e1dbf02459960f77795009743708490831 \
sha256 8fcbcd958a8fd727e279f4cac00971eee2ce271dc741650b1fc33375fb74ebb4 \
depends_build port:pkgconfig
# force usage of MacPorts Tcl
depends_lib port:fontconfig \
worksrcdir ${name}${version}/unix
patch.dir ${workpath}/${name}${version}
patchfiles patch-unix-Makefile.in.diff \
patch-macosx-tkMacOSXEntry.c.diff
# see https://trac.macports.org/ticket/57594
patchfiles-append patch-dyld_fallback_library_path.diff
configure.args --mandir=${prefix}/share/man --with-tcl=${prefix}/lib
# see https://trac.macports.org/ticket/58447
configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
configure.ldflags -L${worksrcpath} -L${prefix}/lib -lfontconfig
# see https://trac.macports.org/ticket/17189
destroot.destdir INSTALL_ROOT=${destroot}
ln -s wish8.6 ${destroot}${prefix}/bin/wish
ln -s libtk8.6.dylib ${destroot}${prefix}/lib/libtk.dylib
if {![variant_isset universal]} {
if {${configure.build_arch} eq "x86_64" || ${configure.build_arch} eq "ppc64"} {